<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de globo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:"Courier New";
        mso-fareast-language:ES-MX;}
span.TextodegloboCar
        {mso-style-name:"Texto de globo Car";
        mso-style-priority:99;
        mso-style-link:"Texto de globo";
        font-family:"Tahoma","sans-serif";}
span.EstiloCorreo21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EstiloCorreo22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES-MX link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Regina,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I’ve tried with your syntaxes and the same error still appearing, i’m attaching a document with the output for the command that I’ve ran previously.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The version that i’m running right now is the following:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>[root@gtlabserver01 ~]# psql -V<o:p></o:p></span></p><p class=MsoNormal><b><span style='color:#1F497D'>psql (PostgreSQL) 8.4.9<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>contains support for command-line editing<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Do you thinks this may have to see with the PostreSQL version that i’m running?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thank you for your comments.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Ramon<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:ES-MX'>De:</span></b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:ES-MX'> postgis-users-bounces@postgis.refractions.net [mailto:postgis-users-bounces@postgis.refractions.net] <b>En nombre de </b>Paragon Corporation<br><b>Enviado el:</b> lunes, 02 de enero de 2012 09:41 p.m.<br><b>Para:</b> 'PostGIS Users Discussion'<br><b>Asunto:</b> Re: [postgis-users] GISGRAPHY setup issue<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES-MX'>What you have looks right, but perhaps the account you are using to install postgis.sql doesn't have rights to language or the port it default to is different.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES-MX'>You could try doing using:</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>psql -U USER -h 127.0.0.1 -d gisgraphy -c "CREATE LANGUAGE plpgsql;"</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>In theory you should have same issue but you might get a different message. </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>Which version of PostgreSQL are you using?</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>You might also try postgresql general as I don't think this is a PostGIS specific issue.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES-MX'>Hope that helps,</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES-MX'>Regina</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:ES-MX'><a href="http://www.postgis.us">http://www.postgis.us</a></span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'> <o:p></o:p></span></p><blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:ES-MX'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:ES-MX'> <a href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a> <a href="mailto:[mailto:postgis-users-bounces@postgis.refractions.net]">[mailto:postgis-users-bounces@postgis.refractions.net]</a> <b>On Behalf Of </b>Ing. Ramon Resendiz<br><b>Sent:</b> Monday, January 02, 2012 3:38 PM<br><b>To:</b> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><b>Subject:</b> [postgis-users] GISGRAPHY setup issue</span><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I’ve tried to install the GISGRAPHY to integrated it with OPENGTS, i’ve successfully installed OPENGTS but when I tried to configure the POSGTIS database to create the postgis function there is an error, that I couldn’t found information about it, that why I’m recurring to you.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The issues is the following:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'># create the database<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>psql -U <i>YOURUSER</i>  -h <i>YOURIP</i> -c  "CREATE DATABASE gisgraphy ENCODING = 'UTF8';" </span><span lang=EN-US style='font-size:10.0pt;font-family:Wingdings;mso-fareast-language:ES-MX'>à</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'> <b><span style='color:#00B050'>OK</span></b><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>#create language<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>createlang -U YOURUSER -h YOURIP plpgsql gisgraphy </span><span lang=EN-US style='font-size:10.0pt;font-family:Wingdings;mso-fareast-language:ES-MX'>à</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'> <b><span style='color:#00B050'>OK<o:p></o:p></span></b></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ES-MX'><img border=0 width=955 height=136 id="Imagen_x0020_1" src="cid:image001.png@01CCCA05.D733B880" alt="Descripción: Descripción: cid:image001.png@01CCC6F0.1A2B5580"></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>#create postgis function<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>psql -U USER -h 127.0.0.1 -d gisgraphy -f /usr/share/pgsql/contrib/postgis-1.5/postgis.sql </span><span lang=EN-US style='font-size:10.0pt;font-family:Wingdings;mso-fareast-language:ES-MX'>à</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'> <b><span style='color:red'>ERROR<o:p></o:p></span></b></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red;mso-fareast-language:ES-MX'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>There is some function that create without any problem until the next error message appear:<span style='color:red'><o:p></o:p></span></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red;mso-fareast-language:ES-MX'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#C00000;mso-fareast-language:ES-MX'>psql:/usr/share/pgsql/contrib/postgis-1.5/postgis.sql:2024: ERROR:  language "plpgsql" does not exist<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#C00000;mso-fareast-language:ES-MX'>HINT:  Use CREATE LANGUAGE to load the language into the database.</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ES-MX'><img border=0 width=955 height=680 id="Imagen_x0020_2" src="cid:image002.png@01CCCA05.D733B880" alt="Descripción: Descripción: cid:image002.png@01CCC6F0.1A2B5580"></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Even when i tried to import the file </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>spatial_ref_sys.sql</span><span lang=EN-US> there is an error, I try to figure out due the postgis.sql could not was imported correctly.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:ES-MX'>psql -U USER -h 127.0.0.1 -d gisgraphy -f /usr/share/postgresql-YOURPOSTGRESVERSION-postgis/spatial_ref_sys.sql<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>RR<o:p></o:p></span></p></blockquote></div></body></html>