[resolved] PHP: using ./configure

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
JasonTC
Forum Commoner
Posts: 92
Joined: Wed Nov 02, 2005 11:05 am
Location: Grand Rapids, MI

[resolved] PHP: using ./configure

Post 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
Last edited by JasonTC on Wed Jan 10, 2007 1:39 pm, edited 1 time in total.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
JasonTC
Forum Commoner
Posts: 92
Joined: Wed Nov 02, 2005 11:05 am
Location: Grand Rapids, MI

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply