Error compiling Caffe/Pycaffe

Asked

Viewed 39 times

0

I’m trying to compile Caffe on an Ubuntu 14.04, but I keep getting the following error:

/usr/bin/ld: cannot find -lboost_python-py35
/usr/bin/ld: cannot find -lpython3.5m
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so] Error 1

Does anyone have any idea what that would be?

1 answer

1

Yes - you did not isntalou the packages with the headers of these libraries on the system, so you can compile something with them.

Whenever you build a package - and sometimes a clean Python "Pip install" command will compile, you need to have all the necessary libraries in the system.

There is no exact rule of which packages you need a priori, and the names can change from one Linux distribution to another. On Ubuntu and Debian, these are packages ending with "-dev", (E in Redhat/Debian, "-devel").

In my case, it should be enough to type sudo apt-get install python3-dev at the prompt and then the same for the package libboost-all-dev. I’m not on Ubuntu here - so I don’t know the package name apra libbosst Python you need - for this use the command apt-cache search boost|grep python - and see in what appears listed what is closest to libboost-python3-dev -with that name, repeat the command sudo apt-get install <nome> .

With these packages on the system, try the build again.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.