my R is installed from homebrew, and when I try to install PKI, I get the following error:
checking for openssl/ssl.h... no
configure: Missing OpenSSL headers on macOS,
configure: attempting to get headers from Apple...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 257 100 257 0 0 3681 0 --:--:-- --:--:-- --:--:-- 3724
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 14.8M 0 14.8M 0 0 11.2M 0 --:--:-- 0:00:01 --:--:-- 18.1M
configure: error: Failed to download OpenSSL sources from Apple. Please install OpenSSL headers before installing PKI.
ERROR: configuration failed for package ‘PKI’
* removing ‘/opt/homebrew/lib/R/4.4/site-library/PKI’
The downloaded source packages are in
‘/private/var/folders/3x/50b8z9h1209g60qbwgj1jmjr0000gn/T/RtmpPkbbBu/downloaded_packages’
Warning message:
In install.packages("PKI") :
installation of package ‘PKI’ had non-zero exit status
brew info openssl
==> openssl@3: stable 3.3.0 (bottled)
Cryptography and SSL/TLS Toolkit
https://openssl.org/
Installed
/opt/homebrew/Cellar/openssl@3/3.3.0 (6,976 files, 32.4MB) *
Poured from bottle using the formulae.brew.sh API on 2024-04-21 at 16:08:56
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/[email protected]
License: Apache-2.0
==> Dependencies
Required: ca-certificates ✔
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/opt/homebrew/etc/openssl@3/certs
and run
/opt/homebrew/opt/openssl@3/bin/c_rehash
==> Analytics
install: 440,074 (30 days), 1,076,092 (90 days), 4,589,651 (365 days)
install-on-request: 65,116 (30 days), 135,676 (90 days), 665,142 (365 days)
build-error: 2,141 (30 days)
This is a problem so far only for PKI - other packages such as devtools that also require openssl install just fine and report checking for openssl/ssl.h... yes