LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2016, 12:06 PM   #1
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Rep: Reputation: Disabled
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
 
Old 01-28-2016, 12:12 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
This means boost header files are not installed, you need to install src package for boost.
 
Old 01-29-2016, 05:04 AM   #3
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-29-2016, 08:55 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,591

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
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.

Last edited by BW-userx; 01-29-2016 at 09:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems in installing boost and quantlib mariav Linux - Software 3 07-14-2008 10:20 AM
Problems with boost nathacof Programming 10 11-04-2005 01:56 PM
Setiing up user for a cyber caffe Sizufrenija Linux - Newbie 3 01-08-2005 02:56 PM
how to install Boost 1.3.20 chutsu Linux - Software 0 11-10-2004 03:22 PM
cyber caffe tmz1 Linux - Distributions 2 09-22-2003 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration