【发布时间】:2017-01-27 00:09:13
【问题描述】:
我正在尝试通过在 R 中安装 OpenSSL
install.packages("openssl")
这是通过 brew 全新安装的 R,所以不确定出了什么问题。这是最近的 ~20 条日志
> 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
【问题讨论】:
-
Problem installing R packages that depends from OpenSSL library in rocker/rstudio。看起来您需要安装 OpenSSL 开发标头。把它当作它的价值。我不是 R 或 Brew 人。
-