Closed NewtontheNeuron closed 1 week ago
Hi, we do recommend installing cellsnp-lite via conda/miniconda to avoid the dependency issues.
For manual installation as in your case, when I tried reproducing the error above, I found the installation of cellsnp-lite runs smoothly if building htslib without libdeflate
(which should be the default behavior unless --with-libdeflate
option is passed to ./configure
in the htslib folder). Therefore, you may try re-building htslib to see whether it works without libdeflate.
I tested with the following environment ("libdeflate" is not installed, while other dependencies are available, such as "liblzma", "libbz2", "libcurl", "libcrypto"):
autoreconf -i
./configure
make
../htslib
), i.e.,autoreconf -iv
./configure
make
Alternatively, you can still use the current pre-built htslib. In this case, you may try removing (or renaming) the static library libhts.a
to force linking cellsnp-lite to the shared htslib.so
, as the build system of cellsnp-lite always uses the "libhts.a" when both libraries are detected.
Thank you. It took me several tries but it seems to have been built correctly now. Here is my process for anyone else who might have the same error.
htslib
, and that it was located ../htslib
relative to cellsnp-lite
make install
for htslib, which may have been causing path related problemslibhts.a
.bashrc
as well
Hello,
I have been trying to resolve an error for a long while now. It is similar to this issue submitted to htslib https://github.com/samtools/htslib/issues/688. I also submitted an issue and one of their devs shared that there may be an issue with
cellsnp-lite
's linking to thelibhts.a
file. Here is the issue I submitted.Some details:
htslib
andlibdeflate
my self.libdeflate
seems to be recognized byhtslib
when I runldd libhts.so
--with-htslib
,LDFLAGS="-Wl,-R$HOME/opt/htslib/lib"
, and etc.I have added the error that I keep receiving when I run
make
.Your assistance will be much appreciated.