-
Notifications
You must be signed in to change notification settings - Fork 24
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_api.h not found in standard or given locations error DESPITE SPECIFYING PROJ INCLUDE #28
Comments
check your PROJ_LIB environment variable inside R (it may differ from what you have in terminal and system wide) in terminal: or in R: maybe it is set to something weird, e.g. my env variables are messed up with NextGIS installation and my PROJ_LIB was set to to fix that, if you are on mac, for example, and installed proj using brew, the path should be something like Simply set the correct path before building the lwgeom: |
See also #42 |
See r-spatial/sf#1091 (comment) |
updatei was able to fix this by installing a more recent version of PostGIS. detail: CentOS is pretty far behind on (recommended) versions of PostGres and PostGIS. this is documented here. by updating to PostGres 9.2 and PostGIS 9.3 (based on the link), I was able to get lwgeom, which may not have been available on the version I had installed previously (or, I may have installed it incorrectly as well). Note, if you upgrade PostGIS, you need to re-install pgRouting, though the error message is not explicit about it. after upgrading, you should be able to install this package, using a source directory. i had to tell R to use a tmp directory in my user space, and tell install.packages to look in my R environment's directory, which is also in this case located in the user directory.
original posthello. same error for me. using conda for this R environment in CentOS 7 on an AWS EC2 instance. i installed proj and proj-devel via yum, which gives me version 4.8.0 of proj, and installs the header files in /usr/include. i attempted to make a change via the $PROJ_LIB environment variable but it doesn't work out for me:
/usr/include is in my $PATH as well. i am not wizard enough with the configure shell script to understand which "standard or given locations" the script is looking in. my next thought, by the way, is to build proj from source. before i dive into that, any thoughts? thank you! |
Hello all, I'm having the same issue here installing on a Centos7 server. I don't have root access, brew, nor anaconda; and can't reboot the server. Anaconda sets different paths that when installing some packages, these interfere with the native R-3.6.1 installed by the sysadmin. Thus I've compiled I've gone through issues #41, #42, r-spatial/sf#1091 (comment), r-spatial/sf#988. After numerous failed reinstallation attempts (below) I've now symlinked all proj Despite numerous forms of Could anyone help to figure out what exactly I'm doing wrong? or why the Any support would be much appreciated. r-spatial/sf is a dependency for Thanks in advance, Rodrigo Error details
BASH command line installation attempts :
BiocManager installation attempts :
Files in
|
On Amazon Linux (a version of Redhat?) I also have to install proj-devel, proj-epsg, proj-nad via yum. |
I had a similar problem installing rgdal for R due to a previous installation of Anaconda. Anaconda was changing the PROJ_LIB value. To solve, I changed my .bashrc because there is a section for initialization of Anaconda: >>> conda initialize >>>!! Contents within this block are managed by 'conda init' !!__conda_setup="$('/home/kaian/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" <<< conda initialize <<<I simply commented all this section |
Did you first install It works to me |
Dear all, I'm having the same |
This is fixed (at least for me) with the new commit: 9d1dbe2 |
Please check that lwgeom 0.2-3, now on CRAN, also installs on fedora. |
Check done: this is working! |
thanks! |
It looks like lwgeom 0.2-3 no longer works on Ubuntu 18.04:
However, the previously installed version (0.2-1) still works (and
I know that PROJ 4.9.3 is an older version, but https://CRAN.R-project.org/package=lwgeom still lists |
Could you confirm you're looking at 0.2-3, @arnonerba ? I'm asking because the ubuntu platforms of travis give a clean install & check with PROJ 4.9.3 (I believe) installed: https://travis-ci.org/github/r-spatial/lwgeom |
Interesting...here's the full output of
Also, these are all the PROJ-related packages that seem to be installed:
|
Hope this fixes it! |
Hello! I was facing a similar issue as @arnonerba did, with the small difference that I'm running Ubuntu 16.04 and my proj version is 4.9.2-2. So, first I tried the usual approach:
I checked, and proj_api.h is in /usr/include:
So I tried the recommendations above:
No luck with any of those, so finally I tried to install old version 0.2-1 and it worked! ✔️
😕 |
I was having this same issue, but simply using one line of @e-kotov 's suggestion, |
I've tried all of these approaches and haven't been able to get it to work. I continue to get the following error during deployment: [2020-05-04T14:59:37.257437052+0000] Building R package: lwgeom (0.2-3)
|
Hi all. |
Hi simoccc |
ends up with the error:
DESPITE:
The text was updated successfully, but these errors were encountered: