[gdal-dev] __main__.gdal_config_error when trying to install gdal
Etienne Tourigny
etourigny.dev at gmail.com
Sun May 27 14:35:01 PDT 2012
>From the instructions at
https://launchpad.net/~ubuntugis/+archive/ppa
Somehow the instructions are confusing as they contain instructions to
use the gwibber-daily ppa, but you should use the ubuntugis ppa
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal
now depending on your ubuntu version, you may nee to install either
ubuntugis-stable (ok for oneiric) or ubuntugis-unstable (for Precise)
By the way, this discussion should be in the ubuntugis mailing list as
it refers to installing gdal on ubuntu.
Etienne
On Sun, May 27, 2012 at 6:22 PM, Chao YUE <chaoyuejoy at gmail.com> wrote:
> Dear Even,
>
> Did you use ubuntugis before? I have one question, I followed the
> instruction to add ppa:gwibber-daily/ppa to my repository.
>
> Then I use sudo apt-get update to install the packages. Yet can I install
> only one package (let's say gdal)?
>
> I do a little search online and some people say I can use directly
> sudo apt-get install gdal
>
> but it reports E: Unable to locate package gdal, I cannot find the package
> in my Ubuntu software center either...
>
> thanks,
>
> Chao
>
>
>
> 2012/5/27 Even Rouault <even.rouault at mines-paris.org>
>>
>> Selon Chao YUE <chaoyuejoy at gmail.com>:
>>
>> > Thanks Etienne, then I guess I will have the problem of python version?
>> > I
>> > guess I will need a virtual python environment (or something) if I need
>> > python 3 for newer versions?
>>
>> No, the page tells that Python 3 is supported since GDAL 1.7, but not that
>> it is
>> required. Python 2.X is still supported.
>>
>> >
>> > best,
>> >
>> > Chao
>> >
>> > 2012/5/27 Etienne Tourigny <etourigny.dev at gmail.com>
>> >
>> > > Hi chao
>> > >
>> > > you should install gdal using the ubuntugis (stable or unstable)
>> > > repository . 1.6.3 is really old, plus you shouldn't install the
>> > > debian packages on ubuntu.
>> > >
>> > > see:
>> > > https://launchpad.net/~ubuntugis
>> > > http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
>> > >
>> > > If you really have to build it see:
>> > > http://trac.osgeo.org/gdal/wiki/BuildHints
>> > >
>> > > Etienne
>> > >
>> > > On Sun, May 27, 2012 at 5:39 PM, Chao YUE <chaoyuejoy at gmail.com>
>> > > wrote:
>> > > > 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 <chaoyuejoy at gmail.com>
>> > > >>
>> > > >> 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 at 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
>> > > > gdal-dev at lists.osgeo.org
>> > > > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>> > >
>> >
>> >
>> >
>> > --
>> >
>>
>> ***********************************************************************************
>> > 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
> ************************************************************************************
>
More information about the gdal-dev
mailing list