[GRASS-dev] compiling grass 7 fails, complains about not finding gdal (which however is there)

I am trying to compile grass 7, with configuration settings:

./configure --prefix=/usr/local/grass7 --enable-64bit --with-libs=/lib64 --with-sqlite --with-odbc --with-cairo --with-geos --with-cxx=yes --with-gdal=/usr/bin/gdal/bin/ --with-python=yes --with-wxwidgets=/usr/bin/wx-config --with-readline --with-freetype --with-freetype-includes=/usr/include/freetype2 --enable-largefile --with-motif --with-motif-includes=/usr/include --with-proj-share=/usr/share/proj --with-pthread --with-postgres --with-postgres-libs=/usr/include/postgresql/libpq --with-postgres-includes=/usr/include/postgresql --with-lapack --with-blas

It stops halfway, with the error message below:

checking for gdal-config… /usr/local/gdal/bin/gdal-config
configure: error: *** Unable to locate GDAL library.

However, the gdal-config is there (and works without problem from the command line), the path has been defined in the .bashrc and .configure files in my home directory. Also, nothing has changed since the last time I compiles grass (successfully), so I am at loss what to do next. Any ideas?

On Wed, Jul 23, 2014 at 2:18 PM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

I am trying to compile grass 7, with configuration settings:

./configure --prefix=/usr/local/grass7 --enable-64bit --with-libs=/lib64
--with-sqlite --with-odbc --with-cairo --with-geos --with-cxx=yes
--with-gdal=/usr/bin/gdal/bin/

                             ^^^^^^^^^^^^^^^^? -- take out "gdal/" perhaps?
...

It stops halfway, with the error message below:

checking for gdal-config... /usr/local/gdal/bin/gdal-config

It will likely be in
/usr/local/bin/gdal-config

Hope this helps,
Markus

Should have been /usr/local/bin/ as you suggested below. Yes, it was there as soft link, but for some reason the link was broken… recreating the link solved the problem. Thanks!

···

On 23-07-14 14:38, Markus Neteler wrote:

On Wed, Jul 23, 2014 at 2:18 PM, Paulo van Breugel
[<p.vanbreugel@gmail.com>](mailto:p.vanbreugel@gmail.com) wrote:

I am trying to compile grass 7, with configuration settings:

./configure --prefix=/usr/local/grass7 --enable-64bit --with-libs=/lib64
--with-sqlite --with-odbc --with-cairo --with-geos --with-cxx=yes
--with-gdal=/usr/bin/gdal/bin/

                             ^^^^^^^^^^^^^^^^? -- take out "gdal/" perhaps?
...

It stops halfway, with  the error message below:

checking for gdal-config... /usr/local/gdal/bin/gdal-config

It will likely be in
/usr/local/bin/gdal-config
Hope this helps,
Markus