Skip to content

pcs.csv could not be found in /usr/share/gdal/2.2 #1171

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

Closed
jannes-m opened this issue Dec 31, 2018 · 1 comment
Closed

pcs.csv could not be found in /usr/share/gdal/2.2 #1171

jannes-m opened this issue Dec 31, 2018 · 1 comment

Comments

@jannes-m
Copy link

Expected behavior and actual behavior.

I tried to install rgdal in R. The installation stopped since pcs.csv could not be found in the expected folder namely /usr/share/gdal/2.2 and as returned by gdal-config --datadir. Instead pcs.csv is located in /usr/share/gdal.

Steps to reproduce the problem.

From the terminal run:

# open R
R
install.packages("rgdal")

which returns following error message (shortened):

...
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.2.3
checking GDAL version >= 1.11.4... yes
checking gdal: linking with --libs only... yes
checking GDAL: /usr/share/gdal/2.2/pcs.csv readable... no
configure: error: pcs.csv not found in GDAL data directory.
ERROR: configuration failed for package ‘rgdal’
...

To make the rgdal installation work, I created the required folder and copied the required file into it:

sudo mkdir /usr/share/gdal/2.2
sudo cp /usr/share/gdal/pcs.csv /usr/share/gdal/2.2/pcs.csv

Hence, it would be great if you could adjust the hard-coded (?) paths as returned by gdal-config --datadir.

Operating system

For example: Ubuntu 18.04 64 bit

GDAL version and provenance

the 2.2.3 version as installed by QGIS3 via https://www.qgis.org/ubuntu. In https://qgis.org/ubuntu/dists/bionic/main/binary-amd64/Packages it says, dependencies are gdal-abi-2-2-3 and libgdal20 (>= 1.8.0).

@rouault
Copy link
Member

rouault commented Dec 31, 2018

This is likely an issue with the patches applied by DebianGIS / UbuntuGIS. That should be reported to them. But apparently they stopped doing this patching in 2.3.0 : https://salsa.debian.org/debian-gis-team/gdal/commit/5d7870aeccaaba3a7cb373b5e12f99127c8298a7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants