Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install v1.2.2 on MacOS with R installed from homebrew #1073

Closed
venpopov opened this issue May 19, 2024 · 6 comments
Closed

can't install v1.2.2 on MacOS with R installed from homebrew #1073

venpopov opened this issue May 19, 2024 · 6 comments
Assignees

Comments

@venpopov
Copy link

When I try to install rsconnect I get an error because I can't install PKI:

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   3750      0 --:--:-- --:--:-- --:--:--  3779
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 14.8M    0 14.8M    0     0  10.4M      0 --:--:--  0:00:01 --:--:-- 8017k
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’
ERROR: dependency ‘PKI’ is not available for package ‘rsconnect’
* removing ‘/opt/homebrew/lib/R/4.4/site-library/rsconnect’

I spent 1 hour trying to solve this and here is what I found.

apparently this is a longstanding problem with PKI, which is why rsconnect switched to openssl package instead back in 2018.

Unfortunately, the PKI dependency was reintroduced 2 months ago

I can easily install rsconnect 1.2.1 before PKI dependency was reintroduced:

devtools::install_version('rsconnect', version = "1.2.1")
Downloading package from url: https://cloud.r-project.org/src/contrib/Archive/rsconnect/rsconnect_1.2.1.tar.gz
Installing package into/opt/homebrew/lib/R/4.4/site-library’
(aslibis unspecified)
* installing *source* packagersconnect...
** packagersconnectsuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (rsconnect)
@venpopov venpopov changed the title can't install v1.2.1 on MacOS with R installed from homebrew can't install v1.2.2 on MacOS with R installed from homebrew May 19, 2024
@aronatkins
Copy link
Contributor

Related: s-u/PKI#32

@aronatkins
Copy link
Contributor

@venpopov - Is this still a problem for you now that PKI is installing?

@venpopov
Copy link
Author

I just checked, now it installs just fine!

@aronatkins
Copy link
Contributor

Closing, as availability of PKI was resolved.

@jonkeane
Copy link
Contributor

This is a totally separate issue from rsconnect, but in case you didn't know this, @venpopov : if you install R from brew with the --cask option you will be able to use macOS binaries from CRAN or other repositories. Which would then avoid needing to build things like PKI from source.

@hekatonsure
Copy link

same issue is happening again on Windows, also fixed by installing rsconnect 1.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants