[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[DebianGIS] Build problem for gdal-1.6.0

Hi list,
I'm experimenting a build problem trying to generate deb packages for

# debian sid x86_64 
# debian experimental repository enabled
$ apt-src install gdal
$ ll
totale 6944
drwxr-xr-x 20 valentino valentino    4096 23 feb 12:49 gdal-1.6.0
-rw-r--r--  1 valentino valentino   16081 23 feb 12:32
gdal_1.6.0-1.diff.gz -rw-r--r--  1 valentino valentino    1920 23 feb
12:31 gdal_1.6.0-1.dsc -rw-r--r--  1 valentino valentino 7072689 23 feb
12:31 gdal_1.6.0.orig.tar.gz
$ apt-src build gdal


make[1]: Entering directory
`/home/valentino/projects/debian/gdal-1.6.0/swig/python' /usr/bin/python2.5
setup.py install numpy
include /usr/lib/python2.5/site-packages/numpy/core/include running
install error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied:

The installation directory you specified (via --install-dir, --prefix,
or the distutils default setting) was:


Perhaps your account does not have write access to this directory?  If
the installation directory is a system-owned directory, you may need to
sign in as the administrator or "root" account.  If you do not have
administrative access to this machine, you may wish to choose a
different installation directory, preferably one that is listed in your
PYTHONPATH environment variable.

For information on other options, you may wish to consult the
documentation at:


Please make the appropriate changes for your system and try again.

make[1]: *** [install] Error 1
make[1]: Leaving directory
`/home/valentino/projects/debian/gdal-1.6.0/swig/python' Patching ogr.py
patch: **** Can't find
file /home/valentino/projects/debian/gdal-1.6.0/debian/python-tmp/usr/lib/python2.5/site-packages/osgeo/ogr.py :
No such file or directory make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
E: Building failed

The build problem seems to be fixed applying the following patch:

--- gdal-1.6.0/swig/python/GNUmakefile.orig	2009-02-23
15:43:41.000000000 +0100 +++ gdal-1.6.0/swig/python/GNUmakefile
2009-02-23 13:08:43.000000000 +0100 @@ -55,7 +55,7 @@
-	$(PYTHON) setup.py install
+	$(PYTHON) setup.py install --root=$(DESTDIR)
 	$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)

I didn't test the resulting packages yet, but the build phase no more
gives me an error.

Does anyone experimented the same problem?
There is some tip for building gdal packages from source?


Antonio Valentino

Reply to: