I installed an static mysql-server 4.0 from dev.mysql.com as suggested on the installation docs (not 4.1 nor 5.0 beta) + php 4.3.11.2, but at install time a missing php-mysql notice appears.
The problem is I can't get a binary php-mysql, not even do a rpmbuild --rebuild because it seem's there is no such php-mysql-x.x.src.rpm. On the other hand I see that that rpm 'only' contains:
/etc/php.d/mysql.ini /usr/lib/php4/mysql.so
what can I do? what am I missing if I work with mysql-server-3.23 instead mysql 4.0? (the version included with fedora core 3?) What else can I do?
thanks,
Pablo Chamorro
Pablo Chamorro C. wrote:
I installed an static mysql-server 4.0 from dev.mysql.com as suggested on the installation docs (not 4.1 nor 5.0 beta) + php 4.3.11.2, but at install time a missing php-mysql notice appears.
The problem is I can't get a binary php-mysql, not even do a rpmbuild --rebuild because it seem's there is no such php-mysql-x.x.src.rpm.
Can you clarify how you're installing things, exactly, and what the problem you're encountering is?
For i386 you can get a php-mysql binary package right here: http://mirrors.usc.edu/pub/linux/distributions/fedora/updates/3/i386/php-mys...
(I haven't checked, but I would assume the various php-* binary packages are all produced from the php-*.src.rpm, as this would basically consist of building PHP from the single source code distribution and then siphoning off the shared libraries, headers, etc into separate installable packages.)
Try: rpm -ivh php-mysql-4.3.11-2.4.i386.rpm
What's the exact result? Does it install, or does it fail? If it fails, what is the exact error message?
Does it fail on the dependency for libmysqlclient.so.10? If so, have you tried the --nodeps option to RPM to force it to install anyway?
If that installs but fails to run (in which case you should check your apache error log and php error log, if any, for messages), did you try also installing the MySQL-shared-compat-4.0.24-0.i386.rpm package from MySQL, which is described as "Dynamic client libraries (including 3.23.x libraries)"?
Personally, I've considered the Red Hat / Fedora packages for PHP and MySQL to be a bit of a lost cause; we generally install PHP from source and use the tarball package release of MySQL.
what can I do? what am I missing if I work with mysql-server-3.23 instead mysql 4.0? (the version included with fedora core 3?) What else can I do?
MySQL 3.x has a poorer fulltext search engine and has some limitations on index sorting and other features which we have to have a couple workarounds for. In 1.5 we'll be dropping the extra inverse timestamp indexes which were added to benefit MySQL 3.x; MediaWiki will probably still run on it but for serious sites a more modern version is highly recommended.
-- brion vibber (brion @ pobox.com)
Can you clarify how you're installing things, exactly, and what the problem you're encountering is?
For i386 you can get a php-mysql binary package right here: http://mirrors.usc.edu/pub/linux/distributions/fedora/updates/3/i386/php-mys...
Thank you very for the fast and detailed answer,
Your suggested install worked! but tonight I tried: rpm -i php-mysql-4.3.11-2.4.i386.rpm and the was a depency problem against mysql-server-3.23-xxx.rpm. In despair I did:
rpm -i php-mysql-4.3.11-2.4.i386.rpm --nodeps but I didn´t venture to start the mediawiki setup without knowing the consequences. And now I did rpm -e php-mysql and rpm -i as you suggested and it worked! I actually don´t know what happend.
Anyway, what I don´t underestand either is why there is no php-mysql-xx-src.rpm, please look at:
http://rpmfind.net//linux/RPM/fedora/updates/3/i386/php-mysql-4.3.11-2.4.i38...
the source rpm point to php-4.3.11-2.4.src.rpm, but as I see you already gave me the answer to this question. I think in a near future I would try with the php sources, from time to time I discover that like that is the best option but sometimes the time lacks.
thanks for all your teachings!
Pablo
(I haven't checked, but I would assume the various php-* binary packages are all produced from the php-*.src.rpm, as this would basically consist of building PHP from the single source code distribution and then siphoning off the shared libraries, headers, etc into separate installable packages.)
Personally, I've considered the Red Hat / Fedora packages for PHP and MySQL to be a bit of a lost cause; we generally install PHP from source and use the tarball package release of MySQL.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org