jeroen / openssl

OpenSSL bindings for R
Other
63 stars 19 forks source link

missing opensslv.h #83

Open chrisdane opened 3 years ago

chrisdane commented 3 years ago

Hi I have the issue

install.packages("openssl")
tools/version.c:1:10: fatal error: openssl/opensslv.h: No such file or directory

However, on the machine I am working on there indeed is a opensslv.h available.

My question is: how can I tell the installation-call the path to this non-standard /path/to/opensslv.h-location? I tried several versions of

install.packages("openssl", configure.args="--INCLUDE_DIR=/dirname/of/opensslv.h")
install.packages("openssl", configure.args="--LIB_DIR=/dirname/of/opensslv.h")
install.packages("openssl", configure.args="--with-openssl-include=/dirname/of/opensslv.h")
install.packages("openssl", configure.args="--with-openssl-lib=/dirname/of/opensslv.h")

but nothing worked.

Thanks a lot for help, Chris

nielsaka commented 3 years ago

Not sure if this will help you @chrisdane, but want to share my experience recently. I had a similar issue on linux and was able to solve it by letting the pkg-config tool know the path via

cd ~
echo "export PKG_CONFIG_PATH='/path/to/openssl.pc/'" >> .bashrc

The relevant path is found via find / -iname openssl.pc 2>/dev/null