This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Problem installing bam-readcount 0.7.4

I am having trouble installing bam-readcount on centos 5 using Cmake 3.0.2 due to a boost library linking error. Since boost 1.55 is installed system wide so I followed the suggestions in this previous thread with similar problem (Problem Compiling Bam-Readcount) by adding the following lines in CMakeList.txt

set(BOOST_INCLUDE "/risapps/rhel5/boost/1.55.0/include")
find_package(Boost REQUIRED)
include_directories(${BOOST_INCLUDE})

However it failed again with the error include could not find load file: /usr/lib64/boost/Boost.cmake. Even tried the trick by explicitly linking Boost libraries in the cmake line DBoost_LIBRARY_DIRS and DBoost_INCLUDE_DIR and still the same.

Any advice?

bam-readcount software install

Please post your operating system and version.

This is what I did:

Deleted the 3 lines related to boost in CMakeList.txt and added this line find_package(Boost REQUIRED). Then tried the UBoost trick in that link and it did not work.

Then I explicitly set -DBOOST_ROOT in cmake command which points to the boost installed system wide. The error persisted.

Also tried to add the boost path to LD_LIBRARY_PATH and CMAKE_LIBRARY_PATH and CMAKE_INCLUDE_PATH and still cmake could not find boost.

1 answer

That's weird. All of the required boost code should be bundled, requiring no special action. There have been a few posts lately about people trying to install/configure their own versions of boost. If you're trying to install bam-readcount v0.7.4, please try doing so without setting any special options for boost and report back.

Log in to answer this question.