LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2003, 08:04 PM   #1
gcstader
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Watch out - Linux newbie question


Well, I just took the dive and installed the Red Hat 9 distribution; it's running fine. However, I have almost zero experience using linux except for the minimal time I've spent in the unix labs at nc state univ.
I want to use the gcc compiler but everytime I use the make command I get the response :

make[1]: Entering directory `/root/ROM/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
make[1]: gcc: Command not found
make[1]: *** [act_comm.o] Error 127
make[1]: Leaving directory `/root/ROM/dist/src'
make: *** [all] Error 2

What this error says to me is that it cannot find the GCC program. Now, my GCC program is located in /usr/bin/gcc296 (i think ) Do I have to edit my .bash_profile in order to allow me to use the compiler? Is there any way I can get this program to compile?

Thanks
Greg
 
Old 09-21-2003, 08:38 PM   #2
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
it seems like gcc is behaving badly, look for the gcc rpm on your redhat disk or download it and install it this may fix your problem
 
Old 09-21-2003, 09:17 PM   #3
gcstader
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Well if I enter the command

/usr/bin/gcc296 act_comm.c

then it seems to compile that file however, I need it to use the Makefile that is in the directory and compile all of the .c files.....
 
Old 09-21-2003, 10:16 PM   #4
gcstader
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Nevermind

Nevermind, I figured it out myself. I just renamed gcc296 to gcc and the program compiles fine now. I just put Red Hat 9 onto an old computer out of my closet - it's a 400mhz pentium w/ 128 mb of RAM and I can't believe how much more efficient it seems to be running with Linux installed.
 
Old 09-21-2003, 10:18 PM   #5
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
hmmm i dont know about this...perhaps you can try making a symlink

ln -sf /usr/bin/gcc296 /usr/bin/gcc

though you might want another members opinion before doing this, i dont think it would be at all dangerous but id bet theres a better solution
 
Old 09-21-2003, 10:19 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Try linking gcc296 to gcc.

ln -s gcc296 gcc
 
  


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
Linux Watch vs BSD Watch blueCow *BSD 4 08-16-2009 05:35 PM
Linux newbie question..sorry scheung SUSE / openSUSE 1 10-17-2005 09:37 PM
Linux Newbie Question eckertc1 Linux - General 3 03-03-2005 08:16 PM
Newbie Question - Which is the best Linux ? nictu Linux - Software 10 04-28-2003 12:25 PM
linux newbie question linuxnewbie00 Linux - General 3 09-11-2002 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 PM.

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