在集群中的R中安装devtools。无法加载共享对象openssl

时间:2017-09-01 22:10:58

标签: r linux cluster-computing

我已经把头发拉了几天试图将devtools R package作为本地用户安装在群集上。

所有其他R包都在本地安装。许多其他Linux软件包都安装在本地。

请让我知道我还能为您提供更多信息,以便有人协助我解决此问题。

  

错误:dyn.load中的'git2r'的包或命名空间加载失败(文件,   DLLpath = DLLpath,...):无法加载共享对象   ' /home/CAM/anesta/R/x86_64-pc-linux-gnu-library/3.4/git2r/libs/git2r.so' ;:   libcrypto.so.1.1:无法打开共享对象文件:没有这样的文件或   目录

编辑:

-bash-4.2$ ldd /home/CAM/anesta/R/x86_64-pc-linux-gnu-library/3.4/git2r/lib‌​s/g2r.so
ldd: /home/CAM/anesta/R/x86_64-pc-linux-gnu-library/3.4/git2r/lib‌​s/git2r.so: No such file or directory

不幸的是,在R无法加载git2r之后,它删除了本地安装目录。

更多信息: 我在本地安装了openssl,这是libcrypto.so.1.1所在的位置。

-bash-4.2$ ldd /home/CAM/anesta/tools/openssl/lib/libssl.so.1.1 
    linux-vdso.so.1 =>  (0x00007ffc9cf57000)
    libcrypto.so.1.1 => not found
    libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f5bef8af000)
    libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f5bef693000)
    libc.so.6 => /usr/lib64/libc.so.6 (0x00007f5bef2d2000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5befd2d000)

我开始认为有一个问题是R正在查看本地openssl安装和服务器openssl安装,它们可能是两个不同的版本。

#!/bin/bash

#if [[ `hostname -s` =~ -submit- ]]; then
#export PATH=/tgcapps/environment_modules/modules-3.2.10/Modules/3.2.10/bin/:$PATH
#export LD_LIBRARY_PATH=/tgcapps/tcl/tcl8.5.12/lib:$LD_LIBRARY_PATH
#source /tgcapps/environment_modules/modules-3.2.10/Modules/3.2.10/init/bash
#fi

#CURL
export PATH=/home/CAM/anesta/tools/curl7/lib/pkgconfig$PATH
export PATH=/home/CAM/anesta/tools/curl7/lib/pkgconfig/libcurl.pc$PATH
export PATH=/home/CAM/anesta/tools/curl7$PATH
export PATH=/home/CAM/anesta/tools/openssl$PATH
export PATH=/home/CAM/anesta/tools/openssl/lib/pkgconfig/openssl.pc$PATH
export PATH=/home/CAM/anesta/tools/openssl/lib/pkgconfig$PATH
export PATH=/home/CAM/anesta/tools/bzip2/bin:$PATH
export PATH=/home/CAM/anesta/tools/perl:$PATH
export PERL5LIB=/home/CAM/anesta/tools/perl/lib:$PATH


#R
export LIBRARY_PATH="/home/CAM/anesta/tools/curl7/:/home/CAM/anesta/tools/openssl/:home/CAM/anesta/tools/perl/:$LIBRARY_PATH"

export R_LIBS=home/CAM/anesta/local/R_libs:/home/CAM/anesta/tools/openssl/lib/pkgconfig
export R_LIBS=/home/CAM/anesta/tools/openssl/lib/pkgconfig/openssl.pc

export R_LIBS=/home/CAM/anesta/tools/curl7/lib/pkgconfig
export R_LIBS=/home/CAM/anesta/tools/curl7/lib/pkgconfig/libcurl.pc

#export MODULEPATH="$MODULEPATH:/isg/shared/modulefiles"

export PKG_CONFIG_PATH=/home/CAM/anesta/toos/perl/lib/5.26.0:/home/CAM/anesta/tools/openssl/lib/pkgconfig:/home/CAM/anesta/tools/openssl/lib/pkgconfig/openssl.pc:/home/CAM/anesta/tools/curl7/lib/pkgconfig:/home/CAM/anesta/tools/curl7/lib/pkgconfig/libcurl.pc
module load R/3.4.1


if [[ `hostname -s` =~ [Tt][Gg][Cc] ]]; then
module add libstdc++/6.0.13
module load gcc torque
fi

export ALLOW_WGCNA_THREADS=30
export png_REQUIRES="libpng"

第二次编辑:

-bash-4.2$ LD_LIBRARY_PATH=/home/CAM/anesta/tools/openssl/lib:$LD_LIBRA‌​RY_PATHdd /home/CAM/anesta/tools/openssl/lib/libssl.so.1.1
    linux-vdso.so.1 =>  (0x00007ffe361a5000)
    libcrypto.so.1.1 => /home/CAM/anesta/tools/openssl/lib/libcrypto.so.1.1 (0x00007f1eaf242000)
    libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f1eaf033000)
    libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f1eaee17000)
    libc.so.6 => /usr/lib64/libc.so.6 (0x00007f1eaea56000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f1eaf936000)

0 个答案:

没有答案