Closed Amjadhpc closed 4 months ago
Here is my setup:
OS : centos 7 R version : 4.0.2 GDAL version : 3.1.2 GEOS version : 3.8.1 PROJ version : 6.3.2
I got it to work by setting the CPPFLAGS to the location of the header files on my system using the $PROJ_INC variable:
export MAKEFLAGS="CPPFLAGS=-I$PROJ_INC CFLAGS=-I$PROJ_INC" R CMD INSTALL lwgeom_0.2-5.tar.gz
Hello, I am trying to install from github lwgeom using R 3.6.2 with centos 7 Linux. Here is my setup OS : centos 7 R version : 3.6.2 GDAL version : 3.1.0 GEOS version : 3.8.1 PROJ version : 6.0.0
Command executed is as follows ; devtools::install_github("r-spatial/lwgeom",configure.args=c('--with-proj-lib=/gpfs/software/ada/proj/6.0.0/lib','--with-proj-include=/gpfs/software/ada/proj/6.0.0/include','--with-proj-share=/gpfs/software/ada/proj/6.0.0/share/proj'))
The error generated is as follows: checking for file ‘/tmp/RtmpDI3tVi/remotes161ee3f4c1ab1/r-spatial-lwgeom-0ac3✔ checking for file ‘/tmp/RtmpDI3tVi/remotes161ee3f4c1ab1/r-spatial-lwgeom-0ac3113/DESCRIPTION’ ─ preparing ‘lwgeom’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ running ‘cleanup’ ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building ‘lwgeom_0.2-5.tar.gz’
include "proj.h"
compilation terminated. make: *** [geodetic.o] Error 1 ERROR: compilation failed for package ‘lwgeom’
Is there something i am missing
The proj.h is here /gpfs/software/ada/proj/6.0.0/include/proj.h
Thanks