Adding Sablotron support to Red Hat 9

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
rohan_p
Forum Newbie
Posts: 3
Joined: Sat Jan 24, 2004 6:52 am

Adding Sablotron support to Red Hat 9

Post by rohan_p »

I'm trying to add Sablotron XSLT support to PHP on Red Hat 9. Normally, this means recompiling with additional flags '--with-xslt', etc. However, I don't want to replace the rpm installation of PHP with a tarball version.

I have thought of building a new rpm with xslt support, but don't know much about it. There's a SPEC file in the PHP download, but it's only a skeleton version, and I couldn't get it to work even in that form.

I notice that there are additional ini files under /etc/php.d. These appear to be for loading modules for extensions like MySQL and LDAP. I was wondering if I could make create one to load Sablotron. However, I haven't had any success.

So could anyone suggest a way of adding Sablotron support that retains the rpm installation?
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Simple, just need to compile php from srpm's (source rpms).
rohan_p
Forum Newbie
Posts: 3
Joined: Sat Jan 24, 2004 6:52 am

Post by rohan_p »

I'm getting the impression that you might have only read the title or the last line of my post. I was talking about the difficulties that I was having trying to compile it from the source.

What I tried originally was taking the configure parameters that appear in phpinfo(), and trying to compile the tarball version with them. However, one of the parameters is '--with APSX'. Since the APXS file is not included in the RH Apache distribution, this didn't work. I tried extracting the file from the Apache download and placing it under /usr/lib, but the compile process started trying to find files under /usr/local/apache, which of course doesn't exist.

I then tried building an RPM from the tarball, using the SPEC file I extracted. However, I ran into similar difficulties with other references.

Perhaps if you could recommend a good guide on building RPMs it might help.

However, I notice someone did produce am RPM called php_mod_xslt a while back, but it's only available for RH7.

I'm still curious as to how other RPMs that add module support are able to do this without recompiling. That's why it looked to me like the /etc/php.d folder might serve a similar purpose to the extensions section in the Windows version of php.ini. I haven't had any luck trying to do this myself, but I don't have enough knowledge of it.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

I read your whole post man, but I don't use Redhat (thank god) and source rpm's sounded like what you needed to research into. Or someone else might reply, dunno, sorry.
rohan_p
Forum Newbie
Posts: 3
Joined: Sat Jan 24, 2004 6:52 am

Post by rohan_p »

I looked through the RH php.ini file, and it does in fact mention that the php.d folder can be used to load modules via additional ini files, similar to the Dynamic Extensions section in the Windows version. Unfortunately, I can't find any documentation, and I can't get it to work by trying anything obvious.
Post Reply