Finally I managed to install gdal 1.6.3 using a debien package (and I have to install libgdal1-1.6.0 before ). But I read from http://trac.osgeo.org/gdal/wiki/GdalOgrInPython saying that from version 1.7.0, python 3 is needed.
thanks et cheers, Chao 2012/5/27 Chao YUE <[email protected]> > Dear all, > > I am new to gdal and when I try to install it on my ubuntu computer, I > have the following error. It occurs either with pip or with manual python > setup.py build. > could anyone give me some clue on this problem? thanks in advance. > > Chao > > chaoyue@chaoyue-Aspire-4750:~/python/python_lib/build/gdal$ sudo python > setup.py install > [sudo] password for chaoyue: > running install > Checking .pth file support in /usr/local/lib/python2.7/dist-packages/ > /usr/bin/python -E -c pass > TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support > .pth files > running bdist_egg > running egg_info > writing GDAL.egg-info/PKG-INFO > writing top-level names to GDAL.egg-info/top_level.txt > writing dependency_links to GDAL.egg-info/dependency_links.txt > Traceback (most recent call last): > File "setup.py", line 267, in <module> > ext_modules = ext_modules ) > File "/usr/lib/python2.7/distutils/core.py", line 152, in setup > dist.run_commands() > File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands > self.run_command(cmd) > File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command > cmd_obj.run() > File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", > line 73, in run > self.do_egg_install() > File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", > line 93, in do_egg_install > self.run_command('bdist_egg') > File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command > self.distribution.run_command(command) > File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command > cmd_obj.run() > File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", > line 172, in run > self.run_command("egg_info") > File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command > self.distribution.run_command(command) > File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command > cmd_obj.run() > File "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py", > line 179, in run > self.find_sources() > File "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py", > line 254, in find_sources > mm.run() > File "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py", > line 308, in run > self.add_defaults() > File "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py", > line 332, in add_defaults > sdist.add_defaults(self) > File "/usr/lib/python2.7/dist-packages/setuptools/command/sdist.py", > line 191, in add_defaults > build_ext = self.get_finalized_command('build_ext') > File "/usr/lib/python2.7/distutils/cmd.py", line 312, in > get_finalized_command > cmd_obj.ensure_finalized() > File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized > self.finalize_options() > File "setup.py", line 164, in finalize_options > self.gdaldir = self.get_gdal_config('prefix') > File "setup.py", line 144, in get_gdal_config > return fetch_config(option) > File "setup.py", line 97, in fetch_config > raise gdal_config_error, e""") > File "<string>", line 4, in <module> > __main__.gdal_config_error: [Errno 2] No such file or directory > > -- > > *********************************************************************************** > Chao YUE > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > UMR 1572 CEA-CNRS-UVSQ > Batiment 712 - Pe 119 > 91191 GIF Sur YVETTE Cedex > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > > ************************************************************************************ > > -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
