OpenSSL安装和"openssl.so加载失败...执行停止" [英] OpenSSL installation and "openssl.so loading failed ... execution halted"

查看:542
本文介绍了OpenSSL安装和"openssl.so加载失败...执行停止"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过R在OpenSSL中安装

I'm trying to install OpenSSL in R via

install.packages("openssl")

这是通过brew全新安装的R,因此不确定出什么问题.这是最后约20条日志

It's a clean install of R via brew so not sure what's wrong. Here are the last ~20 logs

> o compatibility.o diffie.o envelope.o error.o hash.o info.o keygen.o
> keys.o onload.o openssh.o password.o pem.o pkcs12.o pkcs7.o rand.o
> rsa.o signing.o ssl.o stream.o write.o
> -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto -F/usr/local/Cellar/r/3.3.2/R.framework/.. -framework R -lintl -Wl,-framework -Wl,CoreFoundation installing to /usr/local/lib/R/3.3/site-library/openssl/libs
> ** R
> ** inst
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** installing vignettes
> ** testing if installed package can be loaded Error in dyn.load(file, DLLpath = DLLpath, ...) :   unable to load shared object
> '/usr/local/lib/R/3.3/site-library/openssl/libs/openssl.so':  
> dlopen(/usr/local/lib/R/3.3/site-library/openssl/libs/openssl.so, 6):
> Symbol not found: _DSA_get0_key   Referenced from:
> /usr/local/lib/R/3.3/site-library/openssl/libs/openssl.so   Expected
> in: flat namespace  in
> /usr/local/lib/R/3.3/site-library/openssl/libs/openssl.so Error:
> loading failed Execution halted ERROR: loading failed
> * removing ‘/usr/local/lib/R/3.3/site-library/openssl’
> 
> The downloaded source packages are in
>   ‘/private/var/folders/8n/47bzk9810mq31790qbb38zg80000gn/T/Rtmpe7etrQ/downloaded_packages’
> Warning message: In install.packages("openssl") :   installation of
> package ‘openssl’ had non-zero exit status

推荐答案

我遇到了同样的错误,并且尝试卸载并重新安装等.没有错误之后,我终于成功地将lib更改为我的本地lib安装使用默认值:

I got the same error to you and after trying to uninstall and reinstall, etc. without error, I finally succeeded with changing the lib to my local lib install of using default:

/Users/username/Library/R/3.6/library

默认情况下,R将软件包安装到/usr/local/lib/R/3.6/site-library中.让我们尝试一下

By default, R install packages into /usr/local/lib/R/3.6/site-library. Let's try with

install.packages("openssl", lib = "/Users/username/Library/R/3.6/library")

您可以运行.libPaths()来检查库路径

You can run .libPaths() for checking your library paths

这篇关于OpenSSL安装和"openssl.so加载失败...执行停止"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