Boost headers not found

Asked by Claas Abert

I tried to install dolfin-dev with dorsal-dev on Ubuntu Precise. Everthing went fine, but I always get:

OSError: The Boost headers was not found.
If Boost is installed in a nonstandard location,
set the environment variable BOOST_DIR.

BOOST_DIR is set correctly. The problem seems to be, that there is no version.hpp in $BOOST_DIR/include/boost/

Thank you very much for your help, Claas

Question information

Language:
English Edit question
Status:
Solved
For:
Dorsal Edit question
Assignee:
No assignee Edit question
Solved by:
Claas Abert
Solved:
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

Did you build Boost manually? This is not needed on Ubuntu Precise.

Revision history for this message
Claas Abert (cabert) said :
#2

Dorsal automatically used the precise.platform file, which does not have boost in its package list.
Howerever the file fenics.conf is generated with BOOST_DIR set to $CMAKE_PREFIX_PATH which is $HOME/Work/FEniCS in my case. The boost subdirectory in $HOME/Work/FEniCS/include includes some, but obviously not all header files of booth.

Setting BOOST_DIR to "/usr" instead seems to solve my problem. Is this a valid solution?

Revision history for this message
Johannes Ring (johannr) said :
#3

BOOST_DIR should not be set when Boost is installed in /usr. This is a bug in fenics.conf in Dorsal, which has been fixed now (revision 790).

Revision history for this message
Claas Abert (cabert) said :
#4

Ah, OK. Thank you, Johannes.