Quote:
Originally Posted by wirehopper
Before you recompile, see if you can just add the RPM - try yum install (RPM name) If it is a RedHat or CentOS server,
|
Yes, it is a RedHat/CentOS server.
Quote:
|
Linux version 2.6.9-22.ELsmp (buildcentos@louisa.home.local) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Sat Oct 8 19:11:43 CDT 2005
|
Quote:
Originally Posted by wirehopper
adding the RPM may do it.
|
You mean re-configuring the source RPM, rebuild the PHP RPM packages, and then install the newly-configured PHP RPM over the existing PHP? Am I correct here?
Sorry, I'm an RPM noob.
Quote:
Originally Posted by wirehopper
|
Why do we need both development RPM and source RPM?
Quote:
Originally Posted by wirehopper
4. Use yum to handle RPM dependencies. yum install php-5.1.6-23.el5.src.rpm
|
Well, the PHP come from the built-in Red Hat installer packages, and it's already up and running on a production server. Do I really need to handle RPM dependencies? And what if I skip this part?
Quote:
Originally Posted by wirehopper
5. Update SPECS/php.spec and enable/disable options as necessary.
|
This is where the reconfiguration takes place, isn't this? So what I'm doing here is similar to what I'm doing with the
./configure command, isn't it?
Quote:
Originally Posted by wirehopper
6. rpmbuild -bb –target=i386 SPECS/php.spec - It’s good to specify the target, since otherwise, the RPM build may take a very long time.
|
This is the name of the SPEC file I've just edited, right?
Quote:
Originally Posted by wirehopper
7. Force the installation of the updated RPMs. I did an ls of the RPMS directory and forced them all.
|
Er, this is where I don't understand the most.
Quote:
Originally Posted by wirehopper
rpm -i –force php-5.1.6-23.i386.rpm php-bcmath-5.1.6-23.i386.rpm php-cli-5.1.6-23.i386.rpm php-common-5.1.6-23.i386.rpm php-dba-5.1.6-23.i386.rpm php-debuginfo-5.1.6-23.i386.rpm php-devel-5.1.6-23.i386.rpm php-gd-5.1.6-23.i386.rpm php-imap-5.1.6-23.i386.rpm php-ldap-5.1.6-23.i386.rpm php-mbstring-5.1.6-23.i386.rpm php-mysql-5.1.6-23.i386.rpm php-ncurses-5.1.6-23.i386.rpm php-odbc-5.1.6-23.i386.rpm php-pdo-5.1.6-23.i386.rpm php-pgsql-5.1.6-23.i386.rpm php-snmp-5.1.6-23.i386.rpm php-soap-5.1.6-23.i386.rpm php-xml-5.1.6-23.i386.rpm php-xmlrpc-5.1.6-23.i386.rpm
|
So after Red Hat installed its built-in PHP, it would make all the following files above, am I correct? And I should update all of them with my re-configured RPM, right?