-
Notifications
You must be signed in to change notification settings - Fork 301
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
PROJ and sqlite3 are available for linking:... no #1268
Comments
I can try if you provide a dockerfile that builds the system to reproduce your problem. |
I'm really sorry for the late reply!! I tried to install sf with a docker. Is there any solution we can do with rstudio? |
Have you followed the instructions for fedora given here: https://github.com/r-spatial/sf ? |
Hello. Same issue here. Only differences with @vwtlin is that I've got GDAL 3.0.4 and I'm on macOS Catalina 10.15.3. Thanks! |
Hello. Same issue as @EllaKaye . Got GDAL 3.0.4 and libproj not found. |
For all those who get here, use OSX, and don't know what is going on: please stick to using binary distributions; they typically show up on CRAN 1-2 weeks after new versions are distributed as source. |
My travis build for OSX was working fine, but is also broken after Travis buildhttps://travis-ci.com/github/carlos-alberto-silva/rGEDI/jobs/306172914 Travis file |
It seems like the build system is actually fine with gdal, proj and sqlite3 installed from the default package manager. Maybe the problem is within the If I may give you a suggestion, can't you change sqlite3 cheking to the default GDAL also have a macro from the autoconf archive, and it also checks for minimum version. I always try to use those macros to avoid these kind of issues, since they were already tested in multiple platforms. |
@caiohamamura feel free to submit a PR. Your travis testing is a bit quite a bit more extensive than sf's, and sf is moving to github actions. Note that many platforms suffer PROJ installations problems because of a bug in proj.pc / pkg-config installation present in released PROJ. |
@edzer Were you thinking of https://lists.osgeo.org/pipermail/proj/2020-March/009505.html? @caiohamamura you may want to use the PROJ master to see whether the fixes for |
Sorry for writing in a quite old thread, but I think I am encountering the same issue. I am trying to build a Docker image based on GDAL Ubuntu full Docker with the manual addition of rocker/geospatial features, in order to debug {sen2r} on the more recent GDAL/PROJ environment (https://github.com/ranghetti/sen2r/issues/350). Here you find attached the dockerfile together with three patch files: Docker_gdal_geospatial.zip. While installing {sf} from GitHub source, the following error occurs:
If I understood well in #1268 (comment), the issue should have ben fixed since PROJ 7.0.1, while I am using version 7.2.0. Thank you for any possible advice, |
@ranghetti could you check whether |
Yes, it was. |
OK. Does the Dockerfile reproduce the problem, or do I need to apply the patches to it first? If so, could you please provide the docker file after applying the patches? |
Ah, sorry, I see the patch files are used and applied inside the docker file... |
|
You are right, sorry. Nevertheless, this does not solve (using root@2f59abfce005:/# sudo ldconfig -p | grep libproj
libproj.so.19 (libc6,x86-64) => /usr/local/lib/libproj.so.19
libproj.so.15 (libc6,x86-64) => /lib/x86_64-linux-gnu/libproj.so.15 where |
Heads-up @ranghetti I've had a similar issue but with a different solution. Please take a look here if still of use/interest and try to reproduce with the steps outlined there: #1518 Interested to hear if that works for you, I'm trying to tackle the issue as far upstream as possible with input to the |
Thank you @Robinlovelace for linking here the abovementioned issue. I tried your reproducible example in #1518 (comment), but unfortunately the error persists (I am commenting in #1518 about that). The same in my example using the suggestion in #1518 (comment). |
For anyone else having this problem, I just solved it by setting the PKG_CONFIG_PATH environment variable: export PKG_CONFIG_PATH=/path/to/proj/lib/pkgconfig/ |
After much tedious trial and error, I think I may have a solution for those still running into this error. Two steps are necessary:
I am using proj v8.1.1, sqlite3 v3.33.0 and gdal-config v3.3.2. When compiling proj, add Then I got the following output:
P.S. Using gdal v2.3.2 has the |
For those who install proj and gdal with homebrew on M1/apple silicon, please try this one: |
Hello,
First of all, my system is Centos 7.6 OS.
My goal was installing the monocle3,
but always failed to here that installing the "sf".
here is my code
remotes::install_github('r-spatial/sf', configure.args=
('--with-gdal-config=/usr/local/bin/gdal-config
--with-proj-lib=/usr/local/lib
--with-proj-include=/usr/local/include
--with-proj-share=/usr/local/share/proj
--with-proj-data=/usr/local/share/proj
--with-geos-config=/usr/local/bin/geos-config'))
I already installed the sqlite3-dev , and also PKG_CONFIG_PATH was good, too.
please, can you tell me what should I do & what was the problem?
Thank you
The text was updated successfully, but these errors were encountered: