Luis, The problem is that the libgdal.so.1 file can't be found. Did you use a GDAL package or compile your own? If you're using a GDAL package through ubuntu or debian, the gdal libraries having their version number attached to the filename causing problems.
You should search the list for the last few months as people have had issues with GDAL provided by debian (and derived distros). I forget what the resolution was but I know that one was found. -bborie On 06/06/2012 06:22 AM, Luis wrote: > Hello everyone, > > I have Postgres 9.1 and Postgis 2.0 on Ubuntu Server 10.04. I'd like to add > raster support to a spatial database, feeding the raster SQL file: > > $ psql -f /usr/share/postgresql/9.1/contrib/postgis-2.0/rtpostgis.sql -d > mydatabase > > But I'm getting the following error: > > psql:/usr/share/postgresql/9.1/contrib/postgis-2.0/rtpostgis.sql:70: ERROR: > could not load library "/usr/lib/postgresql/9.1/lib/rtpostgis-2.0.so": > libgdal.so.1: cannot open shared object file: No such file or directory > > I thought this was a permission issue, but it is not: > > $ ls -la /usr/lib/postgresql/9.1/lib/rtpostgis-2.0.so > -rwxr-xr-x 1 root root 1275398 2012-06-05 16:33 > /usr/lib/postgresql/9.1/lib/rtpostgis-2.0.so > > So what's going on here? Can it be solved somehow? > > Thank you very much. > > -- > View this message in context: > http://postgis.17.n6.nabble.com/Error-adding-raster-support-tp4998034.html > Sent from the PostGIS - User mailing list archive at Nabble.com. > _______________________________________________ > postgis-users mailing list > postgis-users@postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > -- Bborie Park Programmer Center for Vectorborne Diseases UC Davis 530-752-8380 bkp...@ucdavis.edu _______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users