SINVICT - Installation Error - Boost Linking Issue
1
0
Entering edit mode
7.6 years ago
mrskkdennen ▴ 10

I have come across an issue when attempting to install sinvict. I have downloaded, compiled and installed Boost 1_62 and G++-6.1.0. Prerequisites for this code are g++ version: 4.8.3 and Boost version: 1_53.

(Manual can be found here - https://github.com/sfu-compbio/sinvict//blob/master/README.md)

Below is a fatal error that occurs when I attempt the make command in the sinvict directory.

$ make g++ -c -g -std=c++0x main.cpp -o main.o g++ -c -g -std=c++0x Sample.cpp -o Sample.o g++ -c -g -std=c++0x ReadcountEntry.cpp -o ReadcountEntry.o g++ -c -g -std=c++0x Allele.cpp -o Allele.o main.cpp:1:10: fatal error: 'boost/program_options/options_description.hpp' file not found include

1 error generated. make: * [main.o] Error 1 make: * Waiting for unfinished jobs....

Thanks so much in advance, and please let me know if you need to know anything more.

SNP software error sequencing sequence • 1.8k views
ADD COMMENT
0
Entering edit mode

And does the file boost/program_options/options_description.hpp exist somewhere? Based on the error, it either doesn't exist or isn't found.

ADD REPLY
0
Entering edit mode

I followed the path through the boost files, and it is definitely there.

ADD REPLY
0
Entering edit mode

You may need to add the boost library path to LIBRARY_PATH.

ADD REPLY
0
Entering edit mode

How would I do that? (Sorry, I 'm relatively new to command line).

Here are the paths to the boost libraries:

Below are the paths to Boost.

/Users/kerriwolf/boost_1_62_0/boost/program_options/options_description.hpp /Users/kerriwolf/boost_1_62_0/stage/lib/libboost_program_options.a /Users/kerriwolf/boost_1_62_0/stage/lib/libboost_program_options.dylib

ADD REPLY
0
Entering edit mode

You appear to be using MacOS.

Did you use one of these methods to install boost?

ADD REPLY
0
Entering edit mode
7.6 years ago
mrskkdennen ▴ 10

Problem solved. I had to modify the make file in the program in order to successfully install the program, and link it to the correct path to Boost. Thanks to all that helped!

ADD COMMENT

Login before adding your answer.

Traffic: 1817 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6