Closed anganara closed 5 years ago
What is the location of your boost headers?
You could try:
locate boost | grep version
Hi Sorry for my late response.
the output of "locate boost | grep version" is /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackageFixtures/boost_chrono-1.70.0/boost_chrono-config-version.cmake /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackageFixtures/boost_headers-1.70.0/boost_headers-config-version.cmake /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackageFixtures/boost_system-1.70.0/boost_system-config-version.cmake /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackageFixtures/boost_timer-1.70.0/boost_timer-config-version.cmake /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackage_LowerCaseTargetPrefix/include/boost/version.hpp /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackage_MissingTarget/include/boost/version.hpp /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackage_New/include/boost/version.hpp /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/CMakePackage_NoHeaderTarget/include/boost/version.hpp /home/anganara/software/GROMACS2018.3_SOFTWARE/cmake-3.15.0/Tests/RunCMake/FindBoost/MockInstalls/1.70.0/include/boost/version.hpp
I see!
Your boost is not installed at a default location, so the compiler can't find it. The configure script should have said the following:
checking for boostlib >= 1.48... configure: We could not detect the boost libraries (version 1.48 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
Best is to just run sudo ./b2 install
from your boost directory, or install it as a package. What is your operating system?
If you have no root rights, then you could try installing it at a different location:
./b2 install --prefix PREFIX
where PREFIX is a directory where you want boost to be installed. Then include this directory with the '--with-boost' option on the configure script.
Thank you very much.
From what I understand I have to install boost?
I have Ubuntu 18.04 as my OS. Could you please tell me from where can I get the package (in for of tar.gz may be) for boost or which boost should I install, in that case I can use wget.
And I have sudo privilege.
Thank you.
On ubuntu you can simply run:
sudo apt-get install libboost-all-dev
This installs boost.
Thank you very much. It is installed now. It was so simple & yet I could not figure it out. Thank you for prompt response and all the help.
I tried installing xssp-3.0.2 but after make command I get the following message:
perl mtrx/mkmat_h.pl mtrx/ make all-am make[1]: Entering directory '/home/anganara/software/xssp-3.0.2' depbase=
echo src/dssp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'
;\ g++ -DHAVE_CONFIG_H -I. -std=c++11 -pedantic -Wall -Werror -Wno-reorder -I/include/boost-0 -I./src/ -g -O2 -MT src/dssp.o -MD -MP -MF $depbase.Tpo -c -o src/dssp.o src/dssp.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from src/dssp.cpp:11:0: src/mas.h:31:10: fatal error: boost/version.hpp: No such file or directoryinclude <boost/version.hpp>
compilation terminated. Makefile:686: recipe for target 'src/dssp.o' failed make[1]: [src/dssp.o] Error 1 make[1]: Leaving directory '/home/anganara/software/xssp-3.0.2' Makefile:494: recipe for target 'all' failed make: [all] Error 2
Thank you.