<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Chris, just use the postgres copy command to copy out the data you need, and then copy into your new DB then. It can take an arbitrary sql expression so if needed do a query that grabs the columns you care about and ignores the location ones.<div><br></div><div>hth</div><div>charles</div><div><br><div><div>On Aug 16, 2011, at 6:28 PM, Chris Gat wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<div><br></div><div>I've recently been tasked with reviving an older database that hasn't been touch in a while. Both postgres and postgis were used to create this database. My ultimate goal at this point is to be able to dump the database from the linux server where it currently resides, to a mac workstation. </div>
<div><br></div><div>Here is the short version of what I've done so far and the problem I'm having:</div><div>build/install postgresql 8.2.3</div><div>at this point, I can access the database (via psql, SELECT), but if I try to use pg_dump (pg_dump MYDB > MYDB.sql), I get the error:</div>
<div><br></div><div>ERROR: could not access file "$libdir/<a href="http://liblwgeom.1.2.so/">liblwgeom.1.2.so</a>": No such file or directory</div><div>STATEMENT: COPY public.boundaries (gid, fnode_, tnode_, lpoly_, rpoly_, length, world_, world_id, bnd_type, bnd_status, bnd_study, area, len, the_geom) TO stdout; </div>
<div> </div><div>Obviously, after some investigation, I realize I need postgis. So I,</div><div>build/install proj4 4.7</div><div>build/install geos 3.1.1</div><div>when I try to build postgis-1.2.1, I get the build error (after running make):</div>
<div><br></div><div><div>lwgeom_geos_c.c: In function `postgis_geos_version':</div><div>lwgeom_geos_c.c:84: warning: implicit declaration of function `VARATT_SIZEP'</div><div>lwgeom_geos_c.c:84: error: invalid lvalue in assignment</div>
<div>lwgeom_geos_c.c: In function `relate_full':</div><div>lwgeom_geos_c.c:2073: error: invalid lvalue in assignment</div><div>lwgeom_geos_c.c: In function `GEOS2LWGEOM':</div><div>lwgeom_geos_c.c:2430: warning: assignment discards qualifiers from pointer target type</div>
<div>lwgeom_geos_c.c:2439: warning: assignment discards qualifiers from pointer target type</div><div>lwgeom_geos_c.c:2449: warning: assignment discards qualifiers from pointer target type</div><div>lwgeom_geos_c.c:2450: warning: assignment discards qualifiers from pointer target type</div>
<div>lwgeom_geos_c.c:2454: warning: assignment discards qualifiers from pointer target type</div><div>lwgeom_geos_c.c:2455: warning: assignment discards qualifiers from pointer target type</div><div>lwgeom_geos_c.c:2476: warning: assignment discards qualifiers from pointer target type</div>
<div>lwgeom_geos_c.c: In function `polygonize_garray':</div><div>lwgeom_geos_c.c:2815: warning: passing arg 1 of `GEOSPolygonize' from incompatible pointer type</div><div>lwgeom_geos_c.c: In function `LWGEOM_buildarea':</div>
<div>lwgeom_geos_c.c:2965: warning: passing arg 1 of `GEOSPolygonize' from incompatible pointer type</div><div>lwgeom_geos_c.c:3008: warning: assignment discards qualifiers from pointer target type</div></div><div><br>
</div><div>I can build/install postgis-1.3 and postgis-1.4, but these versions don't create the proper liblwgeom.so file.</div><div><br></div><div>Any ideas as to why this is occurring would help greatly. I should also mention that the most important information in this database has nothing to do with postgis, therefore, if there is a way to ignore the tables associated with postgis, and thus avoid the liblwgeom requirement, that would suffice.</div>
<div><br></div><div>Some additional information:</div><div>-when configuring postgres, proj4, geos, I used --prefix=/mydirectory/</div><div>-when configuring postgis, I used --prefix=/mydirectory/ --with-psql=/pathToPgconfig --with-geos=/pathToGeoConfig --with-proj=/mydirectory/</div>
<div><br></div><div>Also, I use GNU make 3.8</div><div><br></div><div>Thanks for you help, I appreciate it.</div><div><br></div><div>Chris</div><div><br></div>
_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>http://postgis.refractions.net/mailman/listinfo/postgis-users<br></blockquote></div><br></div></body></html>