installation error: undefined symbol: BIO_meth_set_read
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.
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.
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.
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
Sorry, would those be the same as the openssl paths? which libssl doesn't turn up any matches.