no acceptable C compiler found in $PATH ?...I can't make.
Linux - DistributionsThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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)
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.
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.)
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?
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.