fatal error: program_options.hpp not found. Installation problem

53 views
Skip to first unread message

Carlos Sarabia

unread,
Jul 26, 2019, 7:45:25 AM7/26/19
to flashpca-users
Hi everyone,

I am trying to install flashpca from git source (https://github.com/gabraham/flashpca) after installing boost, spectra and eigen.

OS specs: Ubuntu 16.04.6 LTS (64 bits)

I am encountering this problem:

$ cd flashpca
$ make all
g++ -I/home/carlos/Desktop/programs/spectra-pack -I/usr/local/include/boost/include/boost -I/usr/local/include/eigen -march=native -fopenmp -std=c++0x -O3 -DNDEBUG -DVERSION=\"2.0\" -funroll-loops -ftree-vectorize -ffast-math -c flashpca.cpp -o flashpca.o
flashpca.cpp:16:37: fatal error: boost/program_options.hpp: No such file or directory
compilation terminated.
Makefile:52: recipe for target 'flashpca.o' failed
make: *** [flashpca.o] Error 1

My Makefile:

EIGEN_INC=/usr/local/include/eigen
BOOST_INC=/usr/local/include/boost/include/boost
BOOST_LIB=/usr/local/lib/boostlibs
SPECTRA_INC=/home/carlos/Desktop/programs/spectra-pack

My /usr/local/include/boost/include/boost folder does indeed have program_options.hpp:

$ ls /usr/local/include/boost/include/boost/program_options.hpp
/usr/local/include/boost/include/boost/program_options.hpp

Anybody knows what could be happening?

Thanks!

Carlos

Gad Abraham

unread,
Jul 29, 2019, 8:29:06 PM7/29/19
to Carlos Sarabia, flashpca-users
Hi Carlos,

You boost paths look a bit different to mine, on both Linux Ubuntu
12.04 and MacOS 10.14 I have
/usr/local/include/boost/program_options.hpp, but you have the
include/boost repeated twice.

Could it be something went wrong with the boost installation?

Regards

Gad
> --
> You received this message because you are subscribed to the Google Groups "flashpca-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to flashpca-user...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/flashpca-users/b0cd5bc8-eb2d-4ba8-8fbf-37b1d08c7284%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages