[GRASS-user] Adding MySQL to 6.2.1, fedora core 6

Hamner, Jesse Harrison jhamner at emory.edu
Tue May 15 00:16:51 EDT 2007

Hi David,

If you already have the dependencies installed, you'll just have to tell grass where they are with a configure script file and recompile the binary from source.

I use mysql extensively with GRASS and have found that it plays nice with GRASS on Linux and Mac OS X pretty much all the time.

Here's one grass configure script I use (the other compiles support for lapack and blas), but as always, note your libraries and includes may be installed elsewhere, or the libraries listed below may not be installed on your system. Once you run this file, a -make- and a -make install- are all that's required. then execute the file from the command line with something like

grass62 -text

or the like.

I don't use RedHat/Fedora/CentOS (preferring the exquisite torture that is Gentoo), but if you've got the dependencies installed, you shouldn't have any problems.

Good luck.


source /etc/profile
make distclean

# CFLAGS="-g -O3 -march=pentium4 -Wall"

 ./configure --with-cxx \
--x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --with-x \
--with-gdal=/usr/bin/gdal-config \
--with-proj-includes=/usr/include --with-proj-libs=/usr/lib --with-proj-share=/usr/share/proj \
--with-mysql --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql \
--with-opengl-includes=/usr/include --with-opengl-libs=/usr/lib \
--with-readline --with-readline-includes=/usr/include --with-readline-libs=/usr/lib \
--with-fftw --with-fftw-libs=/usr/lib --with-fftw-includes=/usr/include \
--with-motif --with-motif-includes=/usr/include/openmotif-2.2 --with-motif-libs=/usr/lib/openmotif-2.2 \
--with-freetype --with-freetype-libs=/usr/lib/ --with-freetype-includes=/usr/include/freetype2 \

From: grassuser-bounces at grass.itc.it [grassuser-bounces at grass.itc.it] On Behalf Of David Adam [david at quercus.org]
Sent: Monday, May 14, 2007 11:31 PM
To: grassuser at grass.itc.it
Subject: [GRASS-user] Adding MySQL to 6.2.1, fedora core 6

I have downloaded the binary fc6 rpm version and installed it, but
db.connect does not list mysql as one of the driver options, so
I assume that I must compile from source before I can use my mysql server.
Since the binary version seems to work for the most part, can I simply
recompile grass, or do I have to start from scratch and recompile all of the
dependencies as well?
Also, does it matter that in the rpm/fedora directory of the source
there are
.spec files for grass_FC2, grass_FC3, and grass_FC4, but none for FC5 or
I'm needing to run under FC6...
Any suggestions or pointers will be much appreciated.

Lake County, California
(just north of the Napa Valley)

More information about the grass-user mailing list