medvedevgroup / TwoPaCo

A fast constructor of the compressed de Bruijn graph from many genomes
Other
39 stars 10 forks source link

Fail to install TwoPaCo #31

Open Dominic7227 opened 1 year ago

Dominic7227 commented 1 year ago

Hi,

Thank you for developing TwoPaCo!

I had the following error when I compiled the files. I know this should be related to the TBB library, which I followed the instruction (https://github.com/oneapi-src/oneTBB/blob/master/INSTALL.md) to install. However, it still throws the error. Could you please clarify if we need to specify the TBB library when installing TwoPaCo? Appreciate your help!

/home/usr/Tools/TwoPaCo/src/graphdump/graphdump.cpp:15:10: fatal error: oneapi/tbb/parallel_sort.h: No such file or directory
 #include "oneapi/tbb/parallel_sort.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
graphdump/CMakeFiles/graphdump.dir/build.make:75: recipe for target 'graphdump/CMakeFiles/graphdump.dir/graphdump.cpp.o' failed
make[2]: *** [graphdump/CMakeFiles/graphdump.dir/graphdump.cpp.o] Error 1
CMakeFiles/Makefile2:115: recipe for target 'graphdump/CMakeFiles/graphdump.dir/all' failed
make[1]: *** [graphdump/CMakeFiles/graphdump.dir/all] Error 2
Makefile:155: recipe for target 'all' failed
make: *** [all] Error 2
iminkin commented 1 year ago

Hi,

It seems that the compiler cannot find the library for some reason. From my point of view, the easiest way to install TwoPaCo is using bioconda (https://bioconda.github.io/). Alternatively, you could try to install TBB using one of the package managers available on your system (yum/apt/...), this way it is more likely to install everything correctly.