Re: Upgrading PHP + MySQL on CentOS 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.

Thanks,
Johnny Hughes

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux