LinuxQuestions.org
Visit Jeremy's Blog.
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 05-23-2012, 11:45 AM   #1
simonspt
LQ Newbie
 
Registered: May 2012
Posts: 5

Rep: Reputation: Disabled
Building binaries from sources


Hi there!
I have another simple question... I have a small custom distribution that doesn't come with gcc and other several packages installed (such as apache2 or php5 etc..) aptitude or other packet manager is missing so i'm a little bit stuck..
I want to install some packages in my custom distribution.. what is the easiest way?
I'd like first to get gcc working and i'd like to build it with another distro (same architecture, i.e. same pc with all dependencies satisfied) and then put the binaries to my custom distro.

Is that possible?
 
Old 05-23-2012, 01:19 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If I remember correctly, the way LFS gets around the problem is booting from another distribution (in your case, a Live CD would be most appropriate), then chrooting into the root of the target distribution and then compiling gcc. http://www.linuxfromscratch.org/lfs/...roduction.html
 
Old 05-23-2012, 02:23 PM   #3
simonspt
LQ Newbie
 
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks! I didn't know about LFS i'll give it a look!
 
  


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
Building RHEL 6 from sources TylerGriffiths Red Hat 8 06-12-2012 08:22 AM
Building 64 bit binaries from source. Zepiroth Linux - Server 2 03-11-2008 03:54 AM
building rpm from sources Yoyo302 Fedora 1 07-28-2005 06:52 PM
Building static binaries nikhiljosh Linux - General 1 10-15-2003 09:04 AM
Building RPM's from Sources in RH 7.3 MgF Linux - Newbie 2 02-03-2003 12:36 AM

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

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