<div dir="ltr">A while ago, our Ubuntu server was updated. One of the updates included an update to gdal 1.10. Ever since then, our application no longer works. PostGIS throws an error:<div><span style="background-color:rgb(255,255,255)"><br>
</span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">select postgis_full_version();</font></div></div><div>
<div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">ERROR:  could not access file "$libdir/rtpostgis-2.0": No such file or directory</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">CONTEXT:  SQL statement "SELECT postgis_gdal_version()"</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">PL/pgSQL function "postgis_full_version" line 22 at SQL statement</font></div></div></blockquote><div><span style="background-color:rgb(255,255,255)"><br>
</span></div><div><span style="background-color:rgb(255,255,255)">I found some suggestions about linking some .so files, but that didn't help at all. So, I did some more digging. I still came up with nothing. </span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">I then decided maybe I should try and update PostGIS  to see if that will fix the problem. Unfortunately, that didn't work either. I tried to use the extension updater, but it came back with:</span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">ERROR:  could not open extension control file "/usr/share/postgresql/9.1/extension/postgis.control": No such file or directory</font></div>
</div></blockquote><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">So, I thought about just dumping my data and starting from scratch. Well, no luck there:</span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">pg_dump: SQL command failed</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">pg_dump: Error message from server: ERROR:  could not access file "$libdir/rtpostgis-2.0": No such file or directory</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">pg_dump: The command was: SELECT tableoid, oid, conname, pg_catalog.pg_get_constraintdef(oid) AS consrc, conislocal FROM pg_catalog.pg_constraint WHERE conrelid = '2706592'::pg_catalog.oid    AND contype = 'c' ORDER BY conname</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">pg_dumpall: pg_dump failed on database "gallardo", exiting</font></div></div></blockquote><div><span style="background-color:rgb(255,255,255)"><br>
</span></div><div><span style="background-color:rgb(255,255,255)">Needless to say, I'm stumped. My data is actually pretty simple. I have a database for osm data, another for 3m DEM data, and another for some random shapefile data. I could theoretically start over, but I would really prefer to keep the data I already have in place.</span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Would pg_upgrade help in this situation? Here is my pg_config:</span></div><div><span style="background-color:rgb(255,255,255)"><br>
</span></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">BINDIR = /usr/lib/postgresql/9.1/bin</font></div></div>
<div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">DOCDIR = /usr/share/doc/postgresql-doc-9.1</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">HTMLDIR = /usr/share/doc/postgresql-doc-9.1</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">INCLUDEDIR = /usr/include/postgresql</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">PKGINCLUDEDIR = /usr/include/postgresql</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">INCLUDEDIR-SERVER = /usr/include/postgresql/9.1/server</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">LIBDIR = /usr/lib</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">PKGLIBDIR = /usr/lib/postgresql/9.1/lib</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">LOCALEDIR = /usr/share/locale</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">MANDIR = /usr/share/postgresql/9.1/man</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">SHAREDIR = /usr/share/postgresql/9.1</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">SYSCONFDIR = /etc/postgresql-common</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">PGXS = /usr/lib/postgresql/9.1/lib/pgxs/src/makefiles/<a href="http://pgxs.mk">pgxs.mk</a></font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">CONFIGURE = '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-krb5' '--with-gssapi' '--with-openssl' '--with-libxml' '--with-libxslt' '--with-ldap' '--with-tclconfig=/usr/lib/tcl8.5' '--with-tkconfig=/usr/lib/tk8.5' '--with-includes=/usr/include/tcl8.5' 'PYTHON=/usr/bin/python' '--mandir=/usr/share/postgresql/9.1/man' '--docdir=/usr/share/doc/postgresql-doc-9.1' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/9.1' '--bindir=/usr/lib/postgresql/9.1/bin' '--libdir=/usr/lib/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--enable-nls' '--enable-integer-datetimes' '--enable-thread-safety' '--enable-debug' '--disable-rpath' '--with-ossp-uuid' '--with-gnu-ld' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -DLINUX_OOM_ADJ=0' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">CC = gcc</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">CPPFLAGS = -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">CFLAGS_SL = -fpic</font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">LDFLAGS = -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -L/usr/lib/x86_64-linux-gnu -Wl,--as-needed</font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">LDFLAGS_EX = </font></div></div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">LDFLAGS_SL = </font></div>
</div><div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">LIBS = -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -ledit -lcrypt -ldl -lm </font></div></div>
<div><div><font face="courier new, monospace" style="background-color:rgb(255,255,255)">VERSION = PostgreSQL 9.1.12</font></div></div></blockquote><div><span style="background-color:rgb(255,255,255)"><br></span></div><div>
<span style="background-color:rgb(255,255,255)">and PostGIS version:</span></div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span style="background-color:rgb(255,255,255)"><div><font face="courier new, monospace"> 2.0 USE_GEOS=1 USE_PROJ=1 USE_STATS=1</font></div>
</span></div></blockquote><div><span style="background-color:rgb(255,255,255)"><div><br></div></span></div><div>Thanks in advance.<br></div></div>