23/10/2005
libmysqlclient.so.12 => not found
I’ve upgraded my mysql from 4.0.X to 4.1.X…and some progs gave me errors that they could not start because they couldn’t find they proper mysql library…
The solution is to download a mysql package called MySQL-shared-compat. Unfortunately it only comes as an rpm…but..for us gentoo users there’s a nice solution to installing it.
Go download one of those rpms http://rpm.pbone.net/index.php3/stat/4/idpl/2144706/com/MySQL-shared-compat-4.0.25-0.i386.rpm.html and then:
rpm2targz MySQL-shared-compat-4.0.25-0.i386.rpm
tar zxvf MySQL-shared-compat-4.0.25-0.i386.tar.gz
cp ./usr/lib/*.so.* /usr/lib/
and you are done…all progs continue to work just like before.
Filed by kargig at 16:10 under Linux
2 Comments | 6,805 views
This is incorrect. You need to rebuilt all the software that links to mysql. So run revdep-rebuild to find the borked packages and re-emerge.
🙂
Don’t rush…what about programs that are distributed as binaries, like bnetd (from pvpgn package), and are built with those libraries inside?
check this for example:
# ldd /usr/games/bin/bnetd
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/libm.so.6 (0xb7fbb000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb7fa5000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb7f91000)
libz.so.1 => /lib/libz.so.1 (0xb7f7f000)
libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0xb7f48000)
libc.so.6 => /lib/libc.so.6 (0xb7e2d000)
/lib/ld-linux.so.2 (0xb7feb000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7dff000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0xb7df4000)
libnss_dns.so.2 => /lib/libnss_dns.so.2 (0xb7dee000)
revdep-debuild is useless is such occasions. Try to emerge games-server/pvpgn and try using mysql 4.1 with it…good luck! heh….
Don’t rush to judge on stuff that people write, there are times when reality could prove quite harsh on you.