LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-01-2007, 07:18 PM   #1
linux-n00b
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 5
Posts: 13

Rep: Reputation: 0
Sudden Compiling Errors


Hey everyone,

I've been using FC5 for about 3 months now, so I'm not a complete n00b, but I have managed to stumble into a hole and am having trouble digging myself out. Hopefully someone in here can lend me a hand.

I have never had a problem compiling from source until a few days ago. I installed a few RPM's and now when I try to use the "./configure" I get this readout:

Quote:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
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
Now, it says that it cannot find GCC, but I know that I have it installed (I was able to compile files before). Could any of the RPM's that I installed (Azureus, Xine, or libdvdcss) have "re-arranged" something?

I searched the forums before starting this new thread, but it seems everyone else who had this problem was either using FC3 or didn't have GCC installed previously.

Any insight would be greatly appreciated.
 
Old 02-01-2007, 07:43 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
None of the packages Azureus, Xine, or libdvdcss should have affected your compiler. What do you get as the output of:
Code:
which {g,}cc
 
Old 02-01-2007, 07:54 PM   #3
linux-n00b
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 5
Posts: 13

Original Poster
Rep: Reputation: 0
Re:

Hey, thanks for such a fast response!

The output is:

Quote:
[root@server ~]# which {g, }cc
/usr/bin/which: no {g, in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/usr/bin/which: no }cc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
 
Old 02-01-2007, 07:58 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
There shouldn't be a space between the comma and the right brace. That command will be expanded by the shell to:
Code:
which gcc cc
It's just checking to see if the problem is with your compiler (ie is it installed) or the package you're working with.
 
Old 02-01-2007, 08:02 PM   #5
linux-n00b
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 5
Posts: 13

Original Poster
Rep: Reputation: 0
My bad. Here's the output of the right code:

Quote:
[root@server ~]# which {g,}cc
/usr/bin/which: no gcc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
/usr/bin/which: no cc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
 
Old 02-01-2007, 08:27 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
It looks like at least some of your gcc packages have been uninstalled. I don't use Fedora anymore, but running rpm -q | sort should let you see which of the gcc packages are there.
 
Old 02-01-2007, 08:46 PM   #7
linux-n00b
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 5
Posts: 13

Original Poster
Rep: Reputation: 0
Hmm. I wonder how they got uninstalled. I suppose I'll have to re-install gcc and cc right?

Whenever I run that code, I get:

Quote:
[root@server ~]# rpm -q | sort
rpmq: no arguments given for query
 
Old 02-01-2007, 10:33 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Sorry about that - I was trying to remember the syntax for the rpm command and couldn't get it. I think it needs -a as well, but I'm not sure:
Code:
rpm -q -a | sort
 
Old 02-05-2007, 05:56 PM   #9
linux-n00b
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 5
Posts: 13

Original Poster
Rep: Reputation: 0
Yea, I have no idea how my GCC became uninstalled, but none the less, I'll just install the RPM off the cd.

I appreciate all of your help, gilead.
 
Old 02-05-2007, 05:58 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
No problem - hopefully the compile will be painless after that
 
Old 02-06-2007, 05:49 PM   #11
linux-n00b
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 5
Posts: 13

Original Poster
Rep: Reputation: 0
New problem

Alright, well, here's another bump I've seem to run into. When I go to compile, it gives me:

Quote:
[root@server airsnort-0.2.7e]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
The other posts that had the similar "fails sanity check" that are up on LinuxQuestions.org all result from people not having their GCC compiler installed, where, as you can see, mine is.

Ideas?
 
Old 02-06-2007, 09:12 PM   #12
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Is /lib/cpp a symbolic link to /usr/bin/cpp on your system? It may be a different location, but the location the link points to should be the same as the output of which cpp
 
Old 02-07-2007, 01:26 AM   #13
linux-n00b
LQ Newbie
 
Registered: Oct 2006
Distribution: Fedora Core 5
Posts: 13

Original Poster
Rep: Reputation: 0
which cpp gives me:

Quote:
[root@server ~]# which cpp
/usr/bin/cpp
So, I go to make the symbolic link and...

Quote:
[root@server ~]# ln /lib/cpp /usr/bin/cpp
ln: creating hard link `/usr/bin/cpp' to `/lib/cpp': File exists
However, I'm still getting the same error when I go to compile:
Quote:
configure: error: C preprocessor "/lib/cpp" fails sanity check
 
  


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
sudden webserver errors reconfig didnt help roller24 Linux - Networking 3 11-04-2005 11:19 PM
sudden power off when compiling a program rllovera Linux - Hardware 5 01-12-2005 05:33 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Errors compiling boombastic Linux - Newbie 7 08-04-2004 04:09 PM
Errors when compiling anything! adizzle Linux - Newbie 4 06-16-2004 06:27 PM


All times are GMT -5. The time now is 02:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration