Dear Even,<br><font><br>Did you use ubuntugis before? I have one question, I followed the instruction to add </font><code><font>ppa:gwibber-daily/ppa to my repository. <br></font><br></code>Then I use sudo apt-get update to install the packages. Yet can I install only one package (let's say gdal)? <br>
<br>I do a little search online and some people say I can use directly <br>sudo apt-get install gdal<br><br>but it reports E: Unable to locate package gdal, I cannot find the package in my Ubuntu software center either...<br>
<br>thanks,<br><br>Chao<br><br><br><div class="gmail_quote">2012/5/27 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Selon Chao YUE <<a href="mailto:chaoyuejoy@gmail.com">chaoyuejoy@gmail.com</a>>:<br>
<div class="im"><br>
> Thanks Etienne, then I guess I will have the problem of python version? I<br>
> guess I will need a virtual python environment (or something) if I need<br>
> python 3 for newer versions?<br>
<br>
</div>No, the page tells that Python 3 is supported since GDAL 1.7, but not that it is<br>
required. Python 2.X is still supported.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> best,<br>
><br>
> Chao<br>
><br>
> 2012/5/27 Etienne Tourigny <<a href="mailto:etourigny.dev@gmail.com">etourigny.dev@gmail.com</a>><br>
><br>
> > Hi chao<br>
> ><br>
> > you should install gdal using the ubuntugis (stable or unstable)<br>
> > repository . 1.6.3 is really old, plus you shouldn't install the<br>
> > debian packages on ubuntu.<br>
> ><br>
> > see:<br>
> > <a href="https://launchpad.net/%7Eubuntugis" target="_blank">https://launchpad.net/~ubuntugis</a><br>
> > <a href="http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries" target="_blank">http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries</a><br>
> ><br>
> > If you really have to build it see:<br>
> > <a href="http://trac.osgeo.org/gdal/wiki/BuildHints" target="_blank">http://trac.osgeo.org/gdal/wiki/BuildHints</a><br>
> ><br>
> > Etienne<br>
> ><br>
> > On Sun, May 27, 2012 at 5:39 PM, Chao YUE <<a href="mailto:chaoyuejoy@gmail.com">chaoyuejoy@gmail.com</a>> wrote:<br>
> > > Finally I managed to install gdal 1.6.3 using a debien package (and I<br>
> > have<br>
> > > to install libgdal1-1.6.0 before ). But I read from<br>
> > > <a href="http://trac.osgeo.org/gdal/wiki/GdalOgrInPython" target="_blank">http://trac.osgeo.org/gdal/wiki/GdalOgrInPython</a><br>
> > > saying that from version 1.7.0, python 3 is needed.<br>
> > ><br>
> > > thanks et cheers,<br>
> > ><br>
> > > Chao<br>
> > ><br>
> > ><br>
> > > 2012/5/27 Chao YUE <<a href="mailto:chaoyuejoy@gmail.com">chaoyuejoy@gmail.com</a>><br>
> > >><br>
> > >> Dear all,<br>
> > >><br>
> > >> I am new to gdal and when I try to install it on my ubuntu computer, I<br>
> > >> have the following error. It occurs either with pip or with manual<br>
> > python<br>
> > >> setup.py build.<br>
> > >> could anyone give me some clue on this problem? thanks in advance.<br>
> > >><br>
> > >> Chao<br>
> > >><br>
> > >> chaoyue@chaoyue-Aspire-4750:~/python/python_lib/build/gdal$ sudo python<br>
> > >> setup.py install<br>
> > >> [sudo] password for chaoyue:<br>
> > >> running install<br>
> > >> Checking .pth file support in /usr/local/lib/python2.7/dist-packages/<br>
> > >> /usr/bin/python -E -c pass<br>
> > >> TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support<br>
> > >> .pth files<br>
> > >> running bdist_egg<br>
> > >> running egg_info<br>
> > >> writing GDAL.egg-info/PKG-INFO<br>
> > >> writing top-level names to GDAL.egg-info/top_level.txt<br>
> > >> writing dependency_links to GDAL.egg-info/dependency_links.txt<br>
> > >> Traceback (most recent call last):<br>
> > >>   File "setup.py", line 267, in <module><br>
> > >>     ext_modules = ext_modules )<br>
> > >>   File "/usr/lib/python2.7/distutils/core.py", line 152, in setup<br>
> > >>     dist.run_commands()<br>
> > >>   File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands<br>
> > >>     self.run_command(cmd)<br>
> > >>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command<br>
> > >>     cmd_obj.run()<br>
> > >>   File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py",<br>
> > >> line 73, in run<br>
> > >>     self.do_egg_install()<br>
> > >>   File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py",<br>
> > >> line 93, in do_egg_install<br>
> > >>     self.run_command('bdist_egg')<br>
> > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command<br>
> > >>     self.distribution.run_command(command)<br>
> > >>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command<br>
> > >>     cmd_obj.run()<br>
> > >>   File<br>
> > "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py",<br>
> > >> line 172, in run<br>
> > >>     self.run_command("egg_info")<br>
> > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command<br>
> > >>     self.distribution.run_command(command)<br>
> > >>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command<br>
> > >>     cmd_obj.run()<br>
> > >>   File<br>
> > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",<br>
> > >> line 179, in run<br>
> > >>     self.find_sources()<br>
> > >>   File<br>
> > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",<br>
> > >> line 254, in find_sources<br>
> > >>     mm.run()<br>
> > >>   File<br>
> > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",<br>
> > >> line 308, in run<br>
> > >>     self.add_defaults()<br>
> > >>   File<br>
> > "/usr/lib/python2.7/dist-packages/setuptools/command/egg_info.py",<br>
> > >> line 332, in add_defaults<br>
> > >>     sdist.add_defaults(self)<br>
> > >>   File "/usr/lib/python2.7/dist-packages/setuptools/command/sdist.py",<br>
> > >> line 191, in add_defaults<br>
> > >>     build_ext = self.get_finalized_command('build_ext')<br>
> > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 312, in<br>
> > >> get_finalized_command<br>
> > >>     cmd_obj.ensure_finalized()<br>
> > >>   File "/usr/lib/python2.7/distutils/cmd.py", line 109, in<br>
> > >> ensure_finalized<br>
> > >>     self.finalize_options()<br>
> > >>   File "setup.py", line 164, in finalize_options<br>
> > >>     self.gdaldir = self.get_gdal_config('prefix')<br>
> > >>   File "setup.py", line 144, in get_gdal_config<br>
> > >>     return fetch_config(option)<br>
> > >>   File "setup.py", line 97, in fetch_config<br>
> > >>     raise gdal_config_error, e""")<br>
> > >>   File "<string>", line 4, in <module><br>
> > >> __main__.gdal_config_error: [Errno 2] No such file or directory<br>
> > >><br>
> > >> --<br>
> > >><br>
> > >><br>
> ><br>
><br>
***********************************************************************************<br>
> > >> Chao YUE<br>
> > >> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>
> > >> UMR 1572 CEA-CNRS-UVSQ<br>
> > >> Batiment 712 - Pe 119<br>
> > >> 91191 GIF Sur YVETTE Cedex<br>
> > >> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br>
> > >><br>
> > >><br>
> ><br>
><br>
************************************************************************************<br>
> > >><br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > ><br>
> ><br>
><br>
***********************************************************************************<br>
> > > Chao YUE<br>
> > > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>
> > > UMR 1572 CEA-CNRS-UVSQ<br>
> > > Batiment 712 - Pe 119<br>
> > > 91191 GIF Sur YVETTE Cedex<br>
> > > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br>
> > ><br>
> ><br>
><br>
************************************************************************************<br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > gdal-dev mailing list<br>
> > > <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> > > <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
><br>
***********************************************************************************<br>
> Chao YUE<br>
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>
> UMR 1572 CEA-CNRS-UVSQ<br>
> Batiment 712 - Pe 119<br>
> 91191 GIF Sur YVETTE Cedex<br>
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br>
><br>
************************************************************************************<br>
><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>***********************************************************************************</div>
<div>Chao YUE<br>Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>UMR 1572 CEA-CNRS-UVSQ<br>Batiment 712 - Pe 119<br>91191 GIF Sur YVETTE Cedex</div>
<div>Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br></div>

<div>************************************************************************************</div><br>