LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2003, 09:08 AM   #1
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
,/configure


Were do i get the help for the configure option?
i can see that there is quit a lot of swithes in the configure command... but no man ./, no man configure, no configure --help
Where is the info?
 
Old 03-30-2003, 09:10 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
Usually
./configure --help
Configure options (most important ones) should be also mentioned in README, INSTALL or FAQ.
 
Old 03-30-2003, 09:13 AM   #3
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
well, i have a:
-bash: ./configure: Nosuch file or directory
when i try that...
 
Old 03-30-2003, 09:15 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Not all programs use the ./configure method all though it is the most common. Is there a README or INSTALL file in the directory that you untarred as Mara said? Its possible that the program uses a script for installing rather then ./configure,make,make install.
 
Old 03-30-2003, 09:42 AM   #5
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
well my putting together a apache, mysql, php server for a php nuke portal.
when i had try to access the index.php page, i seem the have the code of the page so i assumed that the php is not working with apache.
i went back to my howto and it says to issue the fallowing command in apache dir:
./config.status --activate-module=src/modules/php4/libphp4.a
(witch i previously did)
after i when to the php web site for installation proc, it says to issue:
./configure --prefix=/www --enable-module=so

So i assumed that prefix is the root of my web server and i wanted to correct it by issuing from the apache dir:
./configure --prefix=/opt/apache --enable-module=so

this is were i stand.
 
Old 03-30-2003, 09:48 AM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
If I understand you correctly, you are trying to install php. If so, you would not issue the ./configure command from the apache directory. You would issue it from the directory that you are installing php from. If you unpacked it into say /home/user then you would have to go into the /home/user/php* directory and issue the ./configure command.
 
Old 03-30-2003, 09:59 AM   #7
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
yes, that i did it to. The command i had to do when installin g php was:

./configure --with-mysql --with-apache=/opt/src/apache_1.3.27 enable-track-vars

i did that.

but see here at exemple 3.5:
http//:www.php.net/manual/en/install.apache.php

this is that is said:
Example 3-5. Installation Instructions (Apache Shared Module Version) for PHP 4

1. gunzip apache_xxx.tar.gz
2. tar -xvf apache_xxx.tar
3. gunzip php-xxx.tar.gz
4. tar -xvf php-xxx.tar
5. cd apache_xxx
6. ./configure --prefix=/www --enable-module=so
7. make
8. make install
9. cd ../php-xxx
10. ./configure --with-mysql --with-apxs=/www/bin/apxs
11. make
12. make install
 
Old 03-30-2003, 10:02 AM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Did you check your httpd.conf file. The instructions say to do this:

AddType application/x-httpd-php .php

LoadModule php4_module libexec/libphp4.so

The instructions from php's site have you totally re-installing apache. I don't think that is necessary in order to add php support.
 
Old 03-30-2003, 10:06 AM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
Which directory are you in when you try to run configure? You need Apache source, not binary directory.
 
Old 03-30-2003, 10:37 AM   #10
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
You were write mara i was from the bin dir...

i just did add the lines in httpd.conf and restart the server but still see the php coded page...

does my deduction is good by wanting to issue:
./configure --prefix=/opt/apache --enable-module=so
in the 3opt3src/apache_1.3.27 directory?

btw will anything i do overwrite or alter previous command i issued?
 
Old 03-30-2003, 11:35 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
Quote:
Originally posted by c0c0deuz

does my deduction is good by wanting to issue:
./configure --prefix=/opt/apache --enable-module=so
in the 3opt3src/apache_1.3.27 directory?
If it's your Apache source dir, yes.

Quote:
btw will anything i do overwrite or alter previous command i issued?
Yes, it will. If you'd like to keep older version, copy it to another directory.
 
Old 03-30-2003, 12:25 PM   #12
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Yes,OK ... but where is it?
when i issue ./configure where do the config goes?
 
Old 03-30-2003, 12:55 PM   #13
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
Quote:
Originally posted by c0c0deuz
Yes,OK ... but where is it?
when i issue ./configure where do the config goes?
To the directory you're in (when you run ./configure, you're in the same directory configure's in). But if you try to run it different way (/some/directory/configure) it shouldn't work. Configure doesn't write only to the main directory. It creates makefiles in all project directories.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
How to use GNU autoconf to generate a new configure from configure.in ?? vanhelsing Programming 5 08-05-2004 10:02 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM


All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration