当我尝试加载RCurl
程序包时,失败并显示以下错误-
> library(RCurl)
Loading required package: bitops
Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/nocadmin/R/x86_64-pc-linux-gnu-library/3.6/RCurl/libs/RCurl.so':
/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /home/nocadmin/R/x86_64-pc-linux-gnu-library/3.6/RCurl/libs/RCurl.so)
看起来它需要libcurl3而不是libcurl4。所以我尝试安装libcurl3,但它删除了整个R安装-
sudo apt install libcurl3 libcurl-openssl1.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cdbs dh-translations intltool jq libblas-dev libfile-which-perl libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libjq1 liblapack-dev liblapack3 libncurses5-dev libonig4 libpcre2-16-0
libpcre2-32-0 libpcre2-8-0 libpcre2-dev libpcre2-posix0 libpng12-dev libreadline-dev libssl-doc libtext-unidecode-perl libtinfo-dev python3-scour r-cran-cluster r-doc-html scour
tex-common texinfo
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libssl1.0-dev
**The following packages will be REMOVED:
libcurl4 libcurl4-gnutls-dev libssl-dev r-base r-base-core** r-base-dev r-base-html r-cran-boot r-cran-class r-cran-codetools r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass
r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended
The following NEW packages will be installed:
libcurl-openssl1.0-dev libcurl3 libssl1.0-dev
0 upgraded, 3 newly installed, 22 to remove and 257 not upgraded.
Need to get 1,660 kB/1,874 kB of archives.
After this operation, 66.7 MB disk space will be freed.
Do you want to continue? [Y/n]
我正在Ubuntu 18中运行R。以下是有关R安装的详细信息-
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
locale:
[1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN
[4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN
[7] LC_PAPER=en_IN LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.1
我们将不胜感激任何帮助。