dyn.load 中的“RCurl”加载失败:无法加载共享对象 - Rstudio - openSuse
Load failed for ‘RCurl’ in dyn.load: unable to load shared object - Rstudio - openSuse
我在 opensuse 15.2 上的 Rstudio 中安装“Rcurl”时遇到问题。我已经从 OS 存储库安装了 Rstudio,我一直在搜索类似的问题和答案,并找到了这个 ,我认为它是最接近我的但在 Ubuntu 中。根据一些建议,我没有解决我的问题。这是我得到的错误:
Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/alcides/R/x86_64-suse-linux-gnu-library/3.5/RCurl/libs/RCurl.so':
libicui18n.so.58: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/username/R/x86_64-suse-linux-gnu-library/3.5/RCurl’
Warning in install.packages :
installation of package ‘RCurl’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpKXseTK/downloaded_packages’
这是我的会话信息
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-suse-linux-gnu (64-bit)
Running under: openSUSE Leap 15.2
Matrix products: default
BLAS: /usr/lib64/R/lib/libRblas.so
LAPACK: /usr/lib64/R/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
loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0
谢谢
我重现了错误,起初我无法安装 RCurl。我解决的方法是安装:
sudo zypper install libcurl-devel
然后从 R
install.packages ("RCurl")
Leap 15.2 可用的软件包中也有 R-RCurl-1.95_4.11-lp152.6.7.x86_64.rpm,但它适用于 R 4.0.2,而不是像您使用的那样的 3.5。
我在 opensuse 15.2 上的 Rstudio 中安装“Rcurl”时遇到问题。我已经从 OS 存储库安装了 Rstudio,我一直在搜索类似的问题和答案,并找到了这个
Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/alcides/R/x86_64-suse-linux-gnu-library/3.5/RCurl/libs/RCurl.so':
libicui18n.so.58: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/username/R/x86_64-suse-linux-gnu-library/3.5/RCurl’
Warning in install.packages :
installation of package ‘RCurl’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpKXseTK/downloaded_packages’
这是我的会话信息
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-suse-linux-gnu (64-bit)
Running under: openSUSE Leap 15.2
Matrix products: default
BLAS: /usr/lib64/R/lib/libRblas.so
LAPACK: /usr/lib64/R/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
loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0
谢谢
我重现了错误,起初我无法安装 RCurl。我解决的方法是安装:
sudo zypper install libcurl-devel
然后从 R
install.packages ("RCurl")
Leap 15.2 可用的软件包中也有 R-RCurl-1.95_4.11-lp152.6.7.x86_64.rpm,但它适用于 R 4.0.2,而不是像您使用的那样的 3.5。