Instalando o openssl no R

4

Estou tentando instalar o openssl dentro do R, usando install.packages('openssl') , mas estou recebendo uma mensagem de erro:

* 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’

O Openssl parece estar instalado no sistema:

$ 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"

Eu tentei definir PKG_CONFIG_PATH para onde openssl.pc está localizado, mas sem sorte.

Alguma ajuda seria muito apreciada!

Estou executando o SUSE11 SP2

    
por rlbc 18.03.2016 / 20:55

1 resposta

0

Eu estava tentando instalar o redemoinho no R 3.1.3 e estava preso no mesmo problema - instalar o pacote openssl. Eu resolvi isso manualmente descompactando o tarball openssl baixado em / tmp para a pasta de pacotes R (no meu caso R / x86_64-unknown-linux-gnu-library / 3.1 /).

Consegui prosseguir e instalar o redemoinho.

Equbay Kiflay

    
por 03.07.2016 / 17:07