[CentOS] Upgrading PHP + MySQL on CentOS 3

Tue Oct 23 12:15:48 UTC 2007
Kai Schaetzl <maillists at conactive.com>

David Christopher Zentgraf wrote on Tue, 23 Oct 2007 19:57:12 +0900:

> I tried compiling PHP with '--with-mysql', '--with-mysql-dir=/usr'  
> and without explicitly specifying it, always the same outcome.

Of course. I'm not an expert in this, but I guess when you specify the lib 
directory it is going to use the first lib that is supposed to work.

I'm  
> kinda surprised that even the built-in mysqlclient libs don't work as  
> I expect them to.

I'm not. I think these are older ones, backwards-compatible.

> 
> I was thinking about either renaming .so.10 or symlinking it to .so. 

symlinking won't help as this may affect other software. You have to get 
it out of the way, so the linker has a chance to find another lib.

> 15, but I'd really prefer to not mess with these kind of things by  
> hand and rather have everything updated correctly with the correct  
> procedure of RPMming/compiling.

Well, the problem is that you have several client libraries on the 
machine. AFAIK there is no way to specify a specific version of it, so you 
have to move the others out of the way when you build (by renaming). Later 
you can put them back.


Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com