

I am trying to install a tool known as samtools and it has the problem with this lzma.h, so going through the forums, I downloaded the xz utils from this link ( ), downloaded source *.tar.gz and build it, compiled. If you haven't read it already, take a look at the INSTALL file which has more information on how to build the package.I would like to say that I am still facing the issue. This allows libbz2 to be found when you try to use them even though it's not in one of the usual locations. The -Wl,-R part bakes the location of libbz2 into the libhts.so shared library and the htsfile, bgzip and tabix commands. configure CPPFLAGS=-I$HOME/opt/bzip2/include LDFLAGS="-L$HOME/opt/bzip2/lib -Wl,-R$HOME/opt/bzip2/lib"Īfter configure has finished you should just need to run make. So if you install bzip2 under prefix $HOME/opt/bzip2 you would configure htslib like this: If you can't install the operating system package for some reason, you can build and install it yourself as you have done and then tell configure where to find it. Some distributions put the files needed to build software against libbz2 in a separate package - you need to make sure you have that one installed. The best way to ensure you have it is to install it from the distribution package. Most distributions come with bzip2 these days. You shouldn't make any changes to configure.ac. Produced elsewhere unreadable) or resolve this error to build HTSlib. Or Ubuntu Linux) or bzip2-devel (on RPM-based Linux distributions or Cygwin)Įither configure with -disable-bz2 (which will make some CRAM files īuilding HTSlib requires libbzip2 development files to be installed on theīuild machine you may need to ensure a package such as libbz2-dev (on Debian The CRAM format may use bzip2 compression, which is implemented in HTSlibīy using compression routines from libbzip2. noĬonfigure: error: libbzip2 development files not found none requiredĬhecking for BZ2_bzBuffToBuffCompress in -lbz2. Otherwise, it could not find it.Ĭhecking for library containing connect.

If the prefix is /usr/local then there is no problem. Maybe I am using an old CentOS distribution. Libbz2 is also installed in the system directory /usr/lib64. I tried to modify the configure.ac script, but it does not seem to work. I installed bzip2 in $prefix/include $prefix/libīut the configure script could not find it.
