Closed DarioS closed 1 day ago
I have the same Issue on the recent Debian Bullseye (11).
$ dpkg --list | grep hts
ii libhts-dev:amd64 1.11-4 amd64 development files for the HTSlib
ii libhts3:amd64 1.11-4 amd64 C library for high-throughput sequencing data formats
$ find /usr/ -name hts.h -or -name libhts.so
/usr/lib/x86_64-linux-gnu/libhts.so
/usr/include/htslib/hts.h
I tried these without success:
HTSLIB_DIR=/usr/lib/x86_64-linux-gnu/ cpanm -v Bio::DB::HTS
HTSLIB_DIR=/usr/include/htslib/ cpanm -v Bio::DB::HTS
PKG_CONFIG_PATH=/usr/include/htslib/:/usr/lib/x86_64-linux-gnu/ cpanm -v Bio::DB::HTS
The log message See .../build.log for details
comes from cpan/cpanm, I think, and is not specific to this CPAN distribution.
@DarioS Could you install this dist eventually? If so, how?
@dboehmer I could reproduce the error on Ubuntu 21.10 (Impish Indri), using HTSLIB_DIR as per your message above. I did not find a way around it.
However, I can give you 2 ways to install Bio-DB-HTS.
Pre-compiled libraries - somewhat easier
perl Build.PL --htslib-includedir /usr/include/htslib --htslib-libdir /lib/x86_64-linux-gnu
./Build
htslib Git repo - less easy one
$ git clone --branch master --depth 1 https://github.com/samtools/htslib.git
$ cd htslib
$ make
$ export HTSLIB_DIR=<some root dir>/htslib/
perl Build.PL
and ./Build
Final comments
perl Build.PL
worked fine, but got some warnings running ./Build
Closing because of aging. Please, re-open this if you feel it's still current
I get an error such as
I use
cpanm
to install it. When I look at the log file it's not clear what the error is"This script will attempt to locate HTSlib ..." doesn't explain whether the script successfully found HTSlib or not for my particular instance. Also, the end of the log file advises "See /users/stgrad/dario/.cpanm/work/1585179865.8235/build.log for details." But, I am already viewing that file, so the user should not be instructed to re-open the log file they already opened.
I'm baffled why this script can't detect HTSlib on the server I'm using: