Using configure to install function support

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

Using configure to install function support

Post 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:

Code: Select all

'--with-sybase-ct=/opt/sybase'
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.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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 :)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Is this urgent?
I make next week the "try some other ditros"-week but need my notebook as it is this weekend.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

I wonder if this might be of help:
http://rpmfind.net/linux/rpm2html/searc ... mit=Search+...
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

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

Post by RobertGonzalez »

Weirdan wrote:I wonder if this might be of help:
http://rpmfind.net/linux/rpm2html/searc ... mit=Search+...
I do believe that is what I needed. Now on to the dependencies. This really sucks...
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

on Gentoo it's as easy as this..

Code: Select all

# USE="apache2 sybase" emerge php
Go make a cuppa tea, come back and it's done. If it's not already installed, it will also install apache2 :P
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Isn't emerge similar to yum on Fedora (or is the RPM system)?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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 :)
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Indeed, I love it 8)

But waiting 15hours for KDE to compile get's a bit boring :P
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Jenk wrote:Indeed, I love it 8)

But waiting 15hours for KDE to compile get's a bit boring :P
Try waiting almost 3 days for OpenOffice to compile. Ouch. My old laptop didn't like that much 8O
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

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