![在 R 上安装 openssl](https://linux22.com/image/85872/%E5%9C%A8%20R%20%E4%B8%8A%E5%AE%89%E8%A3%85%20openssl.png)
我正在尝试使用 R 内部安装 openssl install.packages('openssl')
,但收到一条错误消息:
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lssl -lcrypto -ldl -lz
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
* deb: libssl-dev (Debian, Ubuntu, etc)
* rpm: openssl-devel (Fedora, CentOS, RHEL)
* csw: libssl_dev (Solaris)
* brew: openssl (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘openssl’
* removing ‘/usr/local/lib64/R/library/openssl’
系统上似乎已安装 Openssl:
$ openssl version -a
OpenSSL 1.0.2f 28 Jan 2016
built on: reproducible build, date unspecified
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc44 -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/bin/miniconda2/ssl"
我尝试设置PKG_CONFIG_PATH
到哪里openssl.pc位于但没有运气。
一些帮助将不胜感激!
我正在运行 SUSE11 SP2
答案1
我试图在 R 3.1.3 上安装 swirl 并陷入同样的问题 - 安装 openssl 软件包。我通过手动将 /tmp 中下载的 openssl tarball 解压到 R 包文件夹(在我的例子中为 R/x86_64-unknown-linux-gnu-library/3.1/)来解决该问题。
我能够继续并安装 swirl。
埃库拜·基夫莱