Closed inti closed 5 years ago
Are you on a linux server? If so, does installing the following solve your problem:
sudo apt-get install libbz2-dev
I do not have apt-get
, I will se how I can get it install on my system. If you have experience/advice please let me know.
Cheers
$uname -a
Linux darwin 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$lsb_release -rd
Description: CentOS Linux release 7.3.1611 (Core)
Release: 7.3.1611```
Try this instead:
sudo yum install zlib-devel bzip2-devel
OK, sys admin has done that. now it says
g++ -O3 -g -D__STDC_LIMIT_MACROS -D_FILE_OFFSET_BITS=64 -std=c++0x -DMACOSX -pthread -Ilib -Ilib/htslib -o src/vcf_writer.o -c src/vcf_writer.cpp
cd lib/htslib && make
make[1]: Entering directory `/home/ipedroso/app/HipSTR/lib/htslib'
gcc -g -Wall -O2 -I. -c -o cram/cram_io.o cram/cram_io.c
cram/cram_io.c:61:18: fatal error: lzma.h: No such file or directory
#include <lzma.h>
^
compilation terminated.
make[1]: *** [cram/cram_io.o] Error 1
make[1]: Leaving directory `/home/ipedroso/app/HipSTR/lib/htslib'
make: *** [lib/htslib/libhts.a] Error 2
Do you know if it is related to the same libraries or do we need another lib?
Cheers
It's another library that htslib requires. You can install them as follows:
yum install lzma-devel xz-devel
That did it. Thanks for the help
Hi I am getting the following error. I am installing using a anaconda environment. I tried installing samtools and htslib with anaconda and it works fine. Any guide on how to solve this. Thanks in advance!