473,224 Members | 1,509 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

PHP install : rpm or compile ?

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
12 12847
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
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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kurt | last post by:
Hi, I tried to compile my php 4.3.9 with snmp support but it won't work. Compiling Net-SNMP always worked good --> I tried the 5.2rc4 and also the older version 5.1.2 successfully so far. I use...
4
by: Vince | last post by:
I'm getting this message when I try and run a .net web app in the development system: CS0016: Could not write to output file 'c#:\windows nt\Microsoft..net framework\v1.1.4322\Temporary ASP.NET...
1
by: Dune | last post by:
Hi, I am trying to install gcc 2.95 to my laptop so that I can compile some legacy c++ codes for my project. My DELL 600m laptop currently has a Fedora Core 4, and the compilers come with it are...
2
by: Earnshaw, Peter J | last post by:
I currently have postgresql-7.3.4-3.rh19 installed and need to compile with options: --enable-multibyte and --enable-unicode. I also need to compile up the JDBC drivers --with-java to create the...
6
by: Tom | last post by:
I am developing my pages on my development machine and then copying to the production server. I am not pre-compiling, I am using the 'dynamic compile' feature. This is working fine except that...
9
by: kotori | last post by:
Hi, i'm looking for a C++ compiler that I can run straight off of a USB Thumbdrive for compiling my applications on-the-go. I currently use both dev-cpp and MSVS8 at home, but I desperately need...
4
by: Christopher Taylor | last post by:
Hello all, Being relatively new to linux I'm a little confused about what options I need to use to build python from source. Currently, I have python installed as part of the inital RHEL4 load...
0
by: dot | last post by:
I spent a few headache filled days trying to use GMP on windows (XP pro) I finally got it to work and since I found little help on the Web I thought someone might find what i did useful. ...
2
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.