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

fatal error: boost/foreach.hpp: No such file or directory #11

Closed
MheniMerz opened this issue Jan 31, 2018 · 5 comments
Closed

fatal error: boost/foreach.hpp: No such file or directory #11

MheniMerz opened this issue Jan 31, 2018 · 5 comments

Comments

@MheniMerz
Copy link

MheniMerz commented Jan 31, 2018

i am trying to use RamCloud on Centos,
i've followed the instructions here
https://ramcloud.atlassian.net/wiki/spaces/RAM/pages/6848614/General+Information+for+Developers
and installed all the dependencies.

but when making the project i get the following error :

/home/mheni/RAMCloud/src/TransportManager.h:19:29: fatal error: boost/foreach.hpp: No such file or directory
#include <boost/foreach.hpp>

and this is in multiple files ( they are importing a file that does not exist )

any ideas ?

@fatihky
Copy link

fatihky commented Jan 31, 2018

you must install boost libraries. see: http://www.boost.org/

@yilongli
Copy link
Member

@MheniMerz Can you find out where the boost header files are installed in your system by running, say, locate boost | fgrep foreach.hpp? If boost is installed at an unconventional place in your system, you will have to provide them manually for g++.

@fatihky
Copy link

fatihky commented Feb 1, 2018

Here is output that I got from that command.

/opt/f/nnmill-dev/TeaFiles.Cpp/Lib/boost/foreach.hpp
/opt/f/nnmill-dev/TeaFiles.Cpp/Lib/boost/test/utils/foreach.hpp
/usr/include/boost/foreach.hpp
/usr/include/boost/test/utils/foreach.hpp

@MheniMerz
Copy link
Author

thank you all for your quick response.

I've tried installing boost following the instructions on their webpage, but i encountered another problem with zlib library that boost depends on.

so i used a simple sudo yum install boost boost-devel boost-doc i think it installed boost successfully

now when i build RamCloud i get a different error from gtest
fatal error: gtest/gtest.h: No such file or directory #include <gtest/gtest.h>

thank you again.

@MheniMerz MheniMerz changed the title fatal error while building the RamCloud project fatal error: boost/foreach.hpp: No such file or directory Feb 1, 2018
@MheniMerz
Copy link
Author

MheniMerz commented Feb 1, 2018

ok i have installed gtest following these instructions

and i don't get the gtest error any more.

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

3 participants