Page 1 of 1
Using configure to install function support
Posted: Wed Sep 20, 2006 4:55 pm
by RobertGonzalez
Now to my next travail in Linux. If you haven't figured this out, I am no Linux guru yet. I'm working on it. And with the help of you fine people I'll get there yet.
We just installed Fedora Core 5 as a development environment and I am trying to get PHP configured in a way that works. A php_info() of our current install of PHP4 (on a other box) shows that the configure command has this in it:
According to the PHP Manual, in order to use the Sybase functions (which I am going to need) PHP needs to be configured with that flag. How do I add that flag to PHP5 in Linux? I am on Fedora Core 5. Thanks.
Posted: Thu Sep 21, 2006 2:52 am
by Jenk
http://www.php.net/manual/en/install.unix.apache2.php
When you do the ./configure stage (step 10 in the list), add the flag there
Code: Select all
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-sybase-ct=/opt/sybase --with-mysql
If you are using Fedora's auto fetch program, I believe is apt-get? I'm not sure if it takes optional args at install.. I prefer to manual compile my sources anyway

Posted: Thu Sep 21, 2006 4:48 am
by volka
Is this urgent?
I make next week the "try some other ditros"-week but need my notebook as it is this weekend.
Posted: Thu Sep 21, 2006 10:16 am
by RobertGonzalez
Urgent? Yes. I am leaving for vacation for two weeks as of next Monday and I am tasked with giving the hobbyists their portion of the server to play in. We all need Sybase functions so I need to make sure they have that for next week.
When I looked at using ./configure I keep getting a message that the command is not found. I am more than certain that I am doing something wrong. I just don't know what that something is.
Posted: Thu Sep 21, 2006 10:22 am
by Weirdan
Posted: Thu Sep 21, 2006 11:13 am
by Jenk
when using ./configure you need to be in the directory in which the configure script exists. The './' is saying 'from this directory'
I believe, can't can't remember exactly, they are in the bin directory when you have untar'd the php source.
Download the tar/bzip
source files from php.net
Code: Select all
# tar vxf <name of php source file> /usr/src
then cd into /usr/src/php*/bin
you can then run:
Code: Select all
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-sybase-ct=/opt/sybase --with-mysql
# make && make install
remember to replace /opt/sybase with the location in which you have sybase installed (sometimes /usr/bin/sybase)
Posted: Thu Sep 21, 2006 12:03 pm
by RobertGonzalez
I do believe that is what I needed. Now on to the dependencies. This really sucks...
Posted: Sat Sep 23, 2006 7:22 pm
by Jenk
on Gentoo it's as easy as this..
Go make a cuppa tea, come back and it's done. If it's not already installed, it will also install apache2

Posted: Sat Sep 23, 2006 9:17 pm
by RobertGonzalez
Isn't emerge similar to yum on Fedora (or is the RPM system)?
Posted: Sat Sep 23, 2006 9:28 pm
by Jenk
It's a package manager, so I guess so
with emerge I can keep a personlised list of flags (USE keywords) so everytime I emerge something it will be tailored to my needs
Only downside of course is everything is compiled on my machine, not pre-compiled packages like apt-get or rpm, thus it takes longer to install.
Posted: Sun Sep 24, 2006 9:24 am
by Weirdan
Jenk wrote:Only downside of course is everything is compiled on my machine, not pre-compiled packages like apt-get or rpm, thus it takes longer to install.
After running Ubuntu & FreeBSD side-by-side I would consider this to be advantage

Posted: Sun Sep 24, 2006 11:25 am
by Jenk
Indeed, I love it
But waiting 15hours for KDE to compile get's a bit boring

Posted: Sun Sep 24, 2006 11:51 am
by Chris Corbyn
Jenk wrote:Indeed, I love it
But waiting 15hours for KDE to compile get's a bit boring

Try waiting almost 3 days for OpenOffice to compile. Ouch. My old laptop didn't like that much

Posted: Sun Sep 24, 2006 12:06 pm
by Jenk
lol, that was the next thing on my list to compile.
It took about 3 hours for me to realise why Gentoo has the motto: "If it moves, compile it."