r-spatial / lwgeom

bindings to the liblwgeom library
https://r-spatial.github.io/lwgeom/
58 stars 23 forks source link

PROJ-related installation problem #53

Closed mbojan closed 4 years ago

mbojan commented 4 years ago

Installing lwgeom gives me:

> install.packages('lwgeom')
trying URL 'https://cloud.r-project.org/src/contrib/lwgeom_0.2-3.tar.gz'
Content type 'application/x-gzip' length 500834 bytes (489 KB)
==================================================
downloaded 489 KB

* installing *source* package ‘lwgeom’ ...
** package ‘lwgeom’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc -std=gnu99
configure: CXX: g++ -std=gnu++11
configure: pkg-config proj exists, will use it
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘lwgeom’
* removing ‘/home/mbojan/R/library/3.6/lwgeom’
* restoring previous ‘/home/mbojan/R/library/3.6/lwgeom’

The downloaded source packages are in
    ‘/tmp/RtmpCymSOj/downloaded_packages’
Warning message:
In install.packages("lwgeom") :
  installation of package ‘lwgeom’ had non-zero exit status

$ apt-cache policy libproj-dev
libproj-dev:
  Installed: 4.9.3-2
  Candidate: 4.9.3-2
  Version table:
 *** 4.9.3-2 500
        500 http://pl.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

And proj_api.h is there:

$ locate proj_api.h
/usr/include/proj_api.h
/usr/local/include/proj_api.h

I'm not sure where the problem is coming from?

edzer commented 4 years ago

Yes, see #28 - should be fixed on github, please check.

mbojan commented 4 years ago

Works. Thank you!