473,405 Members | 2,444 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,405 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 12858
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 : $...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.