LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-01-2009, 02:00 AM   #1
liorbalmas
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
How to intstall GCC on a custom Linux build


Hi
I downloaded a pre-configured linux VM. It works great but it doesn't contain GCC and therefore I cant install on it other important programs I need. It is not a regular distro that has yum or apt.
I tried to install GCC from source but it requires another compiler for its own build process.
How can I solve this issue ?

Thanks for any kind of help

Last edited by liorbalmas; 07-01-2009 at 02:01 AM.
 
Old 07-01-2009, 03:41 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
You can use a host system to compile gcc for your target system. That is what we usually do.
If your system run in a VM, then download some liveCD, tell your VM to boot that iso and chroot to your system to install gcc. Once gcc is installed on your new system, recompile it from itself, maybe 2 times for good measure.

Last edited by Agrouf; 07-01-2009 at 03:42 AM.
 
Old 07-01-2009, 08:46 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
To continue, what Agrouf said, the recommended build
method is here :

http://www.linuxfromscratch.org/lfs/view/6.4/
http://www.linuxfromscratch.org/lfs/...gcc-pass1.html
http://www.linuxfromscratch.org/lfs/...ter06/gcc.html
.....
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
custom gcc build wont work (libmpfr.so.1: cannot open shared object file) furryfreak Linux - Software 2 04-03-2009 03:39 AM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM
How to build MPPE support into custom linux kernel reddyl SUSE / openSUSE 2 01-20-2006 08:38 AM
Build Custom Linux Distro/Flavor mmc Linux - Distributions 7 01-25-2005 04:57 AM
How to build a Custom Linux? velan Debian 3 08-16-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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