-
Notifications
You must be signed in to change notification settings - Fork 299
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
Install macOS Monterey v12.3.1 fails on missing gdal-config #1949
Comments
Update, installing Changed
Full console dump:
|
If the "Installing packages linking to PROJ, GDAL or GEOS" section in https://cran.r-project.org/view=Spatial is unclear, please raise an issue there. Unless you definitely know that your homebrew binary GDAL 3.5.0 provides functionality not present in the relatively fresh GDAL binaries used for CRAN binary builds, please install binary only. Nobody is available to support source installs using homebrew. The advice on https://github.com/r-spatial/sf/#installing is stale and misleading. @qwertytam If |
So after many more rabbit holes, removed the R and RStudio installed via homebrew and went with a fresh R install (using binary from CRAN website) and RStudio install, and looks like no more problem. |
Holes with rabbits. Finally got it installed on Monterey (M1).
|
much obliged for your sharing @laurivaltteri!! this worked for me on Ventura M1 (after a session restart to clear the 'corrupt' lazy load db) |
Describe the bug
Install macOS Monterey v12.3.1 fails on missing
gdal-config
To Reproduce
Trying to install
sf
on macOS Monterey v12.3.1 aarch64-apple-darwin21.3.0 with R version 4.2.0 using homebrewAdditional context
Have tried the following to resolve:
LIBRARY_PATH=/opt/homebrew/lib
as per here Compilation on MacOS Monterey M1 (ARM64 architecture) #1848Each time I keep getting
$ locate gdal-config
gives$ which gdal-config
gives$ gdal-config --version
givesSo it looks like
gdal
is install correctly?$ proj
givesSo it looks like
proj
is install correctly?Have done multiple restarts of R session.
Have this in
.Reniron
in my project folderWith the install then terminating unsuccessfully. Full console prints below. Any and all help appreciated!
Trying to install
rgeos
Trying to install rgdal gives
The text was updated successfully, but these errors were encountered: