<html 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)"><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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        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",serif;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>You could just install the linux conda version on Redhat. I do this on Redhat 8.5 without issue. I believe the conda linux version contains all those drivers (and python bindings). <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>-- <o:p></o:p></p></div><div><p class=MsoNormal>Michael Smith<o:p></o:p></p><p class=MsoNormal>US Army Corps / Remote Sensing GIS Center<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:12.0pt;color:black'>From: </span></b><span style='font-size:12.0pt;color:black'>gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Roman Breitfuss-Schiffer <roman.schiffer@gmail.com><br><b>Date: </b>Tuesday, January 11, 2022 at 5:39 AM<br><b>To: </b><gdal-dev@lists.osgeo.org><br><b>Subject: </b>[gdal-dev] Build GDAL for RedHat 7.9 with python bindings and non-default drivers<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p><span style='font-family:"Tahoma",sans-serif'>Dear all!</span><o:p></o:p></p><p><span style='font-family:"Tahoma",sans-serif'>We are currently trying to build a GDAL/OGR installation (version >=3.1) for our server which operates on RedHat 7.9 (RHEL).</span> <o:p></o:p></p><p><span style='font-family:"Tahoma",sans-serif'>I have some experience with building GDAL on Ubuntu but have no working workflow for RHEL as the required packages and header files (e.g. gdal-libs, gdal-libs-devel, python-devel etc.) are not available for recent GDAL versions via yum.</span> <o:p></o:p></p><p><b><span style='font-family:"Tahoma",sans-serif'>Problem 1: Does anyone have experience with building GDAL (version >=3.1) on RHEL?</span></b><o:p></o:p></p><p><span style='font-family:"Tahoma",sans-serif'>We want to build with Python bindings and some non-default drivers (e.g. GPKG (raster), JP2OpenJPEG, MBTILES, WMS/WCS). I tried out the build on Ubuntu with the following ./configure:</span><o:p></o:p></p><p><span style='font-family:"Tahoma",sans-serif'>./configure <br>  --prefix=/usr <br>  --libdir=/usr/lib64  <br>  --with-armadillo=yes <br>  --with-sqlite3=yes <br>  --with-spatialite=yes <br>  --with-openjpeg <br>  --with-geos=yes <br>  --with-curl=/usr/bin/curl-config <br>  --with-python=yes <br>  --with-png=internal <br>  --with-jpeg=internal</span><o:p></o:p></p><p><b><span style='font-family:"Tahoma",sans-serif'>Problem 2: After running the ./configure command the GPKG (raster) driver and the JP2OpenJPEG driver are not listed in misc. gdal formats. </span></b><o:p></o:p></p><p style='margin-bottom:12.0pt'><span style='font-family:"Tahoma",sans-serif'>./configure output see attachment. </span><o:p></o:p></p><p>Best regards<br>Roman<o:p></o:p></p><pre> <o:p></o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Dipl.-Ing. Roman Breitfuss-Schiffer, MSc. (GIS)<o:p></o:p></pre><p class=MsoNormal>_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev <o:p></o:p></p></div></body></html>