-
Notifications
You must be signed in to change notification settings - Fork 86
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
installation failure on MacOS Mojave #260
Comments
Do you have a weird installation of R -- that is, something other than the .pkg file from https://cran.r-project.org/bin/macosx/ ? Are you able to install the httpuv includes its own copy of libuv, so I wouldn't expect |
Interesting! I am on an older version of R (3.4.4), but it came from CRAN. Compilation of |
@colearendt What do |
Apologies for the delay:
** Updated to include
|
If it helps I had a similar issue, not sure which combination of items fixed it but I resolved it by:
system: Note: with the new Rcpp I also had to recompile a couple of other packages, but if that's needed it should be obvious you'll see something like "unable to load shared object" |
I can confirm that I get the same error with the both the CRAN and development versions of httpuv (622c76a) and with Rcpp 1.0.4 on macOS 10.15.3 and R 3.6.1. On my Mac, these two commands in sequence produce the error: install.packages("Rcpp")
install.packages("httpuv", type = "source") It appears to have been fixed by RcppCore/Rcpp#1047. So installing a newer development version of Rcpp seems to fix things. I'm not sure why the httpuv binary package builds successfully on the CRAN Mac build machine. (Ignore the debian error in the screenshot below.) My current workaround is to instal Rcpp from the RcppCore drat repo, as @zlskidmore described, but using a source package, because that seems to be necessary for my platform: install.packages("Rcpp", repos="https://RcppCore.github.io/drat", type = "source")
install.packages("httpuv")
# OR
remotes::install_github("rstudio/httpuv") |
Still having failures, even with the dev version of Rcpp. More or less the same stack 😞 :
This seems to fail on both CRAN and dev |
@colearendt Do you know what compiler you're using? I found some things around the internet that reference the same error when using gcc instead of clang. You can check with:
|
Yeah,
|
It looks like you installed it with Homebrew. Maybe just tell Homebrew to uninstall that version of GCC? Do you know why you installed it in the first place? |
I don't, unfortunately 😅 IIRC If that's the only way, I can definitely give it a shot though! What is the "standard" user setup on a mac? I would expect |
I just use the XCode command line tools. I think this will ensure that they're installed, but I'm not 100% sure.
|
I'm getting the same This is the relevant output of the build process:
As I'm assuming that the choice of I just had to learn/solve the hard way how to compile packages on macOS ARM and this post details the troubleshooting that eventually succeeded for compiling My general setup
Session info
My current
|
I'm out of my depth here and don't have a macOS ARM machine to test with, but... did you add |
@jcheng5 thanks for taking the time Re:
|
Trying to install both the latest version from CRAN as well as the development version, I am getting an installation failure error:
brew install libuv
seems to have had no effect, although I'm not sure if I expected it to 😄 Unsure of where to go from here.The text was updated successfully, but these errors were encountered: