There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming hard drive hardware hdmi internet java laptop malware memory monitor motherboard music network obp printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
gcc error when "make"

Reply  
Thread Tools
billy1816's Avatar
Junior Member with 3 posts.
 
Join Date: Dec 2003
12-Dec-2003, 03:45 PM #1
gcc error when "make"
I have just installed linux
And I tried to make something

I got this.

make: gcc: Command not found
make: *** [all] Error 127


How do I go about fixing this ?


Thanks
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
12-Dec-2003, 04:36 PM #2
You may not have installed the development set when you installed linux. This normally includes the C compiler (gcc) and various libraries and utilities that you will need to build (aka "make") programs from source code. The usual location for gcc is /usr/bin/gcc; you can check to see if gcc is there by using the command: ls -l /usr/bin/gcc. If it's there, make sure your PATH includes the /usr/bin directory (usually included by default, so this possibility is unlikely).

Hope this helps.
__________________
The slowest component still sits at the keyboard.
billy1816's Avatar
Junior Member with 3 posts.
 
Join Date: Dec 2003
13-Dec-2003, 02:52 AM #3
I did a check, and there's no such folder of gcc. I'm going to try to find some info on gcc, but if you have time, could you tell me how to install gcc then?
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
13-Dec-2003, 11:26 AM #4
Installing gcc (and the development tools) varies a bit depending on the distribution of Linux you are using (which one are you using?). During the install, you may have been presented with a configuration choice that included an option for a "development system" or similar; this is the option that will include gcc and all of the additional required programs and libraries. You may also be able to install a "package" (collection of related programs) that includes gcc and the development tools, but typically the development system requires several packages, so choosing the right combination for what you want to do is not always straightforward. You may be able to add the "development tools" or a similar group of programs if your installation procedure supports this (on my slackware distribution, for example, I would re-run the installation procedure and select to install only the development tools from the menu). Obviously, you could also re-install and include the development tools option as well.

Hope this helps -- additional info appreciated.
__________________
The slowest component still sits at the keyboard.
billy1816's Avatar
Junior Member with 3 posts.
 
Join Date: Dec 2003
14-Dec-2003, 12:30 AM #5
I'm going to try to reinstall it. I installed RedHat9, and going to reinstall it again and will definitely remember to clicked that.


Thanks
srhoades's Avatar
Senior Member with 2,037 posts.
 
Join Date: May 2003
Experience: Advanced
14-Dec-2003, 02:02 AM #6
Linux is not like windows, you NEVER (well almost never) have to reinstall to fix something. I cringe every time I see a newbie reinstall linux to fix a problem. Just browse your installation cd's for whatever distro you have, look for gcc and gcc-devel and just install them.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:56 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.