LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-23-2003, 12:53 PM   #1
cfitzgerald
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
New User, ./configure error, installing Apache2


Hello,

I am pretty much a Linux newbie, so I appreciate your help.

I am trying to setup Apache on Mandrake 9.1 using the KDE desktop. I have been able to download and extract the files, but I am having a problem compiling. When I use the ./configure command I get an error: "C compiler cannot create executables".

Here is the exact command I used:

$ CC="pgcc" \
./configure --prefix=/sw/pkg/apache

(I got this right off the Apache Project Site)
OK. I know the CC part tells the system which C Compiler to use, so maybe I am using the wrong one.

Any suggestions?

Thanks In Advance!
 
Old 10-23-2003, 01:00 PM   #2
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: New User, ./configure error, installing Apache2

Quote:
Originally posted by cfitzgerald
problem compiling. When I use the ./configure command I get an error: "C compiler cannot create executables".

Here is the exact command I used:

$ CC="pgcc" \
./configure --prefix=/sw/pkg/apache

OK. I know the CC part tells the system which C Compiler to use, so maybe I am using the wrong one.
You are indeed possibly using the wrong compiler. Check whether there is such a beast as 'pgcc' on your system with 'which pgcc'. If that does not return a file path, you don't have pgcc in your path, and configure will not find the compiler.

If 'which gcc' does return a file path (e.g. /usr/bin/gcc), then gcc is your compiler, and things should start rolling with CC=gcc.

If that does not help, have a look in the config.log file, which details the exact commands that led to the error, and the system error message that occured.
 
Old 10-23-2003, 02:41 PM   #3
cfitzgerald
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your response!
I tried checking for compilers using the 'which' command as you suggested. Results:

$ which gcc
which: no gcc in (/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/cd_789/bin)

Does this mean I have to C Compiler on the system. If that is true then why do I see this when I use the CC="gcc" option before ./configure:

checking for gcc... gcc

If I do not use the CC="gcc" option, only ./configure --prefix=/sw/pkg/apache2
I get this message:

checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH

Could you also explain what '$PATH' is...I am guessing it like a Windows Environment variable like %SystemRoot% or something.

Thanks Again!
 
Old 10-23-2003, 02:51 PM   #4
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by cfitzgerald

$ which gcc
which: no gcc in (/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/cd_789/bin)
Does this mean I have to C Compiler on the system. If that is true then why do I see this when I use the CC="gcc" option before ./configure:

checking for gcc... gcc
It does look like you're compiler-less. The configure finds gcc because you told it the compiler is gcc. It would bomb out later when it tries to compile a test program.


Quote:

Could you also explain what '$PATH' is...I am guessing it like a Windows Environment variable like %SystemRoot% or something.
$PATH is indeed an environment variable. It lists the directories your shell will look in for executables. You can set it with setenv for a csh like shell or export VARIABLE=... for a ksh/bash like shell.
 
  


Reply



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 error while installing tar gz file kitsune55 Linux - Software 1 04-20-2005 08:29 AM
Installing evolution email, error during configure - db.h donbellioni Linux - Software 11 08-16-2004 10:34 PM
[pkgconfig] Error in ./configure; bad directory (where I'm Installing from) sitmex Linux - Software 1 05-20-2004 05:56 PM
error installing hping2 ./configure ewlnxnewB Linux - Software 4 11-19-2003 04:37 AM
configure for installing apache2 tommy916 Linux - Software 0 10-28-2003 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 PM.

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
Open Source Consulting | Domain Registration