Closed ruoqizzz closed 6 years ago
Okay, I found the solution.
Just use:
brew reinstall boost-python3 --with-python --build-from-source
I am running into the same problem as posted above. ( I am trying to compile caffe)
I tried the posted method by OP of using brew reinstall boost-python3 --with-python --build-from-source
and after a successful reinstall, I am still getting the error message: ld: library not found for -lboost_python3 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [../cpp_household.so] Error 1
How can I find -lboost_python3 file and specify the path to the makefile? (Or... what is an alternative?) Thank you
I'm having the same exact problem. Unable to install the boost-python. Any solutions???
@wsgdrfz solution worked for me, thank you!!
@juliayukam @hammadullah125
I installed boost.python on MacOS with brew install boost-python --with-python3
and I got the same error when compiling my code.
ld: library not found for -lboost_python3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And I found I installed the boost-python in
/usr/local/Cellar/boost-python3/1.67.0_1/lib
in this directory, I got
libboost_numpy37-mt.a libboost_numpy37.a libboost_python37-mt.dylib libboost_python37.dylib
libboost_numpy37-mt.dylib libboost_numpy37.dylib libboost_python37-mt.a libboost_python37.a
And you can make a soft link by
sudo ln -s libboost_python37.dylib libboost_python3.dylib
So that you can get libboost_python3.dylib
and this issue is fixed. Hope it will help you fix this issue. You can check this link https://stackoverflow.com/a/51906180/5046896.
When I get into the final step
pip3 install -e $ROBOSCHOOL_PATH
Faults:
I think it might because the formal operation:
brew reinstall boost-python --without-python --with-python3 --build-from-source
I got the warning: