Entering edit mode
Guest User
★
13k
@guest-user-4897
Last seen 10.2 years ago
Hi,
I am trying to install Rsamtools (Redhat linux ) and I have been
getting the following error
#######################################
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
'/usr/local/lib64/R/library/Rsamtools/libs/Rsamtools.so':
/usr/local/lib64/R/library/Rsamtools/libs/Rsamtools.so: undefined
symbol: gzopen64
Error: loading failed
Execution halted
ERROR: loading failed
* removing ???/usr/local/lib64/R/library/Rsamtools???
#########################################
I have libz installed
/sbin/ldconfig -p|grep libz
libz.so.1 (libc6,x86-64) => /lib64/libz.so.1
libz.so.1 (libc6,x86-64) => /usr/lib64/libz.so.1
libz.so.1 (libc6) => /lib/libz.so.1
libz.so.1 (libc6) => /usr/lib/libz.so.1
libz.so (libc6,x86-64) => /lib64/libz.so
libz.so (libc6,x86-64) => /usr/lib64/libz.so
libz.so (libc6) => /lib/libz.so
libz.so (libc6) => /usr/lib/libz.so
I checked the LD_LIBRARY_PATH using the following
R CMD env | grep LD_LIBRARY_PATH
LD_LIBRARY_PATH=/usr/local/lib64/R/lib:/usr/local/lib64:/usr/lib/jvm/j
ava-1.6.0-sun-1.6.0.31.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1
.6.0-sun-1.6.0.31.x86_64/jre/lib/amd64
Please let me know if there is anything else that I need to check.
Thanks for your help.
Cheers../Murli
-- output of sessionInfo():
sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
--
Sent via the guest posting facility at bioconductor.org.
Hi,I came across the same problem and I followed the steps that you discussed .
$/lustre1/cxu_pkuhpc/program/R-3.5.1/bin/R CMD ldd Rsamtools/src/Rsamtools.so
linux-vdso.so.1 (0x00007fffec7ff000)
libz.so.1 => /lib64/libz.so.1 (0x00002b4ce4d61000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b4ce4f77000)
libm.so.6 => /lib64/libm.so.6 (0x00002b4ce5306000)
libgomp.so.1 => /usr/lib64/libgomp.so.1 (0x00002b4ce5608000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b4ce5829000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b4ce5a40000)
libc.so.6 => /lib64/libc.so.6 (0x00002b4ce5c5c000)
/lib64/ld-linux-x86-64.so.2 (0x0000003711e00000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b4ce5ffa000)
$objdump -T /lib64/libz.so.1 | grep gzopen
0000003713204340 g DF .text 000000000000000a Base gzopen
[cxu_pkuhpc@hs@homeserver01@20:34:55]/lustre1/cxu_pkuhpc/hs/software/BaGFoot
$lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
files under /lib64/
lrwxrwxrwx 1 root root 13 Jul 25 01:01 libz.so.1 -> libz.so.1.2.3
-rwxr-xr-x 1 root root 117K Jul 24 23:27 libz.so.1.2.11
-rwxr-xr-x 1 root root 89K Feb 22 2013 libz.so.1.2.3
$objdump -T libz.so.1.2.11 | grep gzopen64
0000000000011190 g DF .text 000000000000000d ZLIB_1.2.3.3 gzopen64
$objdump -T libz.so.1.2.3 | grep gzopen64
without anything return .
because I can't change the system file(link libz.so.1.2.11 to libz.so.1),then can I change the Rsamtools/src/Rsamtools.so file ?
let "libz.so.1 => /lib64/libz.so.1 (0x00002b4ce4d61000) " become "libz.so.1.2.11 => /lib64/libz.so.1.2.11/
What else can I do ?
Thank you very much !!