LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-08-2011, 01:34 AM   #1
newuser432
LQ Newbie
 
Registered: Mar 2011
Posts: 1

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


Hello,
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, 01:39 AM   #2
Nylex
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, 03:28 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Quote:
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 :
http://www.linuxquestions.org/questi...-1-a-842567/#2

..
 
  


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

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

All times are GMT -5. The time now is 10:47 AM.

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