Page 1 of 1

PHP - MySQL-client API 4.x needed

Posted: Sat Jul 23, 2005 3:00 am
by jamesyeeoc
Running Plesk 7.5.3, RH9 (but will also need for FC2)

These are the RPMs I have installed currently:

php-4.3.11-8.rh90.art
php-mysql-4.3.11-8.rh90.art
php-pgsql-4.3.11-8.rh90.art
php-pear-4.3.11-8.rh90.art
php-imap-4.3.11-8.rh90.art
php-devel-4.3.11-8.rh90.art

mysql-server-4.0.24-2.rh90.art
mysql-compat-4.0.24-2.rh90.art
mysql-devel-4.0.24-2.rh90.art
mysql-4.0.24-2.rh90.art
libdbi-dbd-mysql-0.6.5-5
mod_auth_mysql-1.11-12

MySQL-python-0.9.1-6
qt-MySQL-3.1.1-8.legacy
perl-DBD-MySQL-2.1021-3

What do I need to do to implement the MySQL Client API v4.x
instead of 3.23.x in PHP? I know the -compat lib was provided
for backwards compatibility, but due to the 16M limit, I need the
v4.x API

In matters of setting up a Linux devel environment, I have NO clue
what I am doing. There was a post I saw regarding this subject
relating to Plesk 6/RH9, where Scott said to install MySQL-max, but
I cannot locate that file on his site.

The only source rpm I could find for PHP is: php-4.3.11-6.art.src.rpm
Could not find the 4.3.11-8 version.

I do have found and downloaded: mysql-4.0.24-2.art.src.rpm
but again, have no clue exactly what to do to get the updated
Client API v4.x.x to be implemented.

Can anyone give me step by step instructions?? Thanks.

Posted: Sat Jul 23, 2005 6:07 am
by jamesyeeoc
Update: Ok, so I rpm -ivh php-4.3.11-6-art.src.rpm which puts the files into /usr/src/redhat/...

Then I cd /usr/src/redhat/SPECS where the php-4.3.11-6-art.spec file is and I issue either of these commands:
rpmbuild -bb php-4.3.11-6-art.spec
or
rpmbuild --rebuild ../SRPMS/php-4.3.11-6.art.src.rpm
Lots of output, finally ends with this error:
#ifdef __cplusplus
#include <stdlib.h>

configure: exit 1
+ make
make: *** No targets specified and no makefile found. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.30621 (%build)
So what step(s) am I missing? There is no make file that I can find in any of the folders.
Also is there a way to modify the spec file to get this to be the same as ARTs 4.3.11-8 version which is what yum updated my server to some time ago?? Else I'll have to be downgrading to 4.3.11-6 if I can get this working.

Please forgive me Scott..

Posted: Sat Jul 23, 2005 9:03 am
by jamesyeeoc
I don't know how I clicked on General instead of PHP forum. I humbly apologize for posting in the wrong place.