Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot compile on Centos 6.7 #3686

Closed
enixonumm opened this issue Feb 17, 2016 · 8 comments
Closed

cannot compile on Centos 6.7 #3686

enixonumm opened this issue Feb 17, 2016 · 8 comments

Comments

@enixonumm
Copy link

Hello, I am trying to compile caffe with a CPU only installation on Centos 6.7.
I have boost version boost-1.41.0-27.el6.x86_64
I tried looking for a newer version of boost but none seem to be available for Centos 6.7.
When I run make all, I receive the following error message.
Any suggestions for what might be causing this and/or how to fix it?

INPUT

make all

OUTPUT

CXX src/caffe/parallel.cpp
In file included from ./include/caffe/caffe.hpp:18,
from src/caffe/parallel.cpp:12:
./include/caffe/util/io.hpp: In function 'void caffe::MakeTempDir(std::string_)':
./include/caffe/util/io.hpp:27: error: 'temp_directory_path' is not a member of 'boost::filesystem'
./include/caffe/util/io.hpp:29: error: 'unique_path' is not a member of 'boost::filesystem'
make: *_* [.build_release/src/caffe/parallel.o] Error 1

@seanbell
Copy link

You could try using docker (#3518) which allows you to use Ubuntu.

I'm closing this since this is an installation question. From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:

Please do not post usage, installation, or modeling questions, or other requests for help to Issues.
Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.

@enixonumm
Copy link
Author

Thanks.
I just downloaded the docker but I am not sure if I can get it to work as
is on Centos 6.7.
There is not an apt-get repository for centos 6.7.
I will probably try to rewrite parts of the docker file to make it
compatible.

-Erika

Erika Nixon
Data Analyst
University of Maryland Baltimore

410-706-3311
enixon.umm@gmail.com
enixon@umm.edu

This e-mail and any accompanying attachments may be privileged,
confidential, contain protected health information about an identified patient
or be otherwise protected from disclosure. State and federal law
protect the confidentiality
of this information. If the reader of this message is not the intended
recipient;
you are prohibited from using, disclosing, reproducing or distributing
this information;
you should immediately notify the sender by telephone or e-mail and
delete this e-mail.

On Wed, Feb 17, 2016 at 1:41 PM, Sean Bell notifications@github.com wrote:

You could try using docker (#3518
#3518) which allows you to use Ubuntu.

From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:

Please do not post usage, installation, or modeling questions, or other
requests for help to Issues.

Use the caffe-users list
https://groups.google.com/forum/#!forum/caffe-users instead. This helps
developers maintain a clear, uncluttered, and efficient view of the state
of Caffe.


Reply to this email directly or view it on GitHub
#3686 (comment).

@elezar
Copy link
Contributor

elezar commented Feb 18, 2016

@enixonumm The docker file should be self-contained, and does not depend on what your host OS is (for most purposes). If you don't have docker installed, consider looking at the instructions at https://docs.docker.com/engine/installation/linux/centos/

You should then be able to build the docker images if you fetch the relevant pull request (or create your own docker images using those as a basis).

@enixonumm
Copy link
Author

Thanks!
It works!
-Erika

Erika Nixon
Data Analyst
University of Maryland Baltimore

410-706-3311
enixon.umm@gmail.com
enixon@umm.edu

This e-mail and any accompanying attachments may be privileged,
confidential, contain protected health information about an identified patient
or be otherwise protected from disclosure. State and federal law
protect the confidentiality
of this information. If the reader of this message is not the intended
recipient;
you are prohibited from using, disclosing, reproducing or distributing
this information;
you should immediately notify the sender by telephone or e-mail and
delete this e-mail.

On Thu, Feb 18, 2016 at 6:07 AM, Evan Lezar notifications@github.com
wrote:

@enixonumm https://github.com/enixonumm The docker file should be
self-contained, and does not depend on what your host OS is (for most
purposes). If you don't have docker installed, consider looking at the
instructions at https://docs.docker.com/engine/installation/linux/centos/

You should then be able to build the docker images if you fetch the
relevant pull request (or create your own docker images using those as a
basis).


Reply to this email directly or view it on GitHub
#3686 (comment).

@PapaMadeleine2022
Copy link

@enixonumm I get the problems as yours, Is installing docker the only way to solve this ?

@yunchih
Copy link

yunchih commented Sep 8, 2016

@elezar @SevenGong I get the same problems on Centos 6.6 with Boost 1.41. It is true temp_directory_path and unique_path are not implemented in Boost 1.41.
Can I avoid the error by using older version of Caffe?

Thanks

@enixonumm
Copy link
Author

Hi, using the docker image only worked briefly for me.
It quickly filled up my root directory and I had to expunge it from my
system to get the system to work again.
If you are going to use the docker make sure that you have plenty of space
in your root directory.
If not, you would have to repartition your hard drives which I was not
willing to do.
My ultimate solution was to put ubuntu on an old computer that wasn't been
used.

Good luck!

-Erika

Erika Nixon
Data Analyst
University of Maryland Baltimore

410-706-3311
enixon.umm@gmail.com
enixon@umm.edu

This e-mail and any accompanying attachments may be privileged,
confidential, contain protected health information about an identified patient
or be otherwise protected from disclosure. State and federal law
protect the confidentiality
of this information. If the reader of this message is not the intended
recipient;
you are prohibited from using, disclosing, reproducing or distributing
this information;
you should immediately notify the sender by telephone or e-mail and
delete this e-mail.

On Thu, Sep 8, 2016 at 10:17 AM, Yunchih Chen notifications@github.com
wrote:

@elezar https://github.com/elezar @SevenGong
https://github.com/SevenGong I get the same problems. Any idea?
Thanks


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3686 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AQf7sXc9wmxlUX5fvyN8zcYAvAa6wDsAks5qoBkXgaJpZM4HcX9Q
.

@HolmesShuan
Copy link

HolmesShuan commented Sep 19, 2016

@SevenGong @yunchih I solved this problem by installing boost_1.60 or you may have to install caffe-rc2 instead.
Makefile.config @ line 65/66:
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /home/xxx/boost/include /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /home/xxx/boost/lib /usr/local/lib /usr/lib /usr/lib64 /usr/lib64/atlas /usr/local/cuda/lib64
Following steps to install boost:
./bootstrap.sh --prefix=path/to/installation/prefix
./b2 install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants