LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 10-02-2004, 02:52 PM   #1
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

Rep: Reputation: 15
Question no acceptable C compiler found in $PATH ?...I can't make.


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.
 
Old 10-02-2004, 04:50 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
You need a C compiler installed to compile C code (!) Did you install the gcc package?
 
Old 10-03-2004, 01:01 AM   #3
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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.
 
Old 10-03-2004, 01:37 AM   #4
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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.
 
Old 10-03-2004, 05:39 PM   #5
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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?
 
Old 10-03-2004, 05:50 PM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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)
 
Old 10-03-2004, 07:31 PM   #7
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

Original Poster
Rep: Reputation: 15
linux:~ # updatedb
bash: updatedb: command not found

Hmm. =\ Why is my computer not liking me?
 
Old 10-03-2004, 07:33 PM   #8
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
what does "echo $PATH" say?
 
Old 10-03-2004, 07:41 PM   #9
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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?
 
Old 10-03-2004, 08:00 PM   #10
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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.
 
Old 10-03-2004, 08:09 PM   #11
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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.)
 
Old 10-03-2004, 08:17 PM   #12
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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?
 
Old 10-03-2004, 08:52 PM   #13
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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.
 
Old 10-03-2004, 09:09 PM   #14
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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)
 
Old 10-03-2004, 09:18 PM   #15
jimothy05
Member
 
Registered: Sep 2004
Posts: 41

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

I can't find that file it needs from that list.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 10:04 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
Open Source Consulting | Domain Registration