Re: mysql5 with php4



J.O. Aho wrote:
Eric wrote:
I want to upgrade my database to 5.0 while using php4
we have been using php4 provided by RHEL, which i don't want to
recompile myself right now, because i'll have to do it everytime there
is an update.

What i did was instal mysql's devel compat and client packages.
Then got the source rpm from rhel.

cd /usr/src/redhat/BUILD/php-4.3.2/ext/mysql/
phpize
./configure --with-mysql=/usr
make
cp ../modules/mysql.so /usr/lib/php4/

I would suggest you modify your /usr/src/redhat/SPECS/php.spec instead,
as you do want the build to be as similar to the official RHEL version
as possible and by default just rebuilding the sourceRPM you will get
the mysql support too.

rpmbuild -ba /usr/src/redhat/SPECS/php.spec

this will generate new RPMs in your /usr/src/redhat/RPMS/i386, I do
suggest you update the RPM revision number with one, this way you can
update the installed version with 'rpm -Uvh <packages>'.

I do suggest you use the sourceRPM from Fedora Core 5/6 when you build
your new mysql, this way you will keep the RPM system working.


//Aho


We have a restriction on where we install from. We will loose our
security certification if we stay too for from rhel's repo.

I had trouble when i try to recompile all of php.
rpmbuild -ba php.spec
....
/usr/src/redhat/BUILD/php-4.3.2
+ install -m 755 -d /var/tmp/php-root/etc/
+ install -m 644 php.ini-dist /var/tmp/php-root/etc/php.ini
+ install -m 755 -d /var/tmp/php-root/usr/lib/httpd/modules
+ install -m 755 build-apache/libs/libphp4.so
/var/tmp/php-root/usr/lib/httpd/modules
install: cannot stat `build-apache/libs/libphp4.so': No such file or
directory
error: Bad exit status from /var/tmp/rpm-tmp.45089 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.45089 (%install)


rpm -qa |grep httpd
httpd-devel-2.0.46-56.ent
httpd-2.0.46-56.ent


as for mysql where using mysqls rhel3 rpms.
they are built staticly, and compiled with intel's compiler rather then gcc.
.



Relevant Pages

  • Re: [PHP] Installing php and mysql on linux
    ... I was ale to follow directions from the mysql website to start getting mysql to work instead of the linux site which was the basis for my original post. ... Does anyone know where I can go to download a php-mysql rpm? ... [PHP] Installing php and mysql on linux ... bash: up2date: command not found ...
    (php.general)
  • Re: how to know if a rpm has support for something
    ... I did what you have said and in my particular case with postfix I have this: ... I suppose this means that I have no MYSQL support. ... Do I lose the support I have bought to Redhat if I recompile this package? ... I want to know if this rpm: ...
    (RedHat)
  • Re: MySQL FC3
    ... I d/l the currant rpm and it will not allow removal. ... >I need I think a way to un-install mysql and do a clean install.. ... ensuring not to copy the mysql database. ...
    (Fedora)
  • Re: [SLE] Two Versions of MySQL
    ... In attempting a YoU update it hung attempting to update mysql. ... Now a rpm ... If each mysql package installs files with the same name, ...
    (SuSE)
  • Re: Slightly OT - rpm -bb problems
    ... I don't think this is anything more than something I'm missing as far as building the RPM goes. ... Is it because it's RHEL and not Fedora? ... The spec file is one from DAG's repository for nagios. ... The spec file is in the correct location, could it be I need the RPM devel package? ...
    (Fedora)