odelaneau / shapeit4

Segmented HAPlotype Estimation and Imputation Tool
MIT License
89 stars 17 forks source link

Not able to install SHAPEIT4 on Mac #36

Open ryshi06 opened 3 years ago

ryshi06 commented 3 years ago

I want to install SHAPEIT4 on the terminal. I downloaded HTSLIB and BOOST under /Downloads folder and set the BOOST PATH to

BOOST IOSTREAM & PROGRAM_OPTION LIBRARIES [SPECIFY YOUR OWN PATHS]

BOOST_INC=/Users/ruyushi/Downloads/boost_1_73_0/boost # was /usr/include BOOST_LIB_IO=/Users/ruyushi/Downloads/lib/libboost_iostreams.a # was /usr/lib/x86_64-linux-gnu/libboost_iostreams.a BOOST_LIB_PO=/Users/ruyushi/Downloads/lib/libboost_program_options.a # was /usr/lib/x86_64-linux-gnu/libboost_program_options.a

and when I put command locate libboost_program_options.a libboost_iostreams.a libhts.a it works well.

But when I type command make, it generates an error:

shapeit4 git:(master) ✗ make g++ -std=c++11 -O3 -c src/io/haplotype_writer.cpp -o obj/haplotype_writer.o -Isrc -I/Users/ruyushi/Downloads/include/htslib -I/Users/ruyushi/Downloads/boost_1_73_0/boost In file included from src/io/haplotype_writer.cpp:22: In file included from src/io/haplotype_writer.h:25: src/utils/otools.h:44:10: fatal error: 'boost/program_options.hpp' file not found

include <boost/program_options.hpp>

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated. make: *** [obj/haplotype_writer.o] Error 1

I go back to my /Downloads/boost_1_73_0/boost, I can find the program_options.hpp file.

Can anyone help me with this? Thanks.

odelaneau commented 3 years ago

Hi,

Try:

BOOST_INC=/Users/ruyushi/Downloads/boost_1_73_0/

Instead of

BOOST_INC=/Users/ruyushi/Downloads/boost_1_73_0/boost

Best,