git2r icon indicating copy to clipboard operation
git2r copied to clipboard

installation error: undefined symbol: BIO_meth_set_read

Open dhicks opened this issue 7 years ago • 4 comments

I'm trying to install git2r on a Linux box. I don't maintain this system, so I don't know the details about how it's configured. I also don't have su / root access.

Both the install.packages("git2r") and make install (from a freshly-cloned repo) methods give the same error:

Error: package or namespace load failed for ‘git2r’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/djhicks/R/x86_64-redhat-linux-gnu-library/3.4/git2r/libs/git2r.so':
  /home/djhicks/R/x86_64-redhat-linux-gnu-library/3.4/git2r/libs/git2r.so: undefined symbol: BIO_meth_set_read

I'm attaching a log file piped from make install.

install_attempt.log

dhicks avatar Feb 22 '18 01:02 dhicks

It seems from the log that the build configuration finds openssl. But for some reason it fails to find the path to the library and instead tries to build against a newer version of the openssl library with the BIO_meth_set_read function. Maybe it works if you try something similar to #308 where you instead add the path to openssl.

stewid avatar Feb 22 '18 18:02 stewid

I created ~/.R/Makevars, and added the line

SHLIB_LIBADD=-Wl,-rpath,/usr/local/bin/openssl

with the path for openssl. But I'm still receiving the same error.

dhicks avatar Feb 22 '18 19:02 dhicks

Does it work if you try to install from the command line with

R CMD INSTALL --configure-args='--with-libssl-include=INCLUDE_PATH --with-libssl-lib=LIB_PATH' git2r

where you replace INCLUDE_PATH and LIB_PATH with your paths

stewid avatar Feb 22 '18 19:02 stewid

Sorry, would those be the same as the openssl paths? which libssl doesn't turn up any matches.

dhicks avatar Feb 23 '18 00:02 dhicks