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

Re: Can't use MySQL 5.x Client with PHP 5.x



Hi Andy,

First of all thanks a lot for your help! :)

You need to build PHP yourself and link it against
libmysqlclient.so.15.
This will happen if you install
libmysqlclient15-dev >= 5.0 and then
dpkg-buildpackage the
PHP5 source package.
Is there no way to use the great
realease of php5 of backports.org? PHP 5 works very nice now and if there
is any other way I would let it be to compiling around. What I need is the
same version of PHP 5 like backports.org's but with MySQL 5 support. So it
would be easier to keep it up to date without compiling it every time
again.

No, I just noticed, the version on Bpo is linked against libmysqlclient12, because that is 'the way to go' on a Sarge system. If you want to link against a newer library, you have to build it yourself.

mysqli:
I've installed php5-mysql (5.2.0-8~bpo.2)
but I really can't found the file mysqli.so on the whole system (even not
in /usr/lib/php5/20060613/). I've reinstalled php5-mysql to be really sure
with "apt-get --reinstall install php5-mysql" but that didn't
helps :( What's my fault?

Not your fault. I just figured it out. The mysqli-extension was removed from the Bpo build, for the exact same reason: you need a newer library version to build mysqli, it won't build against libmysqlclient12. I'm sorry, I was wrong before.

If you need mysqli and don't want to build anything yourself, you may want to check out DotDeb (http://www.dotdeb.org/) or use my PHP5 packages from http://debian.sipo.nl/ (no garantees!).

Best regards,

Martijn Grendelman

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: