[GRASS5] MySQL and PostgreSQL DBMI drivers for GRASS 5.1

Glynn Clements glynn.clements at virgin.net
Sat Nov 23 18:07:58 EST 2002


Markus Neteler wrote:

> > 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.
> 
> Probably Alex can help. I just tried it:
> 
> checking for mysql_query in -lmysqlclient... no
> configure: error: *** Unable to locate MySQL library.
> 
> thuille:grass51[273.17] locate libmysqlclient
> /usr/lib/mysql/libmysqlclient.so.10
> /usr/lib/mysql/libmysqlclient.so.10.0.0
> /usr/lib/mysql/libmysqlclient.a
> /usr/lib/mysql/libmysqlclient.so
> /usr/lib/mysql/libmysqlclient.so.9
> /usr/lib/mysql/libmysqlclient.so.9.0.0

Then you will need --with-mysql-libs=/usr/lib/mysql

> thuille:grass51[274.18] nm /usr/lib/mysql/libmysqlclient.so | grep
> mysql_query
> 0000a210 T mysql_query

OK, so that's probably the right symbol to be checking for.

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




More information about the grass-dev mailing list