Page 1 of 1

[resolved] PHP: using ./configure

Posted: Wed Jan 10, 2007 11:33 am
by JasonTC
I'm on Debian Linux, using PHP5.
I have a certain package missing from my PHP installation and I need to reinstall with that package included. I understand that I need to do something like

Code: Select all

./configure --with-xsl
before I do my

Code: Select all

apt-get install php5
According to some site I found, I need to be in my PHP directory in order to use the configure program. I would always get a "No such file or directory" message when I tried ./configure. To be honest, I'm not even sure how to know what my PHP directory is. So my questions are:

1. How do I know what my PHP directory is?
2. Am I correct in my understanding of how to install a certain package?

Thanks,
Jason

Posted: Wed Jan 10, 2007 12:32 pm
by pickle
I'm not really versed in Debian. However, in my experience, you only need to run ./configure when you're compiling code. Packages are pre-compiled so ./configure won't do anything.

Posted: Wed Jan 10, 2007 12:47 pm
by RobertGonzalez
Can you use PEAR/PECL to install the extension? Then you won't have to rebuild PHP, unless you built it to begin with. Otherwise, the PEAR and PECL repositories are a pretty good way to get extensions loaded into your current build.

Posted: Wed Jan 10, 2007 12:57 pm
by JasonTC
You got me thinking down the right track.

Code: Select all

apt-get install php5-xsl
turned out to be the solution. Thanks.

Posted: Wed Jan 10, 2007 3:01 pm
by RobertGonzalez
You got it. I don't typically recommend precompiled binary installs (because I caught so much flack when I was using them :( ), but if you got it working, good for you.