Connecting Tech Pros Worldwide Help | Site Map

PHP install : rpm or compile ?

Ghislain Benrais
Guest
 
Posts: n/a
#1: Jul 17 '05
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

Martin Wickman
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP install : rpm or compile ?


In article <3F3E0A86.2090207@NOSPAM.freesurf.fr>, Ghislain Benrais wrote:[color=blue]
> 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.[/color]

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.
Tim Miller
Guest
 
Posts: n/a
#3: Jul 17 '05

re: PHP install : rpm or compile ?


In article <3F3E0A86.2090207@NOSPAM.freesurf.fr>,
Ghislain Benrais <gbenrais@NOSPAM.freesurf.fr> wrote:[color=blue]
>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.[/color]

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


matty
Guest
 
Posts: n/a
#4: Jul 17 '05

re: PHP install : rpm or compile ?


Tim Miller wrote:
[color=blue]
> 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[/color]

No, you can actually compile your own rpm binary packages, and then install
them.
[color=blue]
> 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[/color]
DvDmanDT
Guest
 
Posts: n/a
#5: Jul 17 '05

re: PHP install : rpm or compile ?


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: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
"matty" <matt+nntp@askmenoquestions.co.uk> skrev i meddelandet
news:Ypu0b.9059$z7.1083715@wards.force9.net...[color=blue]
> Tim Miller wrote:
>[color=green]
> > RPM does not actually compile the packages on your local system, it's[/color][/color]
just[color=blue][color=green]
> > a format for installing premade binaries. I'm guessing that since you've[/color]
>
> No, you can actually compile your own rpm binary packages, and then[/color]
install[color=blue]
> them.
>[color=green]
> > 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[/color][/color]


matty
Guest
 
Posts: n/a
#6: Jul 17 '05

re: PHP install : rpm or compile ?


Ghislain Benrais wrote:
[color=blue]
> 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[/color]

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

Ghislain Benrais
Guest
 
Posts: n/a
#7: Jul 17 '05

re: PHP install : rpm or compile ?


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:[color=blue]
> Ghislain Benrais wrote:
>
>[color=green]
>>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[/color]
>
>
> 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
>[/color]


matty
Guest
 
Posts: n/a
#8: Jul 17 '05

re: PHP install : rpm or compile ?


Ghislain Benrais wrote:
[color=blue]
> Thanks matty,
> But I had already tried that and it doesn't work.
> Here is my configure command :[/color]

Well, you could try doing

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

and then post the *RELEVANT* parts of configurelog, along
with your command line, in here
matty
Guest
 
Posts: n/a
#9: Jul 17 '05

re: PHP install : rpm or compile ?


Ghislain Benrais wrote:
[color=blue]
> matty wrote:[color=green]
>> Ghislain Benrais wrote:
>>
>>[color=darkred]
>>>Thanks matty,
>>>But I had already tried that and it doesn't work.
>>>Here is my configure command :[/color]
>>
>>
>> Well, you could try doing
>>
>> ./configure .... | tee -a configurelog
>>
>> and then post the *RELEVANT* parts of configurelog, along
>> with your command line, in here[/color]
>
> 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[/color]

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

Ghislain Benrais
Guest
 
Posts: n/a
#10: Jul 17 '05

re: PHP install : rpm or compile ?


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

Ghislain Benrais
Guest
 
Posts: n/a
#11: Jul 17 '05

re: PHP install : rpm or compile ?


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


matty
Guest
 
Posts: n/a
#12: Jul 17 '05

re: PHP install : rpm or compile ?


Hi Ghislain

Comments and previous message not necessarily in the right order!
[color=blue]
> 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.[/color]

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)
[color=blue]
> Hi Matty,
> I have installed sablotron-1.0-1.src.rpm and still it doesn't work => I
> give up..[/color]

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
Ghislain Benrais
Guest
 
Posts: n/a
#13: Jul 17 '05

re: PHP install : rpm or compile ?


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:[color=blue]
> Hi Ghislain
>
> Comments and previous message not necessarily in the right order!
>
>[color=green]
>>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.[/color]
>
>
> 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)
>
>[color=green]
>>Hi Matty,
>>I have installed sablotron-1.0-1.src.rpm and still it doesn't work => I
>>give up..[/color]
>
>
> 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[/color]


Closed Thread