On, and I just noticed - you appear to have some legacy Homebrew files as well 
in /usr/local - on a Mx Mac you should remove all from /usr/local as that is 
just Intel legacy that will cause a lot of problems.

Cheers,
Simon


> On 22/07/2024, at 10:11 AM, Simon Urbanek <simon.urba...@r-project.org> wrote:
> 
> Probably the best is to remove (aka move aside) *everything* - both 
> /opt/R/arm64 and /opt/homebrew (or at least rename it to move it aside). The 
> openssl package provides a fallback, but only if it doesn't detect something 
> that gets in its way. It gets really confused if you have various various 
> pieces from different versions. Once you install openssl you can move things 
> back since it will be statically linked, but please note that Homebrew breaks 
> pretty much anything native so it's a good idea to disable Homebrew whenever 
> you are compiling something native.
> 
> Cheers,
> Simon
> 
> 
> 
>> On 22/07/2024, at 6:28 AM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote:
>> 
>> 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
>> 
> 

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

Reply via email to