Okay, I've figured out the previous issue. The openssl package configure script dies if it doesn't have openssl version 3, while install.libs() provides version 1.1.

So I followed the advice to install from Homebrew, and the configure succeeded, but the install still failed:

** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘openssl’ in dyn.load(file, DLLpath 
= DLLpath, ...):
 unable to load shared object 
'/Users/murdoch/R/R-devel/library/00LOCK-openssl/00new/openssl/libs/openssl.so':
  
dlopen(/Users/murdoch/R/R-devel/library/00LOCK-openssl/00new/openssl/libs/openssl.so,
 0x0006): symbol not found in flat namespace '_EVP_CIPHER_CTX_get_block_size'
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/murdoch/R/R-devel/library/openssl’

Any suggestions?

Duncan Murdoch

On 2024-07-21 2:11 p.m., Duncan Murdoch wrote:
I'm trying to install the openssl package on an M3 Mac in R-devel.  It
keeps failing with these messages:

* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
** using staged installation
Homebrew >=4.1.0 (shallow or no git repository)
Using PKG_CFLAGS=-I/usr/local/opt/openssl/include
--------------------------- [ANTICONF] --------------------------------
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=...'

I did install the openssl lib using Simon's install.libs() function from
https://mac.r-project.org/bin/, and I do have pkg-config installed in
/opt/R/arm64/bin and I see this:

$ pkg-config openssl --cflags
-I/opt/R/arm64/include

So I don't know where the openssl config is finding the Homebrew info.
Can someone suggest what I need to do to get this to work?

Duncan Murdoch




_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to