LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-02-2008, 03:04 PM   #1
sagitalk
Member
 
Registered: Aug 2008
Posts: 38

Rep: Reputation: 15
how do i install gcc from a tar.bz2 file when i have no C/C++ compiler installed


hello , i'm new to linux..i have installed Red Hat Linux Enterprise Edition 5 on my PC....but only the basic installation has been done so i have no software packages installed......i want to install gcc so that i can start writing C/C++ programs....i downloaded a tar.bz2 file which i extracted and have now got a folder....i am not understanding as to how do i proceed further with the installation......there is a html document that states a lengthy procedure for installation which i could not understand......pl guide me......
regards,
sagitalk
 
Old 08-02-2008, 03:14 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
You cannot do it that way. You have to have a compiler in order to compile.

RH is based on rpms. Yum is the package manager for RHEL5. So " yum install gcc " (as root) should get you started.
 
Old 08-02-2008, 03:16 PM   #3
sagitalk
Member
 
Registered: Aug 2008
Posts: 38

Original Poster
Rep: Reputation: 15
thank u i will begin right way but will get back in case of a problem
 
Old 08-02-2008, 03:17 PM   #4
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
You can get gcc++ from ur cds or DVD, if u have created yum server then u can type command "yum install gcc*"
 
Old 08-02-2008, 03:18 PM   #5
sagitalk
Member
 
Registered: Aug 2008
Posts: 38

Original Poster
Rep: Reputation: 15
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: gcc
Nothing to do


this is the message i got after typing the yum install gcc command
 
Old 08-02-2008, 03:20 PM   #6
sagitalk
Member
 
Registered: Aug 2008
Posts: 38

Original Poster
Rep: Reputation: 15
i do not have any CD/DVD for this........i have extracted the tar.bz2 file and there is a lenghty installation process which requires configuration, build, testing and final install....but reading the file is proving to be of no use
 
Old 08-02-2008, 03:23 PM   #7
sagitalk
Member
 
Registered: Aug 2008
Posts: 38

Original Poster
Rep: Reputation: 15
what exactly is yum and how will it help me install a C/C++ compiler
 
Old 08-02-2008, 03:35 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Ok, from post number 5, it is showing that you have not registered you install with RH. You do understand that RHEL requires you to pay for a subscription?

Ok there are three main ways to installs software. 1. compile it(but you need a compilers to compile). 2. Some (mostly RH based) systems use rpms to install binary packages. 3. Some (Debian based) systems use debs to install binary packages. The short answer is that debs and rpms are just two ways of doing the same thing.

Debs and rpms both use repos(repositories) of software on remote servers (and their mirros) to store their software. The vast majority of software an ordinary user will require is in these repos (Thunderbird, FF, OOoffice, gcc/gcc++, etc). Currently RHEL uses yum to access those repos. So "yum install software_package" is how one generally installs software.
 
Old 08-02-2008, 03:55 PM   #9
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
The error u found is that you dont have RH subscription you have to register to rhn.redhat.com or use CentOS its same as rhel5 no diff just logos are diff and you can get any updates.
 
Old 08-02-2008, 03:59 PM   #10
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
Quote:
Originally Posted by sagitalk View Post
i do not have any CD/DVD for this........i have extracted the tar.bz2 file and there is a lenghty installation process which requires configuration, build, testing and final install....but reading the file is proving to be of no use
Go to command prompt then go to directory where u have extracted ur file then run ./configure then after completed this run make then make install it will work
 
Old 08-02-2008, 06:01 PM   #11
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 387

Rep: Reputation: 49
Quote:
Originally Posted by rahilmaknojia View Post
Go to command prompt then go to directory where u have extracted ur file then run ./configure then after completed this run make then make install it will work
no it won't >_>
dito (he doesn't have a compiler [needed for the *.tar.bz2] to begin with)

Last edited by TITiAN; 08-02-2008 at 07:50 PM.
 
Old 08-02-2008, 07:30 PM   #12
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Rep: Reputation: 31
Couldn't he just download the gcc rpm package from the CentOS site and install it?
 
Old 08-03-2008, 01:10 AM   #13
sagitalk
Member
 
Registered: Aug 2008
Posts: 38

Original Poster
Rep: Reputation: 15
hello, thank you all for the prompt replies.......but i am still confused as to how do i install a C/C++ compiler....is there something that is already compiled and i can copy it to my PC and get started with C/C++ is there a C/C++ in any other format which may help my case....pl do let me know
 
Old 08-03-2008, 01:25 AM   #14
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Yes. rpms are already compiled. You can register your RHEL and get it from RH via yum. You can switch the repos and use Centos' rpm. You can look through Centos' repo and install it (the rpm) manually.
 
Old 08-03-2008, 01:36 AM   #15
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
As I told you download CentOS its same as RH only logos are different and very thing like services are same as RH, if u dont blive I was the one who used RH the switch to CentOS bcoz of subscription, So go ahead and download CentOS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I just downloaded a game in a tar.bz2 file. How do I install and run it? Mac_09 Linux - Newbie 2 05-19-2008 01:40 AM
How to install pidgin as a .tar.bz2 file epich Linux - Software 10 03-24-2008 09:26 AM
Why can't I install a *.tar.gz or a *.tar.bz2 file? SkinnerC Slackware 11 12-13-2007 11:03 AM
Problem installing gcc-4.0.2.tar.bz2 MadAboutLinux Linux - Software 1 04-02-2006 12:40 PM
How you install file with TAR.BZ2 extension?.. thanks suse2166 Linux - Software 14 01-03-2005 05:55 PM


All times are GMT -5. The time now is 03:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration