Forum OpenACS Q&A: Problem of MySQL driver for AOLServer

Collapse
Posted by Taka Chan on
I am now trying to configure AOLserver 3.4.2 supporting a MySQL 
database.  However, I encounter an error when compiling the MySQL 
driver.  The error is as follow:

ld -shared -o nsmysql.so mysql.o -R/usr/local/mysql/lib/mysql -
L/usr/local/mysql/lib/mysql -lmysqlclient_r
ld: cannot fid -lmysqlclient_r
make: *** [nsmysql.so] Error 1

The driver version is nsmysql-0.6pre.

Besides, I have also tried to download the binary version of 0.5 but
the AOLServer fails to start, I find this error in server log:

[23/Jul/2002:19:00:14][2377.1024][-main-] Notice: modload: 
loading '/usr/local/aolserver/bin/nsmysql.so'
[23/Jul/2002:19:00:14][2377.1024][-main-] Warning: modload: failed to 
load '/usr/local/aolserver/bin/nsmysql.so': '/usr/local/aolserver/bin/
nsmysql.so: undefined symbol: mysql_field_count'
[23/Jul/2002:19:00:14][2377.1024][-main-] Fatal: modload: failed to 
load module '/usr/local/aolserver/bin/nsmysql.so'

Anyone can help?  Thanks in advance.