-
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
Error on Installation: PROJ available, but not proj_api.h
#1288
Comments
If you have proj 6.3.1, sf should use proj.h, not proj_api.h. |
@edzer, thanks! But how do I tell |
If proj is properly installed, it finds it by itself. |
@wngrtn, I ran into the same issue when trying to install sf from CRAN on a Linux machine equipped with GDAL (3.0.4), proj (7.0.0). In my case, installing the package via remotes::install_github("r-spatial/sf") solved the issue. |
@wngrtn yes, try that; also we need the complete output of |
Released sf 0.8-1 has the |
(Maybe it could be useful here - I created two new docker images:
|
Thanks! I'm doing source installs with PROJ 7.0.0, but don't see any |
My proj.pc ends up in /usr/local/lib/pkgconfig, and did install from a source build of 7.0.0 2 March. |
This is on my dockerfile with custom installs of everything; I needed to run
otherwise it would break (without |
adapts configure to allow sf (r-spatial/sf#1288)
@fdetsch, thank you! I was able to install sf from the master branch using remotes::install_github("r-spatial/sf") |
@edzer could your problem with proj.pc #1288 (comment) be solved with this fix? I ran in a similar issue while upgrading to Proj 7.0.0 and sf from CRAN and I fixed it this way. |
Yes, specifying |
I am trying to install
sf
on Void Linux.I have GEOS (3.7.1), GDAL (3.0.4), proj (6.3.1), and udunits (2.2.26) installed. The former three come with the OS and I compiled
udunits
from source. So all files should be in their "default" locations.During configuration, R finds PROJ, but it doesn't seem to find
proj_api.h
, which is located in/usr/include
:How can I check where R is looking for
proj_api.h
and tell it where to look instead?Looking through previous issues, I saw that installing
pkg-config
solved the problem for some users, but I already have it installed, as well.The text was updated successfully, but these errors were encountered: