Review your favorite Linux distribution.
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 03-08-2011, 02:34 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
How to install gcc-4.5.2.tar.gz2

I am running red hat in VMWARE virtual machine. I need gcc compiler. i downloaded the gcc-4.5.2.tar.gz2 file. Can't seem to install. Here is what i tried so far
1. downloaded the gz2 file
2. placed it in /home/me
3. in terminal i cd to the folder with file in it
4. gave this command that i read here in LQ
tar xvjf gcc-4.5.2.tar.bz2
5.It extracted the files in folder gcc-4.5.2
6. cd to the extracted folder
7. gave command ./configure got this error
"make:***error: in '/home/me/gcc-4.5.2':
"make:***error: no acceptable C compiler found in $PATH
8. gave command make

here is where i am getting this error that "no target specified and no makefile found. Stop"

Please help,
Old 03-08-2011, 02:39 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
To compile source code (which is what you've downloaded), you need to have a compiler installed. You should install gcc using your distribution's package management system, rather than trying to build from source. Presumably you're using Red Hat Enterprise Linux, so you should read the RHEL documentation to see how to use the package management system.
Old 03-08-2011, 04:28 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,106

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
Welcome to LQ.

gave command ./configure got this error
Not possible. The build of GCC must be done in a build folder outside the source.

And : You cannot build a new GCC, when you have no gcc :
# yum install gcc-c++

Example, building a GCC in EL5 :



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
Opening tar.gz2 files help please ixxblazexxi Mandriva 1 11-11-2007 10:58 AM
unpack .tar.gz2 (Cannot utime .... ERROR) ibex Linux - General 2 04-16-2006 12:24 AM
How to? compile and install from source? (tar.*/gz2/bz2) entob Slackware 9 03-30-2004 07:23 PM
how do install gcc-3.3.tar.gz?? eye Linux - Software 9 06-18-2003 07:28 AM
How to unpack a .tar.gz2 file? ReSync Linux - Newbie 1 06-18-2002 07:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 PM.

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