-
Notifications
You must be signed in to change notification settings - Fork 96
Compilation on MacOS Monterey M1 (ARM64 architecture), using Homebrew #429
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
Comments
Does this also fail with the development version? |
@rhijmans
|
I looked at the issue you linked to, but it seems that the problem just magically disappeared there? Or was it the pull request you refer to, but that was applied to both terra and sf. So I am a bit at loss, not having access to a new mac myself. Can you show what is printed when you install |
I do have the same problem as @aourednik when trying to install
@rhijmans Let me know if I can provide any additional information. Here is the output when trying to install
|
@ax-sc, have you tried following the hints from the log?
Shouldn't you install
|
Thanks for your hints, @kadyb . However i installed it now (using Homebrew) and it fixed this part of the error. Installing |
I was able to compile |
Thanks for letting us know. Someone else emailed me with a similar statement:
|
@ax-sc : I confirm: For your Fortran not found problem, @ax-sc, I had that one too, despite gfortran being installed. Solved by adding these lines to ~/R./Makevars:
This did solve part of the |
I would think that if you can install |
It seems like this has been discussed before (rstudio/rstudio#6482) and it is intentional to not pick up environment variables defined in |
Hi all, I hate to bring this up again, but I'm getting the exact same error above (sqlite3 and PROJ not in expected location) when installing I've followed most of the tips above, and added the path to the binaries for the sqlite3 homebrew directory to my $PATH variable. Any insights? I'm running MacOS Monterey 12.2.1, M1 Max.
Just to match the reported packages above
Output when installing
Is there some sqlite3 config flag I can use? I tried |
It is by far easier to install the precompiled packages with this one-liner:
Works even with a Homebrew installation of R. |
Thanks Andre! That worked a treat. I will investigate this option for the other packages as well.
Sam
… On Mar 2, 2022, at 3:56 PM, André Ourednik ***@***.***> wrote:
@samueldnj <https://github.com./samueldnj>
It is by far easier to install the precompiled packages with this one-liner:
install.packages("https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.1/terra_1.5-21.tgz", repos = NULL, type = .Platform$pkgType)
Works even with a Homebrew installation of R.
Unless you are a developper of the terra package, better to use the precompiled version.
—
Reply to this email directly, view it on GitHub <#429 (comment)>, or unsubscribe <https://github.com./notifications/unsubscribe-auth/ABQ2ZR2GZZ34WI73IBYHXNLU5753HANCNFSM5JNNDAAA>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.
|
Since yesterday Aug 07th, 2022, I have been trying to install Based on the recommendation of @aourednik, I tried the following:
but I got the following error message:
Also, I tried (a different mirror):
but I got a similar error message:
I finally manage to get
However, after that installation, I got the following error in some situations:
which I solved with (rsbivand/whyR20_files#1 (comment)):
|
I had the same problem. install.packages('terra', |
Defining The workaround described in r-spatial/sf#1894 (comment) (and extended in r-spatial/sf#1894 (comment)) is somewhat more generic and also applicable on CI systems during its generic definition which works for both {sf} and {terra} as both suffer from the same issue. |
Same problem as here: r-spatial/sf#1848 , now solved for the sf package.
Building has trouble with new location of gdal-config, libproj and sqlite when using Homebrew for ARM64 (instead of usr/local/ , homebrew intalls components to the arm64-compatible directory /opt/homebrew/opt/)
install.packages("terra",configure.args = "--with-gdal-config=/opt/homebrew/opt/gdal/bin/gdal-config")
yields an error with the following trace :
The text was updated successfully, but these errors were encountered: