View Issue Details

IDProjectCategoryView StatusLast Update
0001721OpenFOAM[All Projects] Bugpublic2015-05-30 12:01
Reporteruser182Assigned Tohenry 
Status resolvedResolutionno change required 
PlatformLinuxOSRedHatOS Version6.6
Product Version 
Fixed in Version 
Summary0001721: install fails because boost header file not found
DescriptionOur system supports multiple versions of boost which are not installed in /usr/include, /usr/lib.

Are there environment variables I can set to indicate where boost headers and libraries can be found?

Here is a sample error:

Making dependency list for source file SloanRenumber.C
SOURCE=SloanRenumber.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I${OF_HOME}/ThirdParty-2.4.0/platforms/linux64Gcc/boost-system/include -I${OF_HOME}/OpenFOAM-2.4.0/src/meshTools/lnInclude -I${OF_HOME}/OpenFOAM-2.4.0/src/parallel/decompose/decompositionMethods/lnInclude -I${OF_HOME}/OpenFOAM-2.4.0/src/renumber/renumberMethods/lnInclude -IlnInclude -I. -I${OF_HOME}/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I${OF_HOME}/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/SloanRenumber.o
SloanRenumber.C:34:28: fatal error: boost/config.hpp: No such file or directory
compilation terminated.
Steps To ReproduceThen run the install script:

Additional Informationmodified ThirdParty-2.4.0/makeCGAL to set correct boost info

if [ -n "${BOOST_HOME}" ] ; then

# retrieve boost version:
TagsNo tags attached.



2015-05-30 11:08

manager   ~0004850

BOOST_ARCH_PATH is used to specify the location of the boost installation for CGAL and SloanRenumber, see etc/config/CGAL.* However, you would need to change it in those files as it is not currently override-able; I will look into this.

Given that the Sloan renumbering method has not proved beneficial and brings with it a direct dependency on boost which is causing installation problems on several systems I am considering either moving it to ThirdParty, making compilation optional depending on the availability of boost or removing it altogether.


2015-05-30 12:01

manager   ~0004851

BOOST_ARCH_PATH can be overridden in or pref.csh in the usual way. The prefs files may be located in any of the OpenFOAM etc directories which

foamEtcFile -list

will list for you.

Issue History

Date Modified Username Field Change
2015-05-30 01:51 user182 New Issue
2015-05-30 11:08 henry Note Added: 0004850
2015-05-30 12:01 henry Note Added: 0004851
2015-05-30 12:01 henry Status new => resolved
2015-05-30 12:01 henry Resolution open => no change required
2015-05-30 12:01 henry Assigned To => henry