Build Linux from scratch [LFS]

Source: Internet
Author: User
Tags gmp

"Linux is this fan " has a chapter devoted to the construction of Linux, the process of detailed, very interesting. Combined with this information, a brief collection

Lfs

This site provides detailed steps for building a Linux from source code

Book

Http://archive.linuxfromscratch.org/lfs-museum/stable/LFS-BOOK-7.5.pdf

Package

Wget-list Proven Package address

Http://archive.linuxfromscratch.org/lfs-museum/stable/wget-list

If some of the bags don't get it, refer to this http://www.linuxfromscratch.org/lfs/packages.html

such as Ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/lfs-packages-7.5.tar

Http://ftp.lfs-matrix.net/pub/lfs/lfs-packages/lfs-packages-7.5.tar

These are the complete packages that find

Script

http://archive.linuxfromscratch.org/lfs-museum/stable/lfs-bootscripts-20130821.tar.bz2

Ubuntu10.0.4 64bit CombatHOSTMachine Check

The following are the dependencies:

Bash, version 4.1.5 (1)-release

/bin/sh-/bin/dash

Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303

Bison (GNU Bison) 2.4.1

/USR/BIN/YACC-/USR/BIN/BISON.YACC

bzip2, Version 1.0.5, 10-dec-2007.

coreutils:7.4

diff (GNU diffutils) 2.8.1

Find (GNU findutils) 4.4.2

GNU Awk 3.1.6

/usr/bin/awk-/usr/bin/gawk

GCC (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3

g++ (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3

(GNU libc) 2.19

GNU grep 2.5.4

Gzip 1.3.12

Linux version 2.6.32-38-generic ([email protected]) (GCC version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)) #83-ubuntu SMP Wed Jan 4 11:12:07 UTC 2012

M4 (GNU M4) 1.4.13

GNU make 3.81

Patch 2.6

Perl version= ' 5.10.1 ';

GNU sed version 4.2.1

Tar (GNU tar) 1.22

XZ (XZ Utils) 4.999.9beta

GMP MPFR MPC Library needs to be installed

The specific script is as follows:

#!/bin/bash

Tar XF pkg/gawk-4.1.0.tar.xz

pushd gawk-4.1.0

./configure

Make

sudo make install

Gawk--version

popd

Tar XF pkg/xz-5.0.5.tar.xz

pushd xz-5.0.5

./configure

Make

sudo make install

XZ--version

popd

#xz carried out the ldconfig, the second independent execution

Ldconfig

Tar XF pkg/gmp-5.1.3.tar.xz

pushd gmp-5.1.3

./configure--PREFIX=/USR

Make

Make check

sudo make install

popd

Ldconfig

Tar XF pkg/mpfr-3.1.2.tar.xz

pushd mpfr-3.1.2

./configure--PREFIX=/USR

Make

Make check

sudo make install

popd

Ldconfig

Tar XF pkg/mpc-1.0.2.tar.gz

pushd mpc-1.0.2

./configure--PREFIX=/USR

Make

Make check

sudo make install

popd

Ldconfig

Add a new disk

Fdsik/dev/sdb

Create several partitions in sequence n

Partition type T--linux Swap --Linux

Mkfs-v-T EXT4/DEV/SDB1

Mkswap/dev/sdb2

http://blog.csdn.net/mirage1993/article/category/2450253

http://blog.csdn.net/mirage1993/article/details/38356559 create a new partition and mount it
http://blog.csdn.net/mirage1993/article/details/38364823

Reference information
    • Linux Documentation and some basic books http://www.tldp.org
    • Linux Reference Section standard

LSB/FHS http://www.linuxfoundation.org/

Posix

Build Linux from scratch [LFS]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.