Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160023 - mysql doesn't create symlinks to its libraries causing run-time and compile-time errors
Summary: mysql doesn't create symlinks to its libraries causing run-time and compile-t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-04 10:23 UTC by Maurice van der Pot (RETIRED)
Modified: 2007-01-04 13:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice van der Pot (RETIRED) gentoo-dev 2007-01-04 10:23:19 UTC
I've tried this with mysql-5.0.30 and 5.0.26-r1, but it's probably something to do with the eclass:
$Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.55 2007/01/03 15:27:13 vivo Exp $

The problem is that after installing mysql there are no symlinks to libmysqlclient* in /usr/lib. The libs are present in /usr/lib/mysql. This causes for instance postfix, tpop3d and php to fail at run-time. It also causes postfix to fail at compile-time.

The forums suggest adding -mysql to package.use. I'm using that work around for tpop3d and postfix, but I really need mysql support in php.


Some background info on what I was doing when I ran into this:
I updated my system and noticed that I had two dev-db/mysql-5.x versions installed. I uninstalled both and reinstalled mysql-5.0.30. Then I noticed that postfix could not find the mysql libs and also that I didn't have any mysql init scripts anymore. After a while I found out I also had to install sys-apps/mysql to get the init scripts. So now I have only the problem with the libs left.
Comment 1 Henti Smith 2007-01-04 12:46:59 UTC
quick workaround 

put : LDPATH="/usr/lib/mysql" into /etc/env.d/99mysql and run env-update

Comment 2 Henti Smith 2007-01-04 12:52:57 UTC
Actually .. this is prolly better .. since you need to create the symlinks anyway .. 

ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so
ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so.15  
ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so.15.0  
ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so.15.0.0 
ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so 
ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so.15  
ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so.15.0  
ln -s /usr/lib/mysql/libmysqlclient_r.so.15.0.0 /usr/lib/libmysqlclient_r.so.15.0.0 
Comment 3 Francesco R. (RETIRED) gentoo-dev 2007-01-04 13:13:53 UTC
fixed, the symlinks are now created inside src_install() and sorry for the problem with sys-apps/mysql, it's fixed too (with RDEPEND)