avi*_*ila 13 package-management shared-library r curl 18.04
从 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)
Run Code Online (Sandbox Code Playgroud)
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
Run Code Online (Sandbox Code Playgroud)
似乎要获得预测结果,您可能需要从重命名现有的 R个人库开始:
mv /home/$USER/R /home/$USER/R_old
Run Code Online (Sandbox Code Playgroud)
还要安装 curl 的开发包:
sudo apt-get install libcurl4-openssl-dev
Run Code Online (Sandbox Code Playgroud)
然后尝试从R-terminal安装您的 R 包:
$ R
install.packages("forecast")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
16629 次 |
| 最近记录: |