Mourning the loss of our friend, WhitPhil.
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 audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
gcc error when "make"

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
billy1816's Avatar
Junior Member with 3 posts.
 
Join Date: Dec 2003
12-Dec-2003, 02: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, 03: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, 01: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, 10: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
13-Dec-2003, 11:30 PM #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 1,301 posts.
 
Join Date: May 2003
Experience: Advanced
14-Dec-2003, 01: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.
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:20 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.