bxtools icon indicating copy to clipboard operation
bxtools copied to clipboard

error installing - lzma

Open AprilJack opened this issue 8 years ago • 4 comments
trafficstars

I'm trying to install bxtools locally on our server. When I run the command: ./configure --prefix=/home/april/local/bxtools/0.0/

Configure runs fine until I get the error:

checking for library containing lzma_end... no
configure: error: liblzma not found, please install lzma

I installed lzma locally from the resource https://tukaani.org/xz/ and added ~/lzma/5.2.3/bin/ to my path but still get this error. Is bxtools looking for another portion of lzma that I may have not installed? I can't find any library called "lzma_end" in the package I installed? Is this package necessary? Is there a way to tell bxtools to ignore this dependency?

AprilJack avatar Oct 27 '17 21:10 AprilJack

What OS are you compiling on? I've heard of issues with this on OS X.

The dependency comes not from bxtools, but from htslib. (see this thread). It is needed for CRAM decoding, and being able to compile htslib on your system would be important for other apps as well.

And just to make sure, are you adding your installed lzma to your PATH, or to LD_LIBRARY_PATH? You would want the latter.

walaj avatar Oct 29 '17 13:10 walaj

Hmmm. I still can't seem to fix this problem. I'm attempting to install bxtools locally on a shared computing resource for which I don't have root access. It's a 64-bit Linux system. I have programs installed locally that depend on the htslib internally (samtools, bcftools). I have also installed htslib separately without issue, to see if that would help. I have added lzma and htslib to my LD_LIBRARY_PATH but I still get the same error.

AprilJack avatar Nov 09 '17 00:11 AprilJack

I had the same error, try: apt-get install -y liblzma-dev

Worked for me.

MrsLaviniaG avatar Mar 07 '18 02:03 MrsLaviniaG

I have the same error too. And try with apt-get install -y liblzma-dev is work for me! Thanks @MrsLaviniaG !!

But after this error, I have another error say:

checking for library containing BZ2_bzBuffToBuffCompress... no
configure: error: libbz2 not found, please install bz2

So, I try with:

apt-get install libbz2-dev

And it work !

AmberFu avatar May 24 '18 10:05 AmberFu