<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>The instructions at http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204 should address all of these issues.</span></div><div><span>Be sure to read the "</span><strong>The bad news:"</strong><span> about using the existing packages.</span></div><div><span>The later section explains how to build PostGIS from source, so you shouldn't hit the bug in the current package.</span></div><div><span>I'm not sure when 9.1.3-2 dropped, but if it hasn't been in the last 2-3 weeks, then, yes the instructions at that link work with Ubuntu 12.04.</span></div><div><span><br></span> </div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york,
 times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Sandro Santilli <strk@keybit.net><br> <b><span style="font-weight: bold;">To:</span></b> PostGIS Users Discussion <postgis-users@postgis.refractions.net> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, May 24, 2012 7:37 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [postgis-users] Ubuntu and Postgresql9.1.3-2<br> </font> </div> <br>
On Thu, May 24, 2012 at 07:27:38AM -0700, Brian H Wilson wrote:<br>> On 05/24/2012 05:13 AM, José María Amuedo wrote:<br>> >I understand all steps I have to following to get the installation, but:<br>> ><br>> >Do we know if someone installed PostGIS 2 with PostgreSQL 9.1.3-2 in<br>> >Ubuntu 12_04 LTS????<br>> ><br>> >Thanks<br>> <br>> It happens my new desktop has a recent Ubuntu 12.04 install (AWESOME<br>> new computer! :-), and I don't usually run PostGIS on it (I keep it<br>> on a server in the other room) so I removed the postgres client<br>> previously installed on the desktop like this<br>> <br>>  sudo apt-get -f remove postgresql-client postgresql-client-common<br>> <br>> Next I tried these instructions on the computer I am sitting at,<br>> from the first link I sent yesterday<br>> <br>>  sudo apt-get install python-software-properties<br>>  sudo
 apt-add-repository ppa:sharpie/for-science<br>>  sudo apt-get update<br>>  sudo apt-get install postgresql-9.1-postgis<br>> <br>> Now I have<br>> <br>>  psql --version<br>>  psql (PostgreSQL) 9.1.3<br>>  contains support for command-line editing<br>> <br>> I also have two versions of GDAL installed now, for what it's worth,<br>> <br>>  postgres@laysan:~$ /usr/bin/gdalinfo --version<br>>  GDAL 1.7.3, released 2010/11/10<br>>  postgres@laysan:~$ /usr/local/bin/gdalinfo --version<br>>  GDAL 2.0dev, released 2011/12/29<br>> <br>> I have found having different versions of things can be a problem,<br>> hence I usually just install things from sources to get all the<br>> features and most up tp date gdal possible. But for now I press<br>> on...<br>> <br>> In the past I have always used the procedure outlined on my wiki to<br>> add PostGIS to
 PostgreSQL. Therefore creating a geodatabase meant<br>> using a template. Today I try the command you suggested.<br>> This is where I have a problem -- using EXTENSION<br>> <br>>  postgres@laysan:~$ createdb test<br>>  postgres@laysan:~$ psql test<br>>  psql (9.1.3)<br>>  Type "help" for help.<br>> <br>>  test=# CREATE EXTENSION postgis;<br>>  ERROR:  function st_asgml(integer, geography, integer, integer,<br>> text,  text) does not exist<br>>  test=#<br>> <br>> Seems like I got further than you José but still encountered a problem.<br><br>It's a recent bug. Someone packaged a broken revision of PostGIS.<br>Current trunk is fine, if you mail the package maintainer he'll know<br>what to do.<br><br>--strk; <br><br>  ,------o-. <br>  |   __/  |    Delivering high quality PostGIS 2.0 !<br>  |  / 2.0 |   
 http://strk.keybit.net - http://vizzuality.com<br>  `-o------'<br><br>_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>http://postgis.refractions.net/mailman/listinfo/postgis-users<br><br><br> </div> </div> </blockquote></div>   </div></body></html>