LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-02-2004, 03:52 PM   #1
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0
Question no acceptable C compiler found in $PATH ?...I can't make.


[Log in to get rid of this advertisement]
Code:
jim@linux:~/Documents/gaim-1.0.0> ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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)... no
checking for sed... /usr/bin/sed
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
See `config.log' for more details.
That happened when I was attempting to do the "make" command. I don't know what that error message meant or how to fix it. What should I do?

I'm running SuSE 9.1 Personal.

Thanks,
-Jim.
jimothy05 is offline     Reply With Quote
Old 10-02-2004, 05:50 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
You need a C compiler installed to compile C code (!) Did you install the gcc package?
CroMagnon is offline     Reply With Quote
Old 10-03-2004, 02:01 AM   #3
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0

Original Poster
yeah, I installed and reinstalled the gcc package and still no luck. Should I just reformat my hard drive and do a fresh SuSE install? I don't know why this isn't working.
jimothy05 is offline     Reply With Quote
Old 10-03-2004, 02:37 AM   #4
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
What happens if you type gcc on the command line instead of ./configure? It should say "gcc: no input files". If it doesn't, find out where gcc is installed (locate bin/gcc) and add that to your PATH.
CroMagnon is offline     Reply With Quote
Old 10-03-2004, 06:39 PM   #5
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0

Original Poster
still nothing =\

If I type gcc in the terminal, I get: "bash: gcc: command not found"

I just installed the OS. Shouldn't everything be there?

I also checked the Packages, and cpp and libgcc are installed apparently. I need to be able to install programs. lol. What should I do from here?
jimothy05 is offline     Reply With Quote
Old 10-03-2004, 06:50 PM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
as root, run 'updatedb' and then 'locate bin/gcc' - this should tell you whether you have the gcc binary installed.

You only need a compiler to build software from source - you can install packages without a compiler, so usually it is not a required base element. If you don't find gcc above, double check the list of packages that have gcc in the title - you may not have installed the right one (there are a few, for example gcc-java is only the java component of the compiler - it shouldn't install without the core C compiler, but you never know)
CroMagnon is offline     Reply With Quote
Old 10-03-2004, 08:31 PM   #7
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0

Original Poster
linux:~ # updatedb
bash: updatedb: command not found

Hmm. =\ Why is my computer not liking me?
jimothy05 is offline     Reply With Quote
Old 10-03-2004, 08:33 PM   #8
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
what does "echo $PATH" say?
CroMagnon is offline     Reply With Quote
Old 10-03-2004, 08:41 PM   #9
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0

Original Poster
Code:
linux:~ # echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin
What does all that mean?
jimothy05 is offline     Reply With Quote
Old 10-03-2004, 09:00 PM   #10
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
Those are the directories that will be searched for commands when you type them. So it seems like this is fine, you just don't have updatedb/locate installed.

Try this:
find / -name gcc
(it may take a while if you have a large filesystem) this will definitely tell you if you have gcc installed anywhere, but right now I think you probably don't have the right package installed.
CroMagnon is offline     Reply With Quote
Old 10-03-2004, 09:09 PM   #11
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0

Original Poster
linux:~ # find / -name gcc
find: /media/dvd: No medium found
find: /media/cdrecorder: No medium found

Hmm. Cool. Alright. gcc and libgcc are already installed according to the package manager. What's next?
(Thank you for helpin me out with this. This seems hopeful.)
jimothy05 is offline     Reply With Quote
Old 10-03-2004, 09:17 PM   #12
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
So the package manager definitely says gcc-3.x.x or gcc-2.x.x is installed, but there is no gcc anywhere on the system? What other packages can you choose from that have gcc in the name?

Did you set up multiple partitions that might not be mounted?
what do "cat /etc/fstab" and "mount" say?
CroMagnon is offline     Reply With Quote
Old 10-03-2004, 09:52 PM   #13
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0

Original Poster
Code:
linux:~ # cat /etc/fstab
/dev/hda2            /                    reiserfs   acl,user_xattr        1 1
/dev/hda1            /windows/C           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb5            /windows/D           vfat       users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/hda5            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/cdrecorder      /media/cdrecorder    subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvd             /media/dvd           subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
Code:
mount
/dev/hda2 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda1 on /windows/C type ntfs (ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8)
/dev/hdb5 on /windows/D type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,iocharset=utf8)
/dev/hdd on /media/cdrecorder type subfs (ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8)
/dev/hdc on /media/dvd type subfs (ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8)
usbfs on /proc/bus/usb type usbfs (rw)
I don't think it should have anything to do with my partitions.
hda1 is my windows xp, hda2 is linux, hdb is my backup hard drive.

The only gcc packes I have installed and are available are: gcc, libgcc.
jimothy05 is offline     Reply With Quote
Old 10-03-2004, 10:09 PM   #14
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 894
Thanked: 5
Nope, that all looks fine. I have to assume your packages are duds - there are definitely more gcc packages available than just those two - gcc-g++, gcc-java and gcc-objc for example. You can see them listed here ftp://ftp.suse.com/pub/suse/i386/9.1/suse/i586/

Try downloading that gcc-3.3.3-41 rpm, and then install it (remove the installed one if you need to)
CroMagnon is offline     Reply With Quote
Old 10-03-2004, 10:18 PM   #15
jimothy05
Member
 
Registered: Sep 2004
Posts: 41
Thanked: 0

Original Poster
http://img.photobucket.com/albums/v4.../snapshot1.jpg

I can't find that file it needs from that list.
jimothy05 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 acceptable C compiler found in $path scottown Red Hat 10 11-19-2008 05:37 AM
no acceptable C compiler found in $PATH sinXposed Linux - Software 4 08-10-2006 03:14 PM
no acceptable C compiler found in $PATH rhraz Mandriva 9 08-01-2006 08:03 PM
no acceptable C compiler found in $PATH ?...I can't make. jimothy05 Mandriva 6 02-19-2005 06:25 PM
no acceptable C compiler found in $PATH skrothuset Linux - Newbie 4 06-13-2003 07:11 AM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration