jeroen / openssl

OpenSSL bindings for R
Other
63 stars 20 forks source link

Install error #35

Closed jarodmeng closed 7 years ago

jarodmeng commented 7 years ago

When I tried to install openssl, I had an error saying openssl is not installed on my machine. So I went to openssl website and install the latest version 1.1.0 from source. However, the error still occurred.

* 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
------------------------- 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/lib/R/site-library/openssl’
$ openssl version
OpenSSL 1.1.0c  10 Nov 2016
$ pkg-config --cflags --libs openssl
 -lssl -lcrypto
jarodmeng commented 7 years ago

I figured it out. The original error reported was due to something unrelated to openssl. After I fixed that problem, the installation still failed due to undefined symbol: EVP_CIPHER_CTX_reset. It turns out that openssl 1.1.0 doesn't play well with openssl package. I downgraded to 1.0.2j and now it's working.

jeroen commented 7 years ago

The latest version of the R package should work with openssl 1.1.0. Can you show me the install log?