LinuxQuestions.org
Visit Jeremy's Blog.
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 07-24-2006, 04:03 PM   #1
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Install gcc install from scratch, how?


How can you install gnu ar, cc, gcc and make from scratch; especially gcc? How can I install the compiler gcc from scratch? Let's say I have a bare Linux system with just the kernel, binutils and minimal libraries; and I want to install gcc without the capabilities of rpm, yum or apt-get - how do you do it?

I tried downloading the gcc-4.1.1.tar.bz2, extracted and tried running ./configure but it says that I need a c compiler. How can the installation of a c compiler say that it needs a c compiler in order to compile.
 
Old 07-24-2006, 04:57 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Install the gcc package from the CD's of your distro and then you will be able to compile the new gcc package that you downloaded.

-twantrd
 
Old 07-24-2006, 08:49 PM   #3
debiant
Member
 
Registered: Jul 2006
Distribution: Source Mage 0.9.6
Posts: 196

Rep: Reputation: 30
Quote:
Originally Posted by ramram29
How can you install gnu ar, cc, gcc and make from scratch; especially gcc? How can I install the compiler gcc from scratch? Let's say I have a bare Linux system with just the kernel, binutils and minimal libraries; and I want to install gcc without the capabilities of rpm, yum or apt-get - how do you do it?

I tried downloading the gcc-4.1.1.tar.bz2, extracted and tried running ./configure but it says that I need a c compiler. How can the installation of a c compiler say that it needs a c compiler in order to compile.

It's one of those chicken and the egg things. But one thing is for sure you do have to have a pre-compiled gcc to make your own. LFS goes into some good detail about the compilation proccess. Of course installing LFS you have to compile gcc 3 times.
 
Old 07-24-2006, 09:00 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
You can also check out the GCC Website.

In particular the install document and the prereq. document.
 
Old 08-01-2006, 01:59 PM   #5
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848

Original Poster
Blog Entries: 1

Rep: Reputation: 47
Quote:
Originally Posted by debiant
It's one of those chicken and the egg things. But one thing is for sure you do have to have a pre-compiled gcc to make your own. LFS goes into some good detail about the compilation proccess. Of course installing LFS you have to compile gcc 3 times.
That's what I thought. It makes me think more than twice about building my own custom mini distro. I'm in the process of creating a routine to setup gcc and yum with a scratch install.
 
  


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
Install or not install newest GCC version on Solaris 10. Zepiroth Solaris / OpenSolaris 6 05-26-2006 02:42 AM
How to install X from scratch? manueljose Linux - Software 1 01-28-2006 02:31 AM
install new gcc v3.4.5 over gcc v3.2.2 on red hat 9 mlaich Linux - Newbie 2 01-01-2006 08:52 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

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

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