[CentOS] Upgrading PHP + MySQL on CentOS 3

Tue Oct 23 11:01:57 UTC 2007
Johnny Hughes <johnny at centos.org>

David Christopher Zentgraf wrote:
> On  23. Oct 2007, at 19:32, Kai Schaetzl wrote:
>> Have you tried renaming libmysqlclient.so.10? Also, are you sure that it
>> is libmysqlclient.so.10 that is getting used and not the client coming
>> with PHP? If I remember correctly PHP (at least before 5) links against a
>> client library that comes with it's source by default. So, if you are
>> building without specifying an external library it should use it's own
>> for
>> linking.
> Yes, pretty sure:
> $ ldd /usr/lib/php4/mysql.so
> libmysqlclient.so.10 => /usr/lib/libmysqlclient.so.10 (0x00f72000)
> I tried compiling PHP with '--with-mysql', '--with-mysql-dir=/usr' and
> without explicitly specifying it, always the same outcome. I'm kinda
> surprised that even the built-in mysqlclient libs don't work as I expect
> them to.
> I was thinking about either renaming .so.10 or symlinking it to .so.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.

If you are building RPMS, look at mock.

Mock will allow you to get a clean buildroot for all your package
builds.  All CentOS-4 and CentOS-5 RPMS (except some kmods) are now
built with mock.

Mock does require that all the BuildRequires are correct for the SRPM,
as it installs a base + the build requirements for the SRPM only.

Johnny Hughes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20071023/ae8e4b3a/attachment-0005.sig>