Hi there
I've got Apache 2.0.40-11.5 installed on Redhat 8.0
I've also got
php-4.2.2-8.0.8
php-mysql-4.2.2-8.0.8
installed and all seems to be ok.
The guy who's writing content/code for the machine wants to be able to use xslt things as offered by things like expat, mod-xslt and sablotron (and I think js is a requirement).
These are provided from [url]http://www.gingerall.com,[/url] and I've installed the redhat 9.0 rpms so I've now got
libxslt-1.0.19-1
mod-xslt-exslt-1.0.0rc1-1
sablotron-devel-0.98-1
sablotron-0.98-1
js-devel-1.5rc4-2
js-1.5rc4-2
installed as well.
I don't know how to get the php RPM to recognise I've got this stuff installed - all the advice I've seen suggests that this is an option added at ./configure time with :
--enable-xslt
--with-xslt-sablot
--with-sablot
--with-sablot-js=/usr (optional ?)
So - I went and grabbed the srpm of php-4.2.2-8.0.8 from my local redhat mirror and tried to build it:
rpmbuild --rebuild php-4.2.2-8.0.8.src.rpm --enable-xslt --with-xslt-sablot
which it spits out with :
--enable-xslt: unknown option
There is also no mention of 'xsl' in /usr/src/redhat/SPECS/php.spec.
I tried adding
extension=mod-xslt.so
to /etc/php.ini
This exists in
/usr/lib/httpd/modules/mod-xslt.so
but when you try to use it you get:
php -i | more
PHP Warning: Unable to load dynamic library '/usr/lib/php4/mod-xslt.so' - /usr/lib/php4/mod-xslt.so: cannot open shared object file: No such file
or directory in Unknown on line 0
So I guess PHP hasn't got it.
xslt is mentioned in
/usr/share/doc/php-4.2.2/EXTENSIONS as Working and maintained.
When looking for the configure string in php -i I get:
./configure --host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-force-cgi-redirect
Lots of stuff but no xslt.
How do I incude xslt to the package using the srpm and not resorting to compiling from source (as in .tar.gz). I know its essentially the same thing but I like using RPMs - A lot of useful/sensible stuff is done for you.
If apache can use xslt (as the .so is provided by the mod-xslt-exslt rpm), can anyone show me any URLs so I can find out the difference??
I think the code being written requires php to be able to use xslt, so I'm a bit stuck.
Anyone any suggestions ?
Gavin