我尝试在 R 中安装 Openssl 包(在 Ubuntu 18.04 中使用 RStudio),但出现错误“未定义符号:RSA_pkey_ctx_ctrl”:
Error: package or namespace load failed for ‘openssl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/danilo/R/x86_64-pc-linux-gnu-library/3.4/openssl/libs/openssl.so':
/home/danilo/R/x86_64-pc-linux-gnu-library/3.4/openssl/libs/openssl.so: undefined symbol: RSA_pkey_ctx_ctrl
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/danilo/R/x86_64-pc-linux-gnu-library/3.4/openssl’
Warning in install.packages :
installation of package ‘openssl’ had non-zero exit status.
Run Code Online (Sandbox Code Playgroud)
我已经尝试通过 RStudio 和终端进行安装,但由于我对 Ubuntu 比较陌生,所以我没有任何成功。我下载了 tar.gz 文件,但我不知道该怎么处理它。
我实际上想使用包httr和ggmap,但它们都需要openssl.
小智 15
在终端中尝试:
sudo apt-get install libssl-dev
Run Code Online (Sandbox Code Playgroud)
然后尝试再次在 R 中安装包 openssl。