[gdal-dev] Unable to find driver 'MYSQL' after successful config and make

Even Rouault even.rouault at spatialys.com
Wed Sep 23 12:03:41 PDT 2015


Le mercredi 23 septembre 2015 17:29:42, Nicholas Williams a écrit :
> I'm having trouble getting ogr2ogr working with MySQL on Ubuntu 12.04, but
> I can't figure out why. Configure says MySQL is enabled, but execution says
> it's not.
> 
> In addition to other dependencies, I installed the MySQL client dev:
> 
> sudo apt-get install -y libmysqlclient-dev=5.5.28-rel29.1-334.precise
> 
> And I confirmed that mysql_config exists and is executable:
> 
> # ls -al /usr/bin/mysql_config
> -rwxr-xr-x 1 root root 6933 Oct 25  2012 /usr/bin/mysql_config
> 
> I configured, made and installed:
> 
> ./configure --prefix=/usr --with-spatialite=yes --with-libjson-c=internal
> --with-mysql=yes
> make
> make_install

Nick,

If you did several attempts of configure & make while changing configure options 
or installing new packages, be sure to do a "make clean" before make. Or just 
try "touch ogr/ogrsf_frmts/generic/ogrregisterall.cpp" and make again

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list