twolinin / longphase

GNU General Public License v3.0
99 stars 9 forks source link

./longPhase: error while loading shared libraries: libdeflate.so.0: cannot open shared object file: No such file or directory #2

Closed yekaizhou closed 2 years ago

yekaizhou commented 2 years ago

the installation is running smoothly but jumped out this issue when running longphase.

ythuang0522 commented 2 years ago

Hi, can you create a clean virtual env (e.g., conda env) for installation? We can't reproduce the error but suspect this might be due to automatic search of libdeflate during htslib configuration (see below). It would be better if you could confirm any previous installation of libdefalte.

--with-libdeflate
    Libdeflate is a heavily optimized library for DEFLATE-based compression
    and decompression.  It also includes a fast crc32 implementation.
    By default, ./configure will probe for libdeflate and use it if
    available.  To prevent this, use --without-libdeflate.
mailmrcai commented 1 year ago

I have the same issue, solved by setting the environment variable. export LD_LIBRARY_PATH=" your libdeflate path containing the file libdeflate.so.0" I wonder this is caused by makefile

twolinin commented 1 year ago

Hi @mailmrcai

Thank you for your testing. I have some questions to ask here.

  1. Did you download the longphase_linux-x64.tar.xz or did you use git clone to compile and execute LongPhase?
  2. Did your environment have libdeflate installed before installing LongPhase?

Thanks JH