> 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
...
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
How to solve this `dget --build` problem?
details:
I'm running
$ lsb_release -ds
> Linux Mint Debian Edition
$ cat /etc/debian_version
> wheezy/sid
$ uname -rv
> 3.2.0-2-amd64 #1 SMP Sun Mar 4 22:48:17 UTC 2012
$ cat /etc/apt/sources.list
> deb http://packages.linuxmint.com/ debian main upstream import
> deb http://debian.linuxmint.com/latest testing main contrib non-free
> deb http://debian.linuxmint.com/latest/security testing/updates main contrib non-free
> deb http://debian.linuxmint.com/latest/multimedia testing main non-free
...
To assimilate some data, I need to install app=gdalwarp >= 1.9, and
therefore package=gdal-bin >= 1.9, but the version currently provided
by LMDE is 1.7.3.
me@it:/etc/apt$ sudo cp sources.list sources.list_20120710_1834
me@it:/etc/apt$ sudo emacs -nw -q sources.list
me@it:/etc/apt$ diff -wB sources.list_20120710_1834 sources.list
20c20
< #deb http://ftp.debian.org/debian/ testing main contrib non-free
---
> deb http://ftp.debian.org/debian/ testing main contrib non-free
me@it:~$ sudo aptitude update
# very not up-to-date
Unfortunately,
me@it:~$ sudo aptitude install -s gdal-bin
...
> The following packages have unmet dependencies:
...
> libpoppler19: Depends: libfontconfig1 (>= 2.9.0) but 2.8.0-2.1ubuntu3 is installed.
libfontconfig1 has major reverse depends, including emacs, xulrunner,
cinnamon, gnome-shell, MATE, so I'd prefer not to update that in the
current configuration. Seeking an alternative install, I was advised to
try installing from the source package. This seemed sensible, since I
didn't hafta pull from experimental:
This discovered many unmet dependencies, but 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 from the wheezy repo. I then ran
again, which did a long [configure, make]-type build, ending 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
(much more quickly):
me@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 I'm wondering, how to fix or work around the `dget --build`
permissions problem? `dget` seems to have almost completely built
gdal-bin, so I'd prefer to just finish that, rather than, e.g., build
separately from source tarballs.
TIA, Tom Roche <Tom_Roche@pobox.com>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87zk74yky1.fsf@pobox.com">http://lists.debian.org/87zk74yky1.fsf@pobox.com
> > 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
> ...
> > dpkg-buildpackage: error: debian/rules build gave error exit status 2
I have kludged-around the problem as described @
https://alioth.debian.org/tracker/index.php?func=detail&aid=313720&group_id=30241&at id=410558
> gdal_1.9.0-3 source package fails to build without `sudo` in makefile
If there is A Better Way(tm), please lemme know.
HTH, Tom Roche <Tom_Roche@pobox.com>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87wr27xxsu.fsf@pobox.com">http://lists.debian.org/87wr27xxsu.fsf@pobox.com