问题
从16.04更新到Ubuntu 18.04后,无法安装一些R软件包(统计编程语言)。问题与共享库的使用有关。更确切地说:libcurl
/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not
found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
/libs/curl.so)
沙发手,我尝试过...
- ...使用来安装libcurl的早期版本
sudo apt-get install libcurl3
,但是该过程中卸载了其他库,因此R无法使用。
错误输出
尝试安装名为“ forecast”的软件包时,例如:
install.packages("forecast")
installing to /home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared
object '/home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl/libs/curl.so':
/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not
found (required by /home/avila/R/x86_64-pc-linux-gnu-library/3.4/curl
/libs/curl.so)
ERROR: lazy loading failed for package ‘forecast’
* removing ‘/home/avila/R/x86_64-pc-linux-gnu-library/3.4/forecast’
Warning in install.packages :
installation of package ‘forecast’ had non-zero exit status
其他信息:
- R版本3.4.4(2018-03-15)
- 平台:x86_64-pc-linux-gnu(64位)