<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Fri, 26 Oct 2012 10:41:42 -0400<br>> From: Lee.Hachadoorian+L@gmail.com<br>> To: postgis-users@postgis.refractions.net<br>> Subject: Re: [postgis-users] Pg_wrapper error<br>> <br>> On Thu, Oct 25, 2012 at 11:26 AM, José Pedro Santos<br>> <zpsantos1@hotmail.com> wrote:<br>> > Dear all,<br>> ><br>> > I have one problem when I try to load raster to Postgis with the script<br>> > raster2pgsql from the shell.<br>> ><br>> > I have this error: Error: pg_wrapper: invalid command name<br>> ><br>> > Before this error (I have Postgis version 2.0) I can't use the command<br>> > (raster2pgsql) in the shell (was not found) but i enable it with this<br>> > expression:<br>> ><br>> > sudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/bin/raster2pgsql<br>> ><br>> > After that the error about pg_wrapper appear.<br>> ><br>> > Any suggestion?<br>> ><br>> > Best Regards and thanks,<br>> > Jose Santos<br>> <br>> raster2pgsql and shp2pgsql are not links to pg_wrapper. The error you<br>> are getting is exactly what I get if I try to call pg_wrapper<br>> directly, but raster2pgsql works because it is installed and exists as<br>> an executable in /usr/bin.<br>> <br>> Remove the link to pg_wrapper figure out why raster2pgsql isn't<br>> installed. How did you install PostGIS 2? What OS? Is shp2pgsql<br>> installed and working? If it is, is raster2pgsql available in the same<br>> directory? etc.<br>> <br>> --Lee<br>> <br>> -- <br>> Lee Hachadoorian<br>> Asst Professor of Geography, Dartmouth College<br>> http://freecity.commons.gc.cuny.edu/<br>> _______________________________________________<br><br>Hi, <br><br>raster2pgsql don't work also shp2pgsql don't work (I have the Postgis 2.0 installed in Ubuntu 12.04). I just enable the function but seems that the pg_wrapper don't work. <br><br>I have all the raster2... and shp2... in /usr/bin but don't work when I try to call them in the shell.<br><br><br>Any idea? <br><br>Regards,<br>JSantos<br><br><br><br><br><br>> postgis-users mailing list<br>> postgis-users@postgis.refractions.net<br>> http://postgis.refractions.net/mailman/listinfo/postgis-users<br></div>                                          </div></body>
</html>