Error installing caffe

I am trying to install caffe on my mac. I installed boost, but getting this error:

make pycaffe -j8
LD -o .build_release/lib/libcaffe.so
clang: warning: argument unused during compilation: '-pthread'
ld: library not found for -lboost_thread-mt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so] Error 1
+4
source share
2 answers

Perhaps you installed boost without boost-thread or from an old installer that set boost_thread-mt as boost_thread. If this is the second, you can simply make a symlink from libboost_thread.ato libboost_thread-mt.a.

If this is the first reason, you need to reinstall brew with boost-thread, and the easiest way is to get Homebrew and set the raise with it:

brew install boost

Which installs the correct libraries:

-> % ls  /usr/local/lib/libboost_thread-mt.* 
/usr/local/lib/libboost_thread-mt.a     /usr/local/lib/libboost_thread-mt.dylib
+5
source

anaconda, boost, anaconda conda-forge:

$ conda install -c conda-forge boost

, @Marqin, .

​​ -mt. github repo.

0

Source: https://habr.com/ru/post/1622721/


All Articles