[gdal-dev] installing debian GDAL version >= 1.9

Tom Roche Tom_Roche at pobox.com
Thu Jul 12 06:41:04 PDT 2012


summary: how to prevent or fix

me at it:/tmp/gdal$ dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc
... much, much later ...
> error: could not create '/usr/local/lib/python2.6/dist-packages/osgeo': Permission denied
...
> error: could not create '/usr/local/lib/python2.7/dist-packages/osgeo': Permission denied
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/tmp/gdal/gdal-1.9.0/swig/python'
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2

noting that `sudo` is no fix (more below)?

details:

Tom Roche Tue, Jul 10, 2012 7:13 PM
>>> me at it:~$ aptitude search ~Dlibfontconfig1 | grep -e '^i' | less

>>> appears to show many important dependencies (e.g., emacs, xulrunner,
>>> cinnamon, gnome-shell, MATE). Am I missing, or misinterpreting,
>>> something? If not, is there a better/safer way for me to upgrade my
>>> GDAL to version >= 1.9?

Mikhail Titov Wed, 11 Jul 2012 01:26:55 -0500
>> You can give a try rebuilding just that package. If you are lucky it
>> won't pull much else.

>> This [1] may help to get an idea.

>> [1] http://ask.debian.net/questions/how-to-install-from-experimental-on-natty-gdal-1-9

Thanks! The good news is, I didn't hafta pull from experimental:

http://ftp.de.debian.org/debian/pool/main/g/gdal/
> gdal-bin_1.9.0-3+b1_amd64.deb 25-Jun-2012 09:03   325K
...
> gdal_1.9.0-3.dsc              05-Jun-2012 15:47   2.2K

Even better, I didn't need an uplevel libfontconfig1! and I only had to
touch my sources.list once, to get libsqlite3-dev version=3.7.13-1!
So the build was *almost* painless, except ...

1 It was a slog ... the kind of loonnnggg build that induces anxiety
  about the size of one's /tmp, about vulnerabilities to one's
  electrical grid, about the impending heat death of the universe :-)
  But such is life, when building on an older laptop.

2 After fiddling with the build dependencies,

me at it:/tmp/gdal$ dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc

  failed with

> error: could not create '/usr/local/lib/python2.6/dist-packages/osgeo': Permission denied
...
> error: could not create '/usr/local/lib/python2.7/dist-packages/osgeo': Permission denied
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/tmp/gdal/gdal-1.9.0/swig/python'
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2

  I thought the fix might be to run as root, but that also failed
  (but quickly):

me at it:/tmp/gdal$ sudo dget --build http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc
> dget: retrieving http://ftp.de.debian.org/debian/pool/main/g/gdal/gdal_1.9.0-3.dsc
...
> dscverify: gdal_1.9.0-3.dsc failed signature check:
> gpg: keyblock resource `/root/.gnupg/secring.gpg': file open error
> gpg: Signature made Tue 05 Jun 2012 09:24:57 AM EDT using DSA key ID E9F2C747
> gpg: fatal: /root/.gnupg: directory does not exist!
> secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768
> Validation FAILED!!

  So how to fix the /usr/local/lib/python2.x/dist-packages/osgeo fails?

TIA, Tom Roche <Tom_Roche at pobox.com>


More information about the gdal-dev mailing list