[GRASS5] MySQL and PostgreSQL DBMI drivers for GRASS 5.1

Glynn Clements glynn.clements at virgin.net
Sat Nov 23 13:09:20 EST 2002


Markus Neteler wrote:

> > > > written and uploaded at the CVS are two new DBMI drivers,
> > > > one for PostgreSQL and one for MySQL. To compile them one needs grass51
> > > > and 'libpq' or 'libmysqlclient', respectively.
> > > > 
> > > > The code is at grass51/db/drivers catalog.
> > > 
> > > Glynn, may I ask you to add a test to 'configure[.in]' for the mysql
> > > libs and include directories?
> > 
> > What should it be testing for?
> > 
> > What is the header called, what is the library called, which other
> > libraries (or sets of libraries) might be required, and which function
> > should configure expect to find in that library?
> 
> According to
>  grass51/db/drivers/mysql/Makefile
> and
>  grass51/db/drivers/mysql/globals.h
> 
> it needs
> -L/usr/local/lib/mysql
> -lmysqlclient
> 
> and
> #include <mysql/mysql.h>

That's 2 out of 4; I still need to know a symbol which will be present
in libmysqlclient, and which libraries libmysqlclient might depend
upon.

I'll take a guess at mysql_query() being defined in libmysqlclient (it
is referenced in db/drivers/mysql, but doesn't appear to be defined
anywhere), and I'll assume that no other libraries need to be
specified.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list