By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

PHP install : rpm or compile ?

P: n/a
Hello,
My "problem" : install php's XSLT API.
1)I installed Sablotron (with the rpm) : ok
2) I read every where that the next step was to compile php
with option --with-xslt-sablot. Since I have php's rpm, I wonder if I
can use it directly and tell the rpm command to use this compilation
option. Is it possible ? If not, that's no problem since I can download
php and compile, but still I'm wondering if rpms can be used with such
options.
My config : redhat 8, php 4.2.2.
Thanks
Ghislain

Jul 16 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
In article <3F**************@NOSPAM.freesurf.fr>, Ghislain Benrais wrote:
Hello,
My "problem" : install php's XSLT API.
1)I installed Sablotron (with the rpm) : ok
2) I read every where that the next step was to compile php
with option --with-xslt-sablot. Since I have php's rpm, I wonder if I
can use it directly and tell the rpm command to use this compilation
option. Is it possible ? If not, that's no problem since I can download
php and compile, but still I'm wondering if rpms can be used with such
options.
My config : redhat 8, php 4.2.2.


Not really, unless you use the source-rpm.

Another solution would be to get the sources for 4.2.2 (from php.net)
and compile them --with-xslt-sablot=shared. Then simply use the
resulting module.so file with your existing php installation.
Jul 16 '05 #2

P: n/a
In article <3F**************@NOSPAM.freesurf.fr>,
Ghislain Benrais <gb******@NOSPAM.freesurf.fr> wrote:
Hello,
My "problem" : install php's XSLT API.
1)I installed Sablotron (with the rpm) : ok
2) I read every where that the next step was to compile php
with option --with-xslt-sablot. Since I have php's rpm, I wonder if I
can use it directly and tell the rpm command to use this compilation
option. Is it possible ? If not, that's no problem since I can download
php and compile, but still I'm wondering if rpms can be used with such
options.
My config : redhat 8, php 4.2.2.


RPM does not actually compile the packages on your local system, it's just
a format for installing premade binaries. I'm guessing that since you've
installed a Sablotron RPM that everything has been done for you
automagically in terms of updating your main PHP to support it (this
is what RPM is [supposed] to handle for you). In other
words, see if it works as is (you probably need to restart Apache to get
the new set up).

-Tim Miller
Jul 16 '05 #3

P: n/a
Tim Miller wrote:
RPM does not actually compile the packages on your local system, it's just
a format for installing premade binaries. I'm guessing that since you've
No, you can actually compile your own rpm binary packages, and then install
them.
installed a Sablotron RPM that everything has been done for you
automagically in terms of updating your main PHP to support it (this
is what RPM is [supposed] to handle for you). In other
words, see if it works as is (you probably need to restart Apache to get
the new set up).

-Tim Miller

Jul 16 '05 #4

P: n/a
Errm... I'm sorry, but I do think you read that little to fast... He didn't
say you don't compile the rpm's, he said you don't compile the things they
install which is true unless you install the source which seems to somewhat
break the purpose of rpms...

--
// DvDmanDT
MSN: dv******@hotmail.com
Mail: dv******@telia.com
"matty" <ma*******@askmenoquestions.co.uk> skrev i meddelandet
news:Yp*******************@wards.force9.net...
Tim Miller wrote:
RPM does not actually compile the packages on your local system, it's just a format for installing premade binaries. I'm guessing that since you've
No, you can actually compile your own rpm binary packages, and then

install them.
installed a Sablotron RPM that everything has been done for you
automagically in terms of updating your main PHP to support it (this
is what RPM is [supposed] to handle for you). In other
words, see if it works as is (you probably need to restart Apache to get
the new set up).

-Tim Miller

Jul 16 '05 #5

