caffe icon indicating copy to clipboard operation
caffe copied to clipboard

unable to install boost with python

Open sanjeev87 opened this issue 12 years ago • 1 comments

I am using a mac OSX 10.9 When I run brew install --build-from-source --with-python --fresh -vd boost, the usr/local/lib directory does not contain the libboost_python* files.

As a result , when I run make pycaffe, I get the following error, Sanjeevs-MacBook-Pro:caffe srao$ make pycaffe /usr/bin/clang++ -shared -o python/caffe/_caffe.so python/caffe/_caffe.cpp
.build_release/lib/libcaffe.a -stdlib=libstdc++ -fPIC -DNDEBUG -O2 -DCPU_ONLY -I/Users/srao/anaconda/include -I/Users/srao/anaconda/include/python2.7 -I/Users/srao/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/System/Library/Frameworks/vecLib.framework/Versions/Current/Headers/ -Wall -Wno-sign-compare -Wno-unneeded-internal-declaration -framework vecLib -L/Users/srao/anaconda/lib -L/usr/local/lib -L/usr/lib -lpthread -lglog -lgflags -lprotobuf -lleveldb -lsnappy -llmdb -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread-mt -lcblas -lboost_python -lpython2.7 ld: library not found for -lboost_python clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [python/caffe/_caffe.so] Error 1

Please help.

sanjeev87 avatar Sep 30 '14 02:09 sanjeev87

Follow-up in #1193.

shelhamer avatar Oct 01 '14 00:10 shelhamer