Error in installation
HLHsieh opened this issue · comments
Hi there,
I am trying to use DeepRepeat, and I tried to install DeepRepeat via conda.
After typing the following code
h5c++ -O3 -std=c++11 -I $DR_conda_base/include -L$DR_conda_base/lib -lhts -o genomic1FE ComFunction.c ComOption.c BamReader.c Fast5Index.c Fast5Reader.c RepeatFeatExtract.c genomic1FE.c $DR_conda_base//lib/libhdf5_hl_cpp.a $DR_conda_base//lib/libhdf5_cpp.a $DR_conda_base//lib/libhdf5_hl.a $DR_conda_base//lib/libhdf5.a -lz -ldl -lpthread
I got the following error:
/home/miniconda3/envs/py36deeprepeat/bin/../lib/gcc/x86_64-conda-linux-gnu/7.5.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so: undefined reference to 'memcpy@GLIBC_2.14'
/home/miniconda3/envs/py36deeprepeat/bin/../lib/gcc/x86_64-conda-linux-gnu/7.5.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so: undefined reference to 'aligned_alloc@GLIBC_2.16'
/home/miniconda3/envs/py36deeprepeat/bin/../lib/gcc/x86_64-conda-linux-gnu/7.5.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so: undefined reference to 'clock_gettime@GLIBC_2.17'
collect2: error: ld returned 1 exit status
I would appreciate it if there is any tips to fix it.
Thank you!
Hi @kaichop,
Thanks for your timely response. I have tried conda install -c rmg glibc
. Unfortunately, it did not work, and I got other error message as follows
/home/miniconda3/envs/py36deeprepeat/bin/h5c++: line 304: 2860677 Segmentation fault (core dumped) /home/miniconda3/envs/py36deeprepeat/bin/x86_64-conda_cos6-linux-gnu-c++ -I/home/miniconda3/envs/py36deeprepeat/include -I/home/miniconda3/envs/py36deeprepeat/include -D_FORTIFY_SOURCE=2 -O2 -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -c -O3 -std=c++11 -I /home/miniconda3/envs/py36deeprepeat//include -L/home/miniconda3/envs/py36deeprepeat//lib ComFunction.c ComOption.c BamReader.c Fast5Index.c Fast5Reader.c RepeatFeatExtract.c genomic1FE.c
@HLHsieh which glibc version do you use? You can also try to use gxx_linux-64=7.5
rather than gxx_linux-64
during the installation of virtual environment.
Hi @liuqianhn,
Thanks for your prompt response. I have used gxx_linux-64=7.5
during the installation of virtual environment as like you predefined in environment.yml. The glibc version is 2.19.
Best Regards,
Hsin
@HLHsieh It is weird. Could you please share what is your output for the commands below
ldd --version
strings /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so | grep GLIBC
ldd strings /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so
By the way, are you able to use docker
version? Thanks.
Hi @liuqianhn,
ldd --version
It returned
ldd (GNU libc) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
strings /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so | grep GLIBC
It returned a bunch of stuff, and I attached it here output.txt.
ldd strings /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so
It returned
strings:
ldd: ./strings: No such file or directory
/home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so:
not a dynamic executable
I have not tried docker
version since I am not familiar with docker. I will try it if necessary.
Thank you,
Hsin
@HLHsieh Thank you for sharing. My apologies: the last command is ldd /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so
Hi @liuqianhn
ldd /home/miniconda3/envs/py36deeprepeat//lib/libstdc++.so
returned
not a dynamic executable
Hi there,
I still can’t install it, so I used docker instead.