P: n/a
Ghislain Benrais wrote:
Hello,
I'm having problems to install php with sablotron.
My OS : redhat 8. I installed apache 1.3.28 and downloaded
php-4.3.2. (I install without any problem php with "normal" options).
But as I try to install php with sablotron options. I get this
message all the time :
configure: error: not found. Please re-install the Sablotron distribution
I tried every possible options for the configure command.
Notice : I have isntalled sablotron1.0 (I also tried 3 older versions
but it doesn't work either).
Thanks for your help,

Ghislain


If you've got sablotron as an rpm, this will tell you the prefix
to pass the configure script:

rpm -qil sablotron | grep -E 'libsablot.so.0$' | sed s#.lib.libsablot.so.0##g

(in my case /usr)

you can also try looking at

whereis libsablot

to get some idea - the prefix will almost certainly be one of
/
/usr
/usr/local

and doesn't include the "bin" or "lib" parts

IIRC, you have to have JS installed as well to make PHP compile with sablotron

HTH

Matt

Jul 16 '05 #6

P: n/a
Thanks matty,
But I had already tried that and it doesn't work.
Here is my configure command :
../configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
--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-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-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
--with-apxs=/www/bin/apxs --enable-xslt --with-xslt-sablot=/usr
--with-dom-xslt=/usr --with-sablot-js=/usr --with-iconv
--with-iconv-dir=/usr

matty wrote:
Ghislain Benrais wrote:

Hello,
I'm having problems to install php with sablotron.
My OS : redhat 8. I installed apache 1.3.28 and downloaded
php-4.3.2. (I install without any problem php with "normal" options).
But as I try to install php with sablotron options. I get this
message all the time :
configure: error: not found. Please re-install the Sablotron distribution
I tried every possible options for the configure command.
Notice : I have isntalled sablotron1.0 (I also tried 3 older versions
but it doesn't work either).
Thanks for your help,

Ghislain

If you've got sablotron as an rpm, this will tell you the prefix
to pass the configure script:

rpm -qil sablotron | grep -E 'libsablot.so.0$' | sed s#.lib.libsablot.so.0##g

(in my case /usr)

you can also try looking at

whereis libsablot

to get some idea - the prefix will almost certainly be one of
/
/usr
/usr/local

and doesn't include the "bin" or "lib" parts

IIRC, you have to have JS installed as well to make PHP compile with sablotron

HTH

Matt

Jul 16 '05 #7

P: n/a
Ghislain Benrais wrote:
Thanks matty,
But I had already tried that and it doesn't work.
Here is my configure command :


Well, you could try doing

../configure .... | tee -a configurelog

and then post the *RELEVANT* parts of configurelog, along
with your command line, in here
Jul 16 '05 #8

P: n/a
Ghislain Benrais wrote:
matty wrote:
Ghislain Benrais wrote:

Thanks matty,
But I had already tried that and it doesn't work.
Here is my configure command :

Well, you could try doing

./configure .... | tee -a configurelog

and then post the *RELEVANT* parts of configurelog, along
with your command line, in here


Here is the end of the (long) configure output.
checking whether to enable WDDX support... yes
checking whether byte ordering is bigendian... no
checking whether to enable XML support... yes
checking external libexpat install dir... /usr
checking for XMLRPC-EPI support... no
checking libexpat dir for XMLRPC-EPI... /usr
checking iconv dir for XMLRPC-EPI... /usr
checking whether to enable xslt support... yes
checking for XSLT Sablotron backend... /usr
checking for libexpat dir for Sablotron XSL support... /usr
checking for iconv dir for Sablotron XSL support... /usr
checking for JavaScript for Sablotron XSL support... /usr
checking for Sablotron libraries in the default path... found in
configure: error: not found. Please re-install the Sablotron distribution.

Thanks again,
Ghislain


Dunno offhand - are you using an up-to-date version of sablotron, installed
into a standard location (/usr is normally a good bet)?

Might be worth installing it again, jsut to make sure all the files are present -
probably depends on whatever the script uses to "find" sablotron. If you're using
a package system (like rpm), make sure you've got sablotron-devel (the header files)
as well as sablotron proper

Jul 16 '05 #9

P: n/a
Hi Matty,
I have installed sablotron-1.0-1.src.rpm and still it doesn't work => I
give up..
Now, I'm thinking of using DOMXML. And installation works ! BUT here is
what I get when I use my first DOMXML's function :
Call to undefined function: domxml_xslt_stylesheet_file()
Do I have to change something in php.ini.
Here is my configure command (that worked) :
'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu'
'--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-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-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-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-versioning' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--enable-mcal'
'--with-apxs=/www/bin/apxs' '--with-dom=shared' '--with-dom-xslt=shared'
'--with-dom-exslt=shared'
Thanks,
Ghislain

Jul 16 '05 #10

P: n/a
Hello everybody,
Now, I'm trying to use DOMXML. Installation works BUT here is what I
get when I use my first DOMXML's function :
Call to undefined function: domxml_xslt_stylesheet_file()
Do I have to change something in php.ini ?
Here is my configure command (that worked) :
'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu'
'--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-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-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-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-versioning' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--enable-mcal'
'--with-apxs=/www/bin/apxs' '--with-dom=shared' '--with-dom-xslt=shared'
'--with-dom-exslt=shared'
I use :

* redhat 8

* apache 1.3.28
* php 4.3.3

Thanks,
Ghislain
Jul 16 '05 #11

P: n/a
Hi Ghislain

Comments and previous message not necessarily in the right order!
Now, I'm thinking of using DOMXML. And installation works ! BUT here is
what I get when I use my first DOMXML's function :
Call to undefined function: domxml_xslt_stylesheet_file()
Do I have to change something in php.ini.
This means that you haven't compiled PHP with DOMXML support (or possibly
that you didn't install the module/binary or that you didn't restart the
webserver process after install)
Hi Matty,
I have installed sablotron-1.0-1.src.rpm and still it doesn't work => I
give up..


You don't install a .src.rpm file directly - do this:

rpm --rebuild sablotron-1.0-1.src.rpm | tee -a rpmbuildlog

Assuming it worked ok, and didn't ask you to install any other packages ;-),
do this:

grep -Ei 'Wrote .+.rpm$' rpmbuildlog

This will show you the rpms that you have compiled, which you will need to install
as usual, something like

rpm -Uvh /usr/src/redhat/RPMS/i386/sablotron-*.rpm

Then try and compile php again!!!

HTH

Matt
Jul 16 '05 #12

P: n/a
It works !! (sablotron installation)
Thank you so much !
By the way, the ultimate drag I encountered was redhat's rpm command
which doesn't know the --rebuild option. I had to use rpmbuild --rebuild.
IDH (it did help)
Ghislain
matty wrote:
Hi Ghislain

Comments and previous message not necessarily in the right order!

Now, I'm thinking of using DOMXML. And installation works ! BUT here is
what I get when I use my first DOMXML's function :
Call to undefined function: domxml_xslt_stylesheet_file()
Do I have to change something in php.ini.

This means that you haven't compiled PHP with DOMXML support (or possibly
that you didn't install the module/binary or that you didn't restart the
webserver process after install)

Hi Matty,
I have installed sablotron-1.0-1.src.rpm and still it doesn't work => I
give up..

You don't install a .src.rpm file directly - do this:

rpm --rebuild sablotron-1.0-1.src.rpm | tee -a rpmbuildlog

Assuming it worked ok, and didn't ask you to install any other packages ;-),
do this:

grep -Ei 'Wrote .+.rpm$' rpmbuildlog

This will show you the rpms that you have compiled, which you will need to install
as usual, something like

rpm -Uvh /usr/src/redhat/RPMS/i386/sablotron-*.rpm

Then try and compile php again!!!

HTH

Matt

Jul 16 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.