FreeBSD and gps: DB: no dbi drivers installed, or none found
Hi,
I am using FreeBSD 5.3 and building gps-0.93 from ports.
The same is happening if I use the port und gps-1.004.
Compiling and installing is fine (libdbi-0.7.2 and libdbi-drivers-0.7.1 are installed as dependencies, too).
But if i try to start gps:
mail:/usr/local/etc# /usr/local/libexec/gps -v /usr/local/etc/gps.conf
libdbi: Failed to load driver: /usr/local/lib/dbd/libmysql.so
mail:/usr/local/etc# la /usr/local/lib/dbd/libmysql.so
-rwxr-xr-x 1 root wheel 19878 May 6 18:21 /usr/local/lib/dbd/libmysql.so*
If someone could give me a hint, please mail me or answer here.
Thanks,
Andy
Post Edited (05-06-05 17:46)
Forums:
- Log in to post comments
Re: FreeBSD and gps: DB: no dbi drivers installed, or none found
I found the problem myself.
gps runs fine on base host, but i try running it in a jail. The shared library path for mysql client was not correct.
Running the script below on every startup of jail did it.
mail:/home/ah# cat /usr/local/etc/rc.d/mysql-client.sh
#!/bin/sh
case "$1" in
start)
/sbin/ldconfig -m /usr/local/lib/mysql
;;
stop)
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac