Hi,when I tried to install Rsamtools ,I get the errors:
Error: package or namespace load failed for ‘Rsamtools’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/lustre1/cxu_pkuhpc/program/R-3.5.1/library/Rsamtools/libs/Rsamtools.so':
/path/R-3.5.1/library/Rsamtools/libs/Rsamtools.so: undefined symbol: gzopen64
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/path/program/R-3.5.1/library/Rsamtools’
- linux version:
$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
2.
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS release 6.5 (Final)
Matrix products: default
BLAS: /path/program/R-3.5.1/lib/libRblas.so
LAPACK: /path/program/R-3.5.1/lib/libRlapack.so
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=en_US.UTF-8 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
other attached packages:
[1] BiocInstaller_1.30.0
loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1
>
(1)commond:
- tar -xzvf Rsamtools_1.32.2.tar.gz
- R CMD INSTALL Rsamtools
(2)$/path/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)
(3)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 !!
Thanks,Martin.But after editing the Rsamtools/src/Makevars(simply use vim), I still got the same errors. Following is the whole Rsamtools/src/Makevars file:
command and error reports:
and I can't find the libz.so.1 after installing
sorry if I misunderstand anything.
I think the updated line should not have had -L, so
Thanks again. but now it reported new errors after updating.
libz.so.1 still links to /lib64/libz.so.1
I'll give this some additional thought, but have you contacted your system administrator to indicate that the symlink seems incorrect (libz 1.2.3.3 is from 2006, more than 12 years ago).
I think you might also try replacing the full path to libz.so with the full path to the static ilbrary libz.a.
but both doesn't work .