Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-13-2012, 02:59 PM   #1
LQ Newbie
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
how to install gcc.tar.bz2

i'm new to linux,please tell me how to install gcc.tar.bz2 .
i want run c/c++ progm to my pc.i have fedora 16.

Last edited by maheshmd26; 02-13-2012 at 03:14 PM.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-13-2012, 03:01 PM   #2
Senior Member
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Which distribution or "distro" are you using?

I recommend installing gcc with your distro's built in package manager ('apt-get' or 'aptitude' if you're using Debian/Ubuntu; 'yum' for Fedora/RHEL; etc).

So tell us which distro you're using, and/or read the "How to Install Software" chapter of your distro's documentation.
Old 02-13-2012, 03:04 PM   #3
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I second what snowpine said: use your distribution's package manager to install gcc.

You cannot install gcc with a source code tarball if you do not already have a compiler installed--because you have no compiler to compile the gcc source code.
Old 02-13-2012, 08:48 PM   #4
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
for fedora you will need a bit more than JUST gcc
fedora ships with gcc 4.6 a VERY VERY VERY new version. Not ALL code will build with it YET .

install this for fedora
su -
yum groupinstall "Development Tools" "Development Libraries"
double check my spelling using
su -
yum grouplist
Old 02-14-2012, 01:15 AM   #5
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Originally Posted by maheshmd26 View Post
i'm new to linux,please tell me how to install gcc.tar.bz2 .
i want run c/c++ progm to my pc.i have fedora 16.
Just untar it and read the INSTALL and README file in it

most probably run the configure script and

make install
but it depends on packages so best to read the README file
Old 02-14-2012, 03:45 AM   #6
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
Just an addition:
Either maheshmd26 has already a C/C++ compiler installed on his system - this would typically be gcc. So no need to install gcc from source.
Or he has no C/C++ compiler installed - then make will break, since on some point, the c compiler will be called ...

In short: go for the yum way of installation
Old 02-14-2012, 04:45 AM   #7
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Have you tried this?:

# yum groupinstall "Development Tools"
This must solve your problem.
Old 02-14-2012, 11:12 AM   #8
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Originally Posted by Satyaveer Arya View Post
Have you tried this?:
This must solve your problem.
Yes...that's why it was given to the OP in post #4.
2 members found this post helpful.


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
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 07:52 AM
How to extract and install from .tar.gz and .tar.bz2 wstay Linux - Newbie 4 11-08-2008 11:14 AM
how do i install gcc from a tar.bz2 file when i have no C/C++ compiler installed sagitalk Linux - Newbie 52 08-04-2008 04:31 PM
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

All times are GMT -5. The time now is 08:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration