php-5.0.4 Installation: what am I missing?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
Lambyte
Forum Newbie
Posts: 2
Joined: Mon Sep 12, 2005 7:41 pm

php-5.0.4 Installation: what am I missing?

Post by Lambyte »

THE GOAL: To use xsl(t) functions with php.

Server info: I'm on dreamhost shared hosting (everybody loves dreamhost) but they don't have php with xsl.

What's the deal: I tried to get xsl working using this guide, but then noticed that they were using php4, and so I was like "Ok screw that" and read up on a little php5. According to the PHP XSL manual page, all I need to do to get it working is include the --with-xsl=$HOME/libxslt tag. Since I'm on a shared server, though, I have to put PHP in the right place, which means a few more simple tags. Here's the ./configure that I came up with, no errors:

Code: Select all

./configure \
--with-prefix=$HOME/php5 \
--with-xsl=$HOME/libxslt \
--enable-force-cgi-redirect \
--with-config-file-path=$HOME/php5/etc/php.ini \
--enable-mysql
But then I go make and it spits out the following after a bunch of normal output:

Code: Select all

/home/[my account]/downloads/src/php-5.0.4/main/output.c:421: undefined reference to `php_ob_gzhandler_check'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
Any idea what the problem is? I've been stuggling with this for a while now.


BONUS QUESTIONS: unnecessary questions that will make me consider you a very nice person if you answer them :]
1. The ./configure gives me a big scary warning if I don't put --enable-force-cgi-redirect in there. What does that do?


The compassion of a thousand merciless suns will rain down upon you if you give me a hand (please).

EDIT: If there is a simpler way to use xslt functions without ASP, then by all means, let me know.
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

see that you have installed al the devel packages properly put this is in google you will get appropriate devel-package
Lambyte
Forum Newbie
Posts: 2
Joined: Mon Sep 12, 2005 7:41 pm

Post by Lambyte »

I asked about this on another forum and it turns out I had to do a make distclean then try again. Also, I was using --with-prefix= in my configure, and the command I was looking for was --prefix=. Thanks anyway
Post Reply