<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=utf-8"><meta name=Generator content="Microsoft Word 15 (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:"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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {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:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Philip,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>By the looks of the error – your .so issue is whatever version of GEOS  gdal was compiled with is newer than the version of geos you have loaded.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Which version of PostGIS are you running and which version of PostgreSQL?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>DO <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>SELECT version() ,  postgis_full_version();<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>The above should tell you which version of GEOS you are using and also the vintage of your PostGIS.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>You may need to upgrade GEOS or recompile GDAL with a lower GEOS.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regina<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> postgis-users [mailto:postgis-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Philip M. Hurvitz<br><b>Sent:</b> Monday, January 6, 2020 3:36 PM<br><b>To:</b> postgis-users@lists.osgeo.org<br><b>Subject:</b> [postgis-users] PostGIS raster library problem<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>Hi all, and happy new year!<o:p></o:p></p><p>I'm having problems with pg_dump, and "yum update".<o:p></o:p></p><p>My dump is failing at the point where a raster is being dumped:<o:p></o:p></p><pre>...<o:p></o:p></pre><pre>pg_dump: error: Dumping the contents of table "os_be_slope_2009" failed: PQgetResult() failed.<o:p></o:p></pre><pre>pg_dump: error: Error message from server: ERROR:  could not load library "/usr/pgsql-9.6/lib/rtpostgis-2.4.so": /usr/gdal30/lib/libgdal.so.26: undefined symbol: GEOSMakeValid_r<o:p></o:p></pre><p>If I try to select a value from that raster I get the same error:<o:p></o:p></p><pre>5432 assessor=# select * from gis.os_be_slope_2009 limit 1;<o:p></o:p></pre><pre>ERROR:  could not load library "/usr/pgsql-9.6/lib/rtpostgis-2.4.so": /usr/gdal30/lib/libgdal.so.26: undefined symbol: GEOSMakeValid_r<o:p></o:p></pre><pre><o:p> </o:p></pre><p>And when attempting an update:<o:p></o:p></p><pre># yum update<o:p></o:p></pre><pre>Loaded plugins: fastestmirror, langpacks<o:p></o:p></pre><pre>Loading mirror speeds from cached hostfile<o:p></o:p></pre><pre> * base: centos.s.uw.edu<o:p></o:p></pre><pre> * centos-sclo-rh: centos.s.uw.edu<o:p></o:p></pre><pre> * centos-sclo-sclo: centos.s.uw.edu<o:p></o:p></pre><pre> * epel: d2lzkl7pfhq30w.cloudfront.net<o:p></o:p></pre><pre> * extras: centos.s.uw.edu<o:p></o:p></pre><pre> * updates: centos.s.uw.edu<o:p></o:p></pre><pre>Resolving Dependencies<o:p></o:p></pre><pre>--> Running transaction check<o:p></o:p></pre><pre>---> Package fribidi.x86_64 0:1.0.2-1.el7 will be updated<o:p></o:p></pre><pre>---> Package fribidi.x86_64 0:1.0.2-1.el7_7.1 will be an update<o:p></o:p></pre><pre>---> Package fribidi-devel.x86_64 0:1.0.2-1.el7 will be updated<o:p></o:p></pre><pre>---> Package fribidi-devel.x86_64 0:1.0.2-1.el7_7.1 will be an update<o:p></o:p></pre><pre>---> Package geos37.x86_64 0:3.7.1-1.rhel7 will be updated<o:p></o:p></pre><pre>--> Processing Dependency: geos37 = 3.7.1-1.rhel7 for package: geos37-python-3.7.1-1.rhel7.x86_64<o:p></o:p></pre><pre>--> Processing Dependency: libgeos-3.7.1.so()(64bit) for package: geos37-python-3.7.1-1.rhel7.x86_64<o:p></o:p></pre><pre>---> Package geos37.x86_64 0:3.7.2-2.rhel7 will be an update<o:p></o:p></pre><pre>---> Package geos37-devel.x86_64 0:3.7.1-1.rhel7 will be updated<o:p></o:p></pre><pre>---> Package geos37-devel.x86_64 0:3.7.2-2.rhel7 will be an update<o:p></o:p></pre><pre>---> Package open-vm-tools.x86_64 0:10.3.0-2.el7 will be updated<o:p></o:p></pre><pre>---> Package open-vm-tools.x86_64 0:10.3.0-2.el7_7.1 will be an update<o:p></o:p></pre><pre>---> Package open-vm-tools-desktop.x86_64 0:10.3.0-2.el7 will be updated<o:p></o:p></pre><pre>---> Package open-vm-tools-desktop.x86_64 0:10.3.0-2.el7_7.1 will be an update<o:p></o:p></pre><pre>---> Package pgdg-redhat-repo.noarch 0:42.0-5 will be updated<o:p></o:p></pre><pre>---> Package pgdg-redhat-repo.noarch 0:42.0-6 will be an update<o:p></o:p></pre><pre>--> Finished Dependency Resolution<o:p></o:p></pre><pre>Error: Package: geos37-python-3.7.1-1.rhel7.x86_64 (@pgdg11)<o:p></o:p></pre><pre>           Requires: libgeos-3.7.1.so()(64bit)<o:p></o:p></pre><pre>           Removing: geos37-3.7.1-1.rhel7.x86_64 (@pgdg11)<o:p></o:p></pre><pre>               libgeos-3.7.1.so()(64bit)<o:p></o:p></pre><pre>           Updated By: geos37-3.7.2-2.rhel7.x86_64 (pgdg10)<o:p></o:p></pre><pre>              ~libgeos-3.7.2.so()(64bit)<o:p></o:p></pre><pre>Error: Package: geos37-python-3.7.1-1.rhel7.x86_64 (@pgdg11)<o:p></o:p></pre><pre>           Requires: geos37 = 3.7.1-1.rhel7<o:p></o:p></pre><pre>           Removing: geos37-3.7.1-1.rhel7.x86_64 (@pgdg11)<o:p></o:p></pre><pre>               geos37 = 3.7.1-1.rhel7<o:p></o:p></pre><pre>           Updated By: geos37-3.7.2-2.rhel7.x86_64 (pgdg10)<o:p></o:p></pre><pre>               geos37 = 3.7.2-2.rhel7<o:p></o:p></pre><pre>           Available: geos37-3.7.0-1.rhel7.x86_64 (pgdg94)<o:p></o:p></pre><pre>               geos37 = 3.7.0-1.rhel7<o:p></o:p></pre><pre>           Available: geos37-3.7.0-2.rhel7.x86_64 (pgdg10)<o:p></o:p></pre><pre>               geos37 = 3.7.0-2.rhel7<o:p></o:p></pre><pre>           Available: geos37-3.7.2-1.rhel7.x86_64 (pgdg10)<o:p></o:p></pre><pre>               geos37 = 3.7.2-1.rhel7<o:p></o:p></pre><pre> You could try using --skip-broken to work around the problem<o:p></o:p></pre><pre> You could try running: rpm -Va --nofiles --nodigest<o:p></o:p></pre><pre><o:p> </o:p></pre><p>These all lead me to think that my libraries have gone haywire. Originally all of the PostgreSQL and PostGIS software was built from source but then I believe some were installed by the yum package manager.<o:p></o:p></p><p>Any assistance would be greatly appreciated!<o:p></o:p></p><div><p class=MsoNormal>-- <o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=3 width="100%" align=center></div><p class=MsoNormal>Phil Hurvitz<br>Research Scientist @ <a href="https://csde.washington.edu">CSDE</a><br><a href="http://staff.washington.edu/phurvitz/contact">Contact information</a><br><a href="http://staff.washington.edu/phurvitz/calendar/">Calendar</a><o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=3 width="100%" align=center></div></div></div></body></html>