[GRASS-dev] compila grass on fedora31: configure: error: *** Unable to locate GDAL library.

Pietro peter.zamb at gmail.com
Mon Nov 11 04:13:24 PST 2019

Dear devs,

I have an issue when* I* try to configure ad compile grass.
At the moment I'm on Fedora 31. So I installed the default gdal (2.3.2)

`sudo dnf install gdal gdal-devel gdal-libs`

I executed locally gdalinfo on a tif and it provide the information of the
raster and then I checked the installation paths with:

$ /usr/bin/gdal-config --version
$ /usr/bin/gdal-config --libs
-L/usr/lib64 -lgdal
$ /usr/bin/gdal-config --cflags
$ /usr/bin/gdal-config --datadir

So it seems to work, then my configure command is:

$ CFLAGS="-g -O1 -Wall -Wextra -Wundef -Wfloat-equal -Wpointer-arith
-Wcast-align -Wstrict-prototypes -Wstrict-overflow=5 -Wwrite-strings
 -Wshadow -Werror-implicit-function-declaration -Waggregate-return
-Wcast-qual -Wswitch-default -Wswitch-enum -Wconversion -Wunreachable-code
-Winit-self -Wuninitialized -fno-common -fexceptions -fstack-protector
-fmudflap -m64 -mtune=native" \
CXXFLAGS="-g -O1 -Wall" \
./configure \
    --prefix=$HOME/.local \
    --with-zstd \
    --with-blas --with-blas-includes=/usr/include/atlas-x86_64-base/ \
    --with-lapack --with-lapack-includes=/usr/include/atlas-x86_64-base/ \
    --with-cxx \
    --with-cairo \
    --with-freetype \
    --with-freetype-includes=/usr/include/freetype2 \
    --with-geos \
    --with-gdal=/usr/bin/gdal-config \
    --with-gdal-includes=/usr/include/gdal \
    --with-gdal-libs=/usr/lib64 \
    --with-gdal-share=/usr/share/gdal \
    --with-nls \
    --with-netcdf \
    --with-odbc \
    --with-openmp \
    --with-postgres \
    --with-python=/usr/bin/python3-config \
    --with-readline \
    --with-proj \
    --with-pthread \
    --with-sqlite \

But I get the following error:
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether to use GDAL... yes
checking for gdal-config... /usr/bin/gdal-config
configure: error: *** Unable to locate GDAL library.

Do you understand why I still receive this error even if I specify all the
paths of the gdal iclude/libs/share directories?
Any ideas on how to solve/fix this issue?

Thank you for your support.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20191111/3fa717ab/attachment.html>

More information about the grass-dev mailing list