| Code: |
|
# mke2fs /dev/hda1 # mkfs.reiser4 /dev/hda3 # mkfs.reiser4 /dev/hda6 # mke2fs -j /dev/hda7 # mkswap /dev/hda5 # swapon /dev/hda5 # mount /dev/hda3 /mnt/gentoo # mkdir /mnt/gentoo/boot # mount /dev/hda1 /mnt/gentoo/boot |
| Code: |
|
# cd /mnt/gentoo (通过 link2 获得 stage1 压缩包) # tar -xvjpf stage?-*.tar.bz2 (解压完之后可以把 stage1 压缩包删除或是移动到别的目录下保存 - 尽管意义不大) |
| Code: |
|
# mount /dev/hda6 /mnt/gentoo/home # mount -t proc none /mnt/gentoo/proc |
| Code: |
|
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" |
| Code: |
|
CXXFLAGS="${} -fvisibility-inlines-hidden" |
| Code: |
|
LDFLAGS="-Wl,-O1" |
| Code: |
|
GENTOO_MIRRORS="ftp://linux.ntcu.net/dists/gentoo/ mirrors/gentoo/ /mirror.tucdemonic.org/gentoo/ /gentoo.inode.at/ " |
| Code: |
|
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" |
| Code: |
|
# cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf |
| Code: |
|
# chroot /mnt/gentoo /bin/bash # env-update && source /etc/profile |
| Code: |
|
# emerge sync |
| Code: |
|
# unlink /etc/make.profile # ln -sf /usr/portage/profiles/default-linux/x86/2004.2/gcc34 /etc/make.profile |
| Code: |
|
# emerge --oneshot --nodeps gcc-config |
| Code: |
|
/usr/bin/gcc-config: profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.3 |
| Code: |
|
* Checking gcc for __thread support ...no . Could not find a gcc that supports the __thread directive! - Please update to gcc-3.2.2-r1 or later, and try again !!! ERROR: sys-libs/glibc-2.3.4.20041102 failed! !!! Function check_nptl_support, Line 178 Exitcode 0 !!! No __thread support in gcc! |