-
Notifications
You must be signed in to change notification settings - Fork 21
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
[GDAL] libpq.5.dylib no longer exists in MacOS 11.0 #14
Comments
I've run into the same thing (a link above shows what I'm trying to do). Since Big Sur became available yesterday, I suspect a lot of macOS users are going to be in trouble soon. When I do
I see that it's looking for |
The same problem... |
For me, the solution was to install the |
Hot-fix applied on the build machine by symlinking |
Thank you, I can confirm that the new binaries for Yes it would be great to fix this in the recipe. Perhaps we can imitate the homebrew libpq recipe. What they do is passing |
Reinstalling
|
Yes, FWIW the underlying issue was that the gdal recipe only set |
@s-u what matters most is to use With 661f382 the result is that the gdal executables (things under /usr/local/bin) are linked to your static pgsql. But you also need to pass this flag when building the R packages, otherwise they will still end up linking to |
GDAL records the flags and passes them down, so it will be included in |
hmm how do they get passed down? I'm not seeing that flag in the |
|
Thanks, that works (I was using pkg-config instead of gdal-config) |
I looked into it, and the other problem is that even if we package |
Trying to load the CRAN binary packages for
sf
orrgdal
orRPostgreSQL
on MacOS 11.0 fails due tolibpq.5.dylib
:Even though a static libpq is available in libs-4, the CRAN binaries are still dynamically linked to the OS version on 10.13.
Perhaps the problem is that libs in libpq-9.6.9-darwin.17-x86_64.tar.gz are in an unusual subdirectory
/usr/local/pgsql/lib
where he linker doesn't find them, and falls back on/usr/lib/libpq.5.dylib
.I think rebuilding the R packages w/
-L/usr/local/pgsql/lib
will solve the problem, or alternatively, repacklibpq-9.6.9-darwin.17-x86_64.tar.gz
so that headers and libs are in the usual/usr/local/{include,lib}
folders.See also: r-spatial/sf#1502
The text was updated successfully, but these errors were encountered: