LinuxQuestions.org
Help answer threads with 0 replies.
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 12-14-2006, 09:32 AM   #1
Atomtomate
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 0
compiler not found


hi,
i set up a new root server with SuSE 10.0. as i tried to compile the source for some programs i got following error message "configure: error: no acceptable cc found in $PATH" but the gcc compiler IS installed under /usr/lib/gcc/i586-suse-linux/4.0.2/
i couldn`t even reinstall it due t the fact i didn`t find any .rpm packeges and everything i found was about desktop systems with YAST.


would be nice if anybody could help me

Atomtomate
 
Old 12-14-2006, 10:01 AM   #2
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
please give the output of:
Code:
which gcc
 
Old 12-14-2006, 10:03 AM   #3
Atomtomate
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
there is no output the cursor just jumps into the next line.
 
Old 12-14-2006, 10:08 AM   #4
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
that means it isn't in your path. mine looks like:
Code:
steve@localhost ~ $ which gcc
/usr/bin/gcc
this may not fix your problem but maybe as root:

Code:
ln -s /usr/lib/gcc/i586-suse-linux/4.0.2/gcc /usr/bin/gcc
then at least it should be able to find it. alternatively you could change your $PATH.
 
Old 12-14-2006, 10:08 AM   #5
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
ok, as root:
please paste the output of:
Code:
echo $PATH
if you see /usr/bin/ in the path then try:

Code:
ln -sf /usr/lib/gcc/i586-suse-linux/4.0.2/gcc /usr/bin/gcc
ln -s /usr/bin/gcc /usr/bin/cc
 
Old 12-14-2006, 10:13 AM   #6
Atomtomate
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
echo $PATH output was
Code:
/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
suse100m:/usr/local/gcc-4.1.1 # ln -sf /usr/lib/gcc/i586-suse-linux/4.0.2/gcc /usr/bin/gcc
so entered both comamnds, nothing changed, i still get the same error.
 
Old 12-14-2006, 12:29 PM   #7
Atomtomate
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
the links were created, i tried to copy the whole gcc (cc1 file) to the bin directory, still the same error. it`s not a error of this program, too. i tried it with two different.

hope anybody can help me with this. I want to get my servers online today... links are welcome, too

/edit after copiing the gcc file into the bin directory something changed:
Code:
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking whether cc accepts -g... no
there it stops....

Last edited by Atomtomate; 12-14-2006 at 12:36 PM.
 
Old 12-15-2006, 01:05 AM   #8
skullmunky
Member
 
Registered: Aug 2003
Posts: 42

Rep: Reputation: 15
another solution: download suse 10.1 and re install. gcc is so fundamental that if there's something awry with it, this might be faster than trying to fix it, especially if this is a new server anyway.
 
Old 12-15-2006, 02:32 AM   #9
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
I agree with the last post.

Better to have the system in a known working state before you turn it into a full server!
 
Old 12-15-2006, 09:56 AM   #10
Atomtomate
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
that would take days again -.- is there no way to fix the problem in another way?
 
Old 12-15-2006, 12:07 PM   #11
Atomtomate
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
my host told me there wouldn`t be a gcc compiler anymore in the new SuSE version(sounds strange, i know -.-) so i just have the cahnce to solve this without reinstalling.perhaps reinstalling the gcc package would help, does anybody have a link to a .rpm package working for SuSE 10.x?

Last edited by Atomtomate; 12-15-2006 at 12:10 PM.
 
Old 12-15-2006, 01:21 PM   #12
skullmunky
Member
 
Registered: Aug 2003
Posts: 42

Rep: Reputation: 15
i just saw a similar problem from a student who was having a hard time installing the NVIDIA driver - namely, no gcc so no ability to compile anything. turns out it was because the default install options (suse 10.1 original release) didn't actually include the compiler. we put the dvd back in & installed it, much better now.

if you don't want to do a full re-install, there might be an online repository via novell; opensuse.org has the repositories for 10.1 and 10.2 but you're on 10.0, right?

do you still have the installer discs?

i doubt there wouldn't be a gcc compiler included in newer versions of suse. your host might be mistaking gcc for something else.
 
Old 12-15-2006, 02:12 PM   #13
Atomtomate
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
as i said we are talking about a root server. this machine actually has no cd-rom drive and i don`t have any chance to install something from another source than a file
 
  


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
No C Compiler found in $PATH fueldistributa Linux - Newbie 2 05-16-2006 06:59 PM
no acceptable C compiler found OsirisX Linux - Software 1 02-10-2005 08:06 PM
No C compiler found in $path dstjames Linux - Newbie 1 11-17-2004 09:36 AM
no acceptable C compiler found ioannisss Linux - Newbie 5 08-27-2004 11:59 AM
Looking for C++ compiler... none found! klod Debian 3 08-26-2003 07:10 AM

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

All times are GMT -5. The time now is 05:31 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