Success!!!


I got some great help from this list and was able to get everything working properly.

So, in case anyone else follows this way I'll summarize exactly what I did. This was my first time building RPM packages so if I did something wrong here please let us know.

My objective was to add xslt support to PHP. I was starting with a plain vanilla Redhat 9.0 install. The PHP version was php-4.2.2-17 and XML support was already built into PHP when I started.

Here is, step-by-step what I did:


Get the JS RPMS from: http://www.gingerall.com/charlie/ga/xml/d_related.xml?s=org

Get Sablotron RPMS from:
   http://www.gingerall.com/charlie/ga/xml/d_sab.xml

Install those and the -devel rpms.

Get and install the php sources php-4.2.2-17.src.rpm
(available from Redhat or any mirror site)

Look for the spec file at /usr/src/redhat/SPECS/php.spec
This is a text file that has to be edited.

At the very top of the file look for a section like this and change the release number to something larger. Mine was 17 originally and I first went to 18 and then 18.2 when I had to do everything over again. The important thing seems to be to make it larger each time. (Dots are ok, but don't put any dashes.)

Name: php
Version: 4.2.2
Release: 18                        <<--- increment this
License: The PHP License
Group: Development/Languages
URL: http://www.php.net/


Then scroll down in the file until you see a section called %configure.
This is just a small part of it and yours may be different, but I added the four lines shown.



--enable-calendar \ --enable-dbx \ --enable-dio \ --enable-mcal \ --with-dom-xslt \ <<--- add this --enable-xslt \ <<--- add this --with-xslt-sablot \ <<--- add this --with-sablot-js \ <<--- add this $*


Save that spec file with changes and in that same directory you can run the following command to build the new RPM.


rpmbuild -bb php.spec

Stop Apache web server.

cd /usr/src/redhat/RPMS/i386

rpm -Uvh php*-18.i386.rpm
(change that release number to whatever you used)

Start Apache web server.

Look at your Apache error log to see if it lists any problems and make sure your server is running properly. Use phpinfo() to see if the new functions are really there.

In my case, Apache would not run and the log had errors like so:

[crit] (17)File exists: unable to create scoreboard
(name-based shared memory failure)

Don't know what that's all about, but I found that I could edit httpd.conf and comment out the following line:

ScoreBoardFile /var/run/apache_runtime_status

After commenting that and restarting Apache everything has been working great.

Good luck to you.


-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to