fbreitwieser / krakenuniq

🐙 KrakenUniq: Metagenomics classifier with unique k-mer counting for more specific results
GNU General Public License v3.0
224 stars 43 forks source link

fatal bzlib.h error in v0.7.3 install #105

Open jessmewald opened 2 years ago

jessmewald commented 2 years ago

I'm attempting to install the current release (v0.7.3) with the -j flag for jellyfish installation.

The series of commands I used to install and the error that results is shown below.

curl -L https://github.com/fbreitwieser/krakenuniq/archive/refs/tags/v0.7.3.tar.gz -o krakenuniq-0.7.3.tar.gz && \
tar -xf krakenuniq-0.7.3.tar.gz && \
cd krakenuniq-0.7.3 && \
mkdir krakenuniq_install && \
./install_krakenuniq.sh -j /tools/krakenuniq-0.7.3/krakenuniq_install
----------------------------------------------------------------------
 /bin/mkdir -p '/tools/krakenuniq-0.7.3/jellyfish-install/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c bin/jellyfish '/tools/krakenuniq-0.7.3/jellyfish-install/bin'
libtool: install: /usr/bin/install -c bin/.libs/jellyfish /tools/krakenuniq-0.7.3/jellyfish-install/bin/jellyfish
make[1]: Leaving directory '/tools/krakenuniq-0.7.3/jellyfish-install'
make -C ./src clean install
make: Entering directory '/tools/krakenuniq-0.7.3/src'
Compiling with multithreading support: yes
rm -rf classify classifyExact db_sort set_lcas db_shrink build_taxdb read_uid_mapping count_unique dump_taxdb query_taxdb grade_classification test_hll_on_db dump_db_kmers *.o *.dSYM *.gch
g++ -Wall -Wextra -Wfatal-errors -pipe -O2 -std=c++11 -fopenmp -I./gzstream -D NDEBUG   -c krakendb.cpp
g++ -Wall -Wextra -Wfatal-errors -pipe -O2 -std=c++11 -fopenmp -I./gzstream -D NDEBUG   -c quickfile.cpp
g++ -Wall -Wextra -Wfatal-errors -pipe -O2 -std=c++11 -fopenmp -I./gzstream -D NDEBUG   -c krakenutil.cpp
g++ -Wall -Wextra -Wfatal-errors -pipe -O2 -std=c++11 -fopenmp -I./gzstream -D NDEBUG   -c seqreader.cpp
In file included from third_party/bxzstr/include/compression_types.hpp:14,
                 from third_party/bxzstr/include/bxzstr.hpp:20,
                 from seqreader.hpp:24,
                 from seqreader.cpp:21:
third_party/bxzstr/include/bz_stream_wrapper.hpp:13:10: fatal error: bzlib.h: No such file or directory
   13 | #include <bzlib.h>
      |          ^~~~~~~~~
compilation terminated.
make: *** [Makefile:75: seqreader.o] Error 1
make: Leaving directory '/tools/krakenuniq-0.7.3/src'
Error building KrakenUniq. See install_krakenuniq.sh -h for options.

Any help you can offer would be greatly appreciated.

alekseyzimin commented 2 years ago

Please install bzip2 development headers for your version of linux