<div dir="ltr"><div><div>Hello Regina,<br><br></div>thank you very much for your answer. The dependencies of PostGIS are not being copied into pg**/bin, so that may be a bug in the makefile concerning Cygwin (lack of testing for the platform would certainly explain these issues). I'm also looking at a problem specifically concerning the path to libxml2, I'll investigate further and report later if I find anything.<br><br></div>Thanks again for your answer.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-07 3:55 GMT-03:00 Regina Obe <span dir="ltr"><<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div class="m_-7915911040045418375WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The PostGIS 2.4 doesn't have to be in system path, it should be in your lib folder of PostgreSQL.  <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I haven't used Cygwin in a while, and surprised it works, since I don't think anyone has been testing Cygwin compilation for PostGIS  in quite some time.<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">I compile under mingw64, the default install structure I get is<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">Pg11\lib (though PostGIS make install automatically puts it in the folder).<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">I think Cygwin might have it as pg11\lib\postgresql or something like that<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">And then the dependencies for PostGIS would go in pg11\bin – you should have a geos_c.dll, geos.dll, libproj-12.dll (might be libproj-9.dll if you are using < 4.9), libgdal-20.dll and all its dependencies, libxml2-2.dll<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Then you can add to your system path.  I usually have a launch script that adds these to a local launch path so I can swap out versions for testing and not clutter up my postgresql bin folder.<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"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><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-devel [mailto:<a href="mailto:postgis-devel-bounces@lists.osgeo.org" target="_blank">postgis-devel-bounces@<wbr>lists.osgeo.org</a>] <b>On Behalf Of </b>Roberto Ribeiro<br><b>Sent:</b> Wednesday, June 06, 2018 11:32 AM<br><b>To:</b> PostGIS Development Discussion <<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><wbr>><br><b>Subject:</b> [postgis-devel] Cannot load library in cygwin PostGIS 2.4 build<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hello list,<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">I built PostGIS today using Cygwin, and it did so with no problems. However, if I try to create extension in an existing db, it returns the error message: "could not load library <path/postgis-2.4.dll>: No such file or directory".<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">I searched online, seems like this is a common error, however the two common workarounds did not apply to me: first is to check if build architecture matches that of Postgres (yes, both are 64bits compiled on cygwin); second is to check if the dll is in the system PATH (it is).<u></u><u></u></p></div><p class="MsoNormal">Does anyone have any idea what could be the problem?<u></u><u></u></p></div></div></div></div></div></div><br>______________________________<wbr>_________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-devel</a><br></blockquote></div><br></div>