<div dir="auto">Hi Regina,<div dir="auto"><br></div><div dir="auto">Thanks a lot for your help. I believe this is where the solution lies. I would give it another try tomorrow when I resume work from the Easter break.</div><div dir="auto"><br></div><div dir="auto">I will update you with my findings.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Apr 16, 2017 4:52 AM, "Regina Obe" <<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_-6517443604569077717WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Osahon,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">That error means you have installed an older version of GEOS in your system and it's picking up the old one instead of the one in your<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal">  /home/nagispg/local/geos361/<wbr>bin/geos-config<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I suspect that's the same issue with your proj too.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I think doing an ldconfig after install of GEOS and proj might fix the issue, but I forget.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">It's been a while since I've had to compile the extra dependencies even if building PostGIS on Linux.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Regarding the whole GDAL thing on windows.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I'm the builder of the Windows application Stackbuilder PostGIS bundle and also manage the Windows PostGIS buildbot.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">As I think someone mentioned, as a policy we don't compile any proprietary extensions into the distributed windows PostGIS bundle.<u></u><u></u></p><p class="MsoNormal">So that's one reason why Mr. SID is not included and will probably never be included.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">However, you could convert Mr. SID format to something like OpenJpeg or TIFF using GISInternals GDAL binaries for windows:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><a href="http://www.gisinternals.com/release.php" target="_blank">http://www.gisinternals.com/<wbr>release.php</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Last I tried, that one does have Mr. SID support.  Unfortunately you can't swap out his GDAL for the ones we package.<u></u><u></u></p><p class="MsoNormal">I was hoping I could make that possible at some point, but no free time or enough funding interest to investigate.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Regina Obe<u></u><u></u></p><p class="MsoNormal">PostGIS PSC member<u></u><u></u></p><p class="MsoNormal"><a href="http://postgis.us" target="_blank">http://postgis.us</a><u></u><u></u></p><p class="MsoNormal"><a href="http://postgis.net" target="_blank">http://postgis.net</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><br><br><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><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:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@<wbr>lists.osgeo.org</a>] <b>On Behalf Of </b>Osahon Oduware<br><b>Sent:</b> Friday, April 14, 2017 3:21 PM<br><b>To:</b> Adrian Klaver <<a href="mailto:adrian.klaver@aklaver.com" target="_blank">adrian.klaver@aklaver.com</a>><br><b>Cc:</b> <a href="mailto:pgsql-general@postgresql.org" target="_blank">pgsql-general@postgresql.org</a>; PostGIS Users Discussion <<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><wbr>><br><b>Subject:</b> Re: [postgis-users] [GENERAL] Error During PostGIS Build From Source on Linux<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-left:.5in">Hi Adrian,<u></u><u></u></p><div><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in">I installed Proj from source and I can confirm that the file <span style="font-family:"Arial",sans-serif">libproj.so.12 is in its lib folder.</span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif">I have not been able to confirm if it is linked to </span><a href="http://postgis-2.3.so/" target="_blank"><span style="font-family:"Arial",sans-serif">postgis-2.3.so</span></a><span style="font-family:"Arial",sans-serif"> as I am away for Easter holiday.</span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif">Just in case, how do I do the linking of libproj.so.12 to </span><a href="http://postgis-2.3.so/" target="_blank"><span style="font-family:"Arial",sans-serif">postgis-2.<wbr>3.so</span></a> as I believe this could be the cause of the error. Also, I tried earlier to copy the file to the PostgreSQL lib folder and this time when I try to run "CREATE EXTENSION postgis;" I get the initial error:<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">ERROR: could not load library "/path/to/postgresql/lib/</span><a href="http://postgis-2.3.so/" target="_blank"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#4285f4;text-decoration:none">postg<wbr>is-2.3.so</span></a><span style="font-size:10.5pt;font-family:"Arial",sans-serif">": /path/to/postgresql/lib/</span><a href="http://postgis-2.3.so/" target="_blank"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#4285f4;text-decoration:none">postgi<wbr>s-2.3.so</span></a><span style="font-size:10.5pt;font-family:"Arial",sans-serif">: undefined symbol: GEOSClipByRect</span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in">I will be glad if anyone could help with this.<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p></div><div><div><p class="MsoNormal" style="margin-left:.5in">On Apr 13, 2017 18:27, "Adrian Klaver" <<a href="mailto:adrian.klaver@aklaver.com" target="_blank">adrian.klaver@aklaver.com</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><p class="MsoNormal" style="margin-left:.5in">On 04/13/2017 07:54 AM, Osahon Oduware wrote:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">Hi Adrian,<u></u><u></u></p><div><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">Thanks for your help so far. This is the output of the PostGIS<br>configuration:<br><br>-------------- Compiler Info -------------<br>  C compiler:           gcc -g -O2<br>  SQL preprocessor:     /usr/bin/cpp -traditional-cpp -w -P<br><br> -------------- Dependencies --------------<br>  GEOS config:          /home/nagispg/local/geos361/<wbr>bin/geos-config<br>  GEOS version:         3.6.1<br>  GDAL config:          /home/nagispg/local/gdal213/<wbr>bin/gdal-config<br>  GDAL version:         2.1.3<br>  PostgreSQL config:    /home/nagispg/local/pgsql/bin/<wbr>pg_config<br>  PostgreSQL version:   PostgreSQL 9.6.2<br>  PROJ4 version:        49<br>  Libxml2 config:       /usr/bin/xml2-config<br>  Libxml2 version:      2.7.6<br>  JSON-C support:       no<br>  PCRE support:         no<br>  PostGIS debug level:  0<br>  Perl:                 /usr/bin/perl<br><br> --------------- Extensions ---------------<br>  PostGIS Raster:       enabled<br>  PostGIS Topology:     enabled<br>  SFCGAL support:       disabled<br>  Address Standardizer support:       disabled<br><br> -------- Documentation Generation --------<br>  xsltproc:             /usr/bin/xsltproc<br>  xsl style sheets:<br>  dblatex:<br>  convert:              /usr/bin/convert<br>  mathml2.dtd:          <a href="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" target="_blank">http://www.w3.org/Math/DTD/<wbr>mathml2/mathml2.dtd</a><br><<a href="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" target="_blank">http://www.w3.org/Math/DTD/<wbr>mathml2/mathml2.dtd</a>><u></u><u></u></p></div><p class="MsoNormal" style="margin-left:.5in">I had to install a *higher version of Proj (4.9.3)* that was used to<u></u><u></u></p><div><p class="MsoNormal" style="margin-left:.5in"><br>configure PostGIS (I think I read somewhere in the documentation that<u></u><u></u></p></div><p class="MsoNormal" style="margin-left:.5in">the version of Proj should be >= 4.6.0). *Now, I get the following error<br>when I run CREATE EXTENSION postgis:*<u></u><u></u></p></blockquote><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in"><br>How did you install Proj, from a package or source?<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal" style="margin-left:.5in"><br>*ERROR: could not load library <a href="http://postgis-2.3.so" target="_blank">postgis-2.3.so</a> <<a href="http://postgis-2.3.so" target="_blank">http://postgis-2.3.so</a>>:<br>libproj.so.12: cannot open shared object file: No such file or directory*<u></u><u></u></p></blockquote><p class="MsoNormal" style="margin-left:.5in"><br>First find <a href="http://postgis-2.3.so" target="_blank">postgis-2.3.so</a> and do:<br><br>ldd <a href="http://postgis-2.3.so" target="_blank">postgis-2.3.so</a><br><br>It should show something like:<br><br>        linux-vdso.so.1 (0x00007ffe3ed8a000)<br>        libgeos_c.so.1 => /usr/lib64/libgeos_c.so.1 (0x00007f975bd09000)<br>    ==> libproj.so.9 => /usr/lib64/libproj.so.9 (0x00007f975baaa000)<br>        libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f975b73f000)<br>        libm.so.6 => /lib64/libm.so.6 (0x00007f975b442000)<br>        libc.so.6 => /lib64/libc.so.6 (0x00007f975b09e000)<br>        <a href="http://libgeos-3.5.1.so" target="_blank">libgeos-3.5.1.so</a> => /usr/lib64/<a href="http://libgeos-3.5.1.so" target="_blank">libgeos-3.5.1.so</a> (0x00007f975acef000)<br>        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f975a966000)<br>        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f975a74e000)<br>        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f975a531000)<br>        libdl.so.2 => /lib64/libdl.so.2 (0x00007f975a32d000)<br>        libz.so.1 => /lib64/libz.so.1 (0x00007f975a116000)<br>        liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007f9759eed000)<br>        /lib64/ld-linux-x86-64.so.2 (0x000055ebafa02000)<br><br>That will verify if <a href="http://postgis-2.3.so" target="_blank">postgis-2.3.so</a> is linked to libproj.<u></u><u></u></p><div><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in"><br><br><br><u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in"><br>I would be glad if someone could point me to what I am doing wrong and<br>possible solution.<br><br><u></u><u></u></p></blockquote><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p></div><p class="MsoNormal" style="margin-left:.5in"><span style="color:#888888">-- <br>Adrian Klaver<br><a href="mailto:adrian.klaver@aklaver.com" target="_blank">adrian.klaver@aklaver.com</a></span><u></u><u></u></p></blockquote></div><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in"><u></u> <u></u></p></div></div></div></div><br>______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a><br></blockquote></div></div>