LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why can't I install Caffe... problems with boost? (https://www.linuxquestions.org/questions/linux-newbie-8/why-cant-i-install-caffe-problems-with-boost-4175568163/)

chris_crunch 01-28-2016 11:06 AM

Why can't I install Caffe... problems with boost?
 
Hi, I am a total newbie at this but I can't work out where I'm going wrong. I believe there's something wrong with boost? But I'm not sure what to do now

-crunch:~/apps/caffe$ make all
CXX src/caffe/layers/euclidean_loss_layer.cpp
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layers/euclidean_loss_layer.hpp:6,
from src/caffe/layers/euclidean_loss_layer.cpp:3:
./include/caffe/common.hpp:4:32: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
^
compilation terminated.
make: *** [.build_release/src/caffe/layers/euclidean_loss_layer.o] Error 1

Emerson 01-28-2016 11:12 AM

This means boost header files are not installed, you need to install src package for boost.

chris_crunch 01-29-2016 04:04 AM

I think I did that, but I've no idea how... now this? Could you give me the code to fix it?

chris@chris-crunch:~/apps/caffe$ make all
CXX src/caffe/layers/euclidean_loss_layer.cpp
In file included from ./include/caffe/util/math_functions.hpp:11:0,
from ./include/caffe/layer.hpp:12,
from ./include/caffe/layers/euclidean_loss_layer.hpp:7,
from src/caffe/layers/euclidean_loss_layer.cpp:3:
./include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h: No such file or directory
#include <cblas.h>
^
compilation terminated.
make: *** [.build_release/src/caffe/layers/euclidean_loss_layer.o] Error 1

BW-userx 01-29-2016 07:55 AM

which ever distro you are using, you use their system to install programs, do a search with it looking for your dev or devel packages with the same name then install that. when ever you build from source you have to have the devel packages installed so it can read the header files to define the functions within it. in other words so it knows what it is suppose to do to get the job done.

so when ever you are doing this use the errors to let it tell you what you are missing then just search for the devel / dev (developer) package associated with it then install it, then move on to the next item, if it completes then you have everything you need installed already.

search for cblas-dev or cblas-devel or just cblas then look for the devel package then install that, then move on.

if your repo does not have the developer package then go to the net, then find it, the lastest one,then install that then move on... excluding murphy law, there is always an exception to the rule.


All times are GMT -5. The time now is 05:00 AM.