<div dir="ltr">Hello,<div><br></div><div>I've been trying to get gdal compiled to be able to read GML files - but I keep on getting expat / Xerces errors.</div><div>I am working on an AWS AMI that matches the AWS Lambda environment (as I'm trying to get this working in Lambda really).(AMI: amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2 / amiId: ami-ebd02392)</div><div><br></div><div>I'm following these steps;</div><div><br></div><div><div>wget <a href="http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz">http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz</a></div><div>tar -xzf expat-2.1.0.tar.gz </div><div>cd expat-2.1.0/</div><div>./configure --prefix=/tmp</div><div>make</div><div>make install</div><div><br></div><div>wget <a href="http://download.osgeo.org/gdal/2.2.3/gdal-2.2.3.tar.gz">http://download.osgeo.org/gdal/2.2.3/gdal-2.2.3.tar.gz</a></div><div>tar xzf gdal-2.2.3.tar.gz</div><div>cd gdal-2.2.3</div><div>./configure --without-ld-shared --disable-shared --enable-static --with-curl --prefix /tmp/gdal --with-expat=/tmp/</div><div>make</div><div>make install</div></div><div><br></div><div>In the gdal ./configure step I am getting the output;</div><div><br></div><div>checking for Expat XML Parser headers in /tmp//include... found</div><div>checking for Expat XML Parser... yes</div><div>checking if Expat XML Parser version is >= 1.95.0... yes</div><div><br></div><div>and later</div><div>Expat support:             yes<br></div><div><br></div><div>I then run make + make install, and to test I just do;</div><div>./gdal-2.2.3/apps/ogrinfo mygmlfile</div><div>which gives me the error;</div><div><br></div><div><div>ERROR 1: Unable to create Xerces C++ or Expat based GML reader, Xerces or Expat support not configured into GDAL/OGR.</div><div>ERROR 1: File data/tmpX9fQKT/HP6000 appears to be GML but the GML reader can't</div><div>be instantiated, likely because Xerces or Expat support was</div><div>not configured in.</div><div>FAILURE:</div><div>Unable to open datasource `data/tmpX9fQKT/HP6000' with the following drivers.</div></div><div><br></div><div><br></div><div>Does anybody have an idea what I might be doing wrong? Any tips greatly received.</div><div><br></div><div>Toby</div></div>