LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2009, 10:04 AM   #1
Rituparna
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Rep: Reputation: 0
Question about Installing GCC


I am trying to install GCC on my RHEL5. I keep getting stuck because of all the prerequisites needed. Is there any way I can get these prerequisites in a bundle or do I have to go through the hassle of getting each one separately?
 
Old 06-24-2009, 10:19 AM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
Originally Posted by Rituparna View Post
I am trying to install GCC on my RHEL5. I keep getting stuck because of all the prerequisites needed. Is there any way I can get these prerequisites in a bundle or do I have to go through the hassle of getting each one separately?
I think this tutorial can help you.
http://www.cyberciti.biz/faq/howto-i...piler-on-rhel/
 
Old 06-24-2009, 11:02 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
You might use the package manager and the groupinstall function

yum install yum-utils
yum grouplist

Code:
Loaded plugins: rhnplugin, security
Setting up Group Process
Installed Groups:
   Engineering and Scientific
   Graphics
   Network Servers
   System Tools
Available Groups:
   Administration Tools
   Authoring and Publishing
   Development Tools
   Editors
   Educational Software
   FTP Server
   Fedora Packager
   GNOME Desktop Environment
   GNOME Software Development
   Games and Entertainment
   Graphical Internet
   Hardware Support
   KDE (K Desktop Environment)
   KDE Software Development
   Mail Server
   News Server
   Office/Productivity
   Sound and Video
   Text-based Internet
   Web Development
   Web Server
   Window Managers
   X Window System
Done
yum groupinstall "Development Tools"



That should handle everythig for you...


.

Last edited by farslayer; 06-24-2009 at 11:04 AM.
 
Old 06-24-2009, 12:07 PM   #4
Rituparna
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the responses. farslayer, when I do "yum grouplist," this is the message I get:

Code:
[root@localhost ~]# yum grouplist
Loaded plugins: rhnplugin
Setting up Group Process
Error: No group data available for configured repositories
 
Old 06-24-2009, 12:28 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
yum install gcc

Should get gcc and all it's dependencies.
 
Old 06-24-2009, 12:40 PM   #6
Rituparna
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow View Post
yum install gcc

Should get gcc and all it's dependencies.

I initally tried that and was able to install GCC successfully. However, when I was trying to install a program from a makefile, this is the error message I received:

Code:
[Ritu@localhost src]$ make
g77     -c -o blas.o blas.f
make: g77: Command not found
make: *** [blas.o] Error 127
Shouldn't g77 come with the GCC compiler?
 
Old 06-24-2009, 12:51 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Shouldn't g77 come with the GCC compiler?
g77 is the GNU Fortran 77 compiler
gcc is the GNU C compiler

They are different.

Looks like you need to install g77
 
Old 06-24-2009, 12:55 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You MIGHT need the gcc-gfortran package(it has been a while since I messed with fortran).

Edit: or maybe the compat-gcc-34-g77 package.

Last edited by lazlow; 06-24-2009 at 12:57 PM.
 
Old 06-24-2009, 02:01 PM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Error: No group data available for configured repositories

You do have a valid RHN subscription right ?

I would suggest contacting RedHat support for your issue, something must be wrong since you can't seem to install software on your Commercial version of Linux.


If you don't have a subscription, maybe you should be using CentOS 5....
 
Old 06-24-2009, 03:08 PM   #10
Rituparna
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Okay, thank you. I was able to get g77 through the Package Updater.
 
  


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
gcc question irfanhab Programming 1 05-21-2006 10:25 AM
Question about GCC 3.2.2 and 2.95 deepsix Programming 9 07-30-2003 02:54 AM
gcc question. philPA Slackware 2 05-22-2003 08:19 AM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM
It all started when I was installing mPlayer... (gcc question) the_c Linux - Software 4 05-30-2002 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 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