LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2011, 09:16 PM   #1
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Rep: Reputation: 53
Wrestling with XML objects in PHP!


I'm trying to enable the processing of XML with XSLT from PHP. To do that I need the XSL extension enabled. I'm running CentOS 5.

"No Nonsense XML Web Development," reads, "[The XSL extension] isn't enabled by default; so you'll need to compile it in using --with-xsl on Unix-style installations."

Again, http://www.php.net/manual/en/xsl.installation.php:

Quote:
PHP 5 includes the XSL extension by default and can be enabled by adding the argument --with-xsl[=DIR] to your configure line. DIR is the libxslt installation directory.
What does this mean? What's "the configure line?" Where do I use, "--with-xsl[=DIR]"? Your help is appreciated.

Last edited by bluegospel; 08-19-2011 at 02:04 PM.
 
Old 08-19-2011, 04:44 AM   #2
farshidlk
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
seems you will need to compile PHP yourself rather than install it by rpm -i command.

to do so extract the PHP package with "tar xzf <php-x.y.tar.gz>" or "tar xjf <php-x.y.tar.bz2>" if it is compressed with bzip2.

then cd to the extracted PHP directory and type:

./configure --help (to see what compilation options are available)
./configure --with-xsl (to enable xsl as per their instruction)
then type:
make

and then:

make install

you can take a look at

http://www.tuxfiles.org/linuxhelp/softinstall.html

hope it helps
 
Old 08-19-2011, 12:09 PM   #3
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by farshidlk View Post
seems you will need to compile PHP yourself
Thanks farshidlk. I didn't mention that PHP is installed already. Sorry about that. I just don't have the functionality to produce (or read in) xml objects from within PHP, which if I understand correctly, requires enabling the XSL extension by compiling it using --with-xsl.

So should I still take this recommended course of build-make-install? If so, which directory should I be in when I run ./configure? Thanks again.
 
Old 08-19-2011, 02:05 PM   #4
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
I'm really struggling with this. Can somebody lend me their knowledge?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] OpenSSL PHP extension have to be enabled to use extension repository system. jsaravana87 Linux - Server 2 09-09-2011 01:00 AM
XRender extension enabling corbis_demon Linux - General 1 10-06-2004 04:41 AM
XML and XSL Kedelfor Programming 4 09-13-2004 06:30 PM
Enabling transparency in Xorg 6.8.0 with composite extension...?! SBing Linux - Software 8 09-12-2004 10:09 AM
Need help installing docbook-xsl [docbook xsl stylesheet kmguy Linux - Software 0 09-10-2004 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration