[R-sig-Geo] Installation of proj4 v6 on Ubuntu 18.04 Error: proj/epsg not found
Edzer Pebesma
edzer@pebe@m@ @end|ng |rom un|-muen@ter@de
Mon Oct 28 22:36:10 CET 2019
Hi Tom,
formerly PROJ.4 is now called PROJ.
Have you also tried the usual ubuntu install suggestions we give to
R/ubuntu users, e.g. on https://github.com/r-spatial/sf ?
They are:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
On 10/28/19 4:34 PM, Tomislav Hengl wrote:
>
> Dear R-sig-geo,
>
> I am trying to install proj4 v6 on Ubuntu 18.04 bionic. I though I can
> install it simply by following the ubuntugis steps
> (https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html)
> but this does not lead to newest version of proj4 v6.
>
> Then I have tried to follow the proj6 steps
> (https://proj.org/install.html#install) which indicate that I should do
> it via the Anaconda installer. After I installed proj4 v6 from conda I get:
>
> $ which proj
> /home/tomislav/anaconda2/bin/proj
>
> $ proj -V
> Rel. 6.2.0, September 1st, 2019
> <proj>:
> projection initialization failure
> cause: no arguments in initialization list
> program abnormally terminated
>
> After that I've added the 'PROJ_LIB = /home/tomislav/anaconda2/bin/proj
> ' to my .Renviron file and then I get:
>
> install.packages("rgdal")
> Installing package into ‘/home/tomislav/R/x86_64-pc-linux-gnu-library/3.5’
> (as ‘lib’ is unspecified)
> ...
> checking PROJ.4: epsg found and readable... no
> Error: proj/epsg not found
> Either install missing proj support files, for example
> the proj-nad and proj-epsg RPMs on systems using RPMs,
> or if installed but not autodetected, set PROJ_LIB to the
> correct path, and if need be use the --with-proj-share=
> configure argument.
> ERROR: configuration failed for package ‘rgdal’
> * removing ‘/home/tomislav/R/x86_64-pc-linux-gnu-library/3.5/rgdal’
> Warning in install.packages :
> installation of package ‘rgdal’ had non-zero exit status
>
> $gdalinfo --version
> GDAL 2.4.0, released 2018/12/14
>
> What am I doing wrong? Which tutorial / documentation do you advise to
> install proj4 v6 and rgdal package on Ubuntu?
>
> thank you (especially you Roger!),
>
> T. Hengl
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48151 Muenster, Germany
Phone: +49 251 8333081
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 3110 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20191028/e1e82af6/attachment.bin>
More information about the R-sig-Geo
mailing list