LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1590|回复: 19

刚新装的系统怎么重新编译 GCC ?

[复制链接]
发表于 2006-10-30 03:05:51 | 显示全部楼层 |阅读模式
刚刚用 stage3 装好的基本系统,由于加入了很多 CFLAGE 参数,很想重新编译一次 GCC(据说是能达到和用 stage1 安装一样的效果),但我又不是很喜欢升级软件,而仅仅是想达到和用 stage1 安装一样的效果,应该用什么命令呢?
是不是也来两次
#emerge -e system
然后再来一次
#emerge -e world
?
如果在使用过程中升级了 GCC,自然有必要这么做,但对于用 stage3 安装的新系统,想达到和用 stage1 安装同样的效果,也可以这么做么?

如果说有必要,是不是在刚装完基本系统的时候做比装了很多应用软件(如X、桌面环境等等)要好?── 因为 emerge -e 似乎会试图自动升级软件,但我不想它升级。
发表于 2006-10-30 09:25:46 | 显示全部楼层
如果你只是装好了基本系统,而且调整了CFLAGE的话,做一次emerge -e system是必要的吧,而且现在做也比以后emerge -e world节省时间
回复 支持 反对

使用道具 举报

发表于 2006-10-30 13:37:20 | 显示全部楼层
先重編一下工具鍊
# emerge -av binutils glibc gcc libstdc++-v3 libtool
然後
# emerge -e world
這樣和從stage1開始做效果一樣。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-31 14:56:48 | 显示全部楼层
呵呵,昨天没看贴,结果迟了,从昨天下午开始,我已经让它做了:

#emerge -e system
#emerge -e system
#emerge -e world

装了 200M 多的包,是不是比下面两个命令彻底些?

# emerge -av binutils glibc gcc libstdc++-v3 libtool
# emerge -e world

前着是不是既重编了工具链,又升级了所有系统软件?系统软件的定义有哪些?是不是包括了工具链?,后者仅仅是重编了工具链?有点糊涂了,呵呵.........

感觉自己还是没弄清楚 emerge -e system , emerge -e world , 重编工具链等等这些概念之间的联系和区别
回复 支持 反对

使用道具 举报

发表于 2006-10-31 15:50:38 | 显示全部楼层
Post by ljx980645
。。。

# emerge -av binutils glibc gcc libstdc++-v3 libtool
# emerge -e world

前着是不是既重编了工具链,又升级了所有系统软件?系统软件的定义有哪些?是不是包括了工具链?,后者仅仅是重编了工具链?有点糊涂了,呵呵.........

感觉自己还是没弄清楚 emerge -e system , emerge -e world , 重编工具链等等这些概念之间的联系和区别

emerge -e只是重編,不會升級。system當然包括工具鏈(主要是binutils glibc gcc這三個東西),emerge -epv system可以看到system包括那些包。
回复 支持 反对

使用道具 举报

发表于 2006-11-1 18:33:46 | 显示全部楼层
我用emerge -epv system,怎么里面没有binutils glibc gcc libstdc++-v3 libtool这些东西呢?
回复 支持 反对

使用道具 举报

发表于 2006-11-1 20:23:03 | 显示全部楼层
Post by health_kxy
我用emerge -epv system,怎么里面没有binutils glibc gcc libstdc++-v3 libtool这些东西呢?

libstdc++-v3可能沒有,其他幾個一定會有的。
回复 支持 反对

使用道具 举报

发表于 2006-11-2 10:43:07 | 显示全部楼层
These are the packages that would be merged, in order:

Calculating system dependencies  .^H^H... done!
[ebuild  N    ] sys-libs/zlib-1.2.3-r1  USE="-build" 0 kB
[ebuild  N    ] sys-libs/gpm-1.20.1-r5  USE="(-selinux)" 0 kB
[ebuild  N    ] sys-libs/ncurses-5.5-r3  USE="gpm unicode -bootstrap -build -debug -doc -minimal -nocxx -trace" 0 kB
[ebuild  N    ] app-shells/bash-3.1_p17  USE="nls -afs -bashlogger -vanilla" 2,517 kB
[ebuild  N    ] sys-libs/readline-5.1_p4  1,986 kB
[ebuild  N    ] virtual/libiconv-0  0 kB
[ebuild  N    ] sys-devel/gettext-0.15  USE="nls -doc -emacs -nocxx" 0 kB
[ebuild  N    ] sys-apps/diffutils-2.8.7-r1  USE="nls -static" 1,037 kB
[ebuild  N    ] sys-apps/texinfo-4.8-r2  USE="nls -build -static" 1,486 kB
[ebuild  N    ] sys-apps/groff-1.19.2-r1  USE="X" 2,835 kB
[ebuild  N    ] sys-devel/gnuconfig-20060702  0 kB
[ebuild  N    ] sys-libs/db-4.2.52_p4-r2  USE="-bootstrap -doc -java -nocxx -tcl -test" 3,989 kB
[ebuild  N    ] sys-libs/gdbm-1.8.3-r2  USE="berkdb" 223 kB
[ebuild  N    ] sys-devel/libperl-5.8.8-r1  USE="berkdb gdbm -debug -ithreads" 9,886 kB
[ebuild  N    ] dev-lang/perl-5.8.8-r2  USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid" 0 kB
[ebuild  N    ] dev-libs/openssl-0.9.8d  USE="zlib -bindist -emacs -sse2 -test" 3,237 kB
[ebuild  N    ] perl-core/Test-Harness-2.56  USE="(-minimal%)" 63 kB
[ebuild  N    ] app-admin/perl-cleaner-1.04.3  5 kB
[ebuild  N    ] perl-core/PodParser-1.32  USE="(-minimal%)" 91 kB
[ebuild  N    ] app-misc/ca-certificates-20050804  91 kB
[ebuild  N    ] dev-libs/expat-1.95.8  USE="-test" 310 kB
[ebuild  N    ] dev-lang/python-2.4.3-r4  USE="berkdb gdbm ncurses readline ssl -bootstrap -build -doc -ipv6 -nocxx -tk -ucs2" 7,827 kB
[ebuild  N    ] dev-python/python-fchksum-1.7.1  26 kB
[ebuild  N    ] sys-apps/sandbox-1.2.17  227 kB
[ebuild  N    ] app-misc/pax-utils-0.1.13  USE="-caps" 52 kB
[ebuild  N    ] virtual/libintl-0  0 kB
[ebuild  N    ] sys-apps/sed-4.1.5  USE="nls -static" 0 kB
[ebuild  N    ] dev-python/pycrypto-2.0.1-r5  USE="-bindist -gmp -test" 150 kB
[ebuild  N    ] sys-apps/portage-2.1.1-r1  USE="-build -doc (-selinux)" LINGUAS="-pl" 0 kB
[ebuild  N    ] sys-devel/m4-1.4.6  USE="nls" 0 kB
[ebuild  N    ] sys-devel/autoconf-2.13  433 kB
[ebuild  N    ] sys-devel/autoconf-wrapper-3.2  0 kB
[ebuild  N    ] sys-devel/autoconf-2.59-r7  USE="-emacs" 903 kB
[ebuild  N    ] virtual/perl-Test-Simple-0.62  0 kB
[ebuild  N    ] dev-perl/Locale-gettext-1.05  7 kB
[ebuild  N    ] sys-apps/help2man-1.36.4  USE="nls" 83 kB
[ebuild  N    ] sys-devel/automake-wrapper-1-r1  0 kB
[ebuild  N    ] sys-devel/automake-1.9.6-r2  747 kB
[ebuild  N    ] sys-apps/coreutils-5.94-r1  USE="nls -acl -build (-selinux) -static" 4,989 kB
[ebuild  N    ] sys-kernel/linux-headers-2.6.17-r1  USE="-gcc64" 0 kB
[ebuild  N    ] sys-apps/sysvinit-2.86-r5  USE="(-ibm) (-selinux) -static (-bootstrap%) (-build%)" 100 kB
[ebuild  N    ] sys-apps/baselayout-1.12.5-r2  USE="unicode -bootstrap -build -static" 215 kB
[ebuild  N    ] sys-apps/hotplug-base-20040401  40 kB
[ebuild  N    ] sys-fs/udev-087-r1  USE="(-selinux)" 185 kB
[ebuild  N    ] app-arch/gzip-1.3.5-r9  USE="nls -build -pic -static" 323 kB
[ebuild  N    ] sys-devel/flex-2.5.33-r1  USE="nls -static" 679 kB
[ebuild  N    ] sys-apps/hdparm-6.3  43 kB
[ebuild  N    ] sys-devel/libtool-1.5.22  2,853 kB
[ebuild  N    ] sys-apps/findutils-4.3.0  USE="nls -build (-selinux) -static" 1,102 kB
[ebuild  N    ] sys-devel/make-3.81  USE="nls -static" 1,124 kB
[ebuild  N    ] app-crypt/hashalot-0.3-r2  78 kB
[ebuild  N    ] sys-libs/com_err-1.39  USE="nls" 3,608 kB
[ebuild  N    ] sys-libs/ss-1.39  USE="nls" 0 kB
[ebuild  N    ] sys-fs/e2fsprogs-1.39  USE="nls -static" 0 kB
[ebuild  N    ] sys-apps/util-linux-2.12r-r4  USE="crypt nls perl -old-crypt (-selinux) -static" 1,504 kB
[ebuild  N    ] sys-libs/timezone-data-2006n  0 kB
[ebuild  N    ] sys-devel/binutils-config-1.9-r2  0 kB
[ebuild  N    ] sys-devel/binutils-2.16.1-r3  USE="nls -multislot -multitarget -test -vanilla" 12,367 kB
[ebuild  N    ] sys-devel/gcc-config-1.3.13-r4  0 kB
[ebuild  N    ] dev-libs/gmp-4.2.1  USE="-doc -nocxx" 1,685 kB
[ebuild  N    ] sys-devel/bison-2.2  USE="nls -static" 0 kB
[ebuild  N    ] dev-libs/mpfr-2.2.0_p10  738 kB
[ebuild  N    ] sys-devel/gcc-4.1.1  USE="fortran gtk nls (-altivec) -bootstrap -build -doc -gcj (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
[ebuild  N    ] sys-libs/glibc-2.4-r3  USE="nls nptl nptlonly -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB
[ebuild  N    ] app-arch/bzip2-1.0.3-r6  USE="-build -static" 653 kB
[ebuild  N    ] sys-apps/which-2.16  122 kB
[ebuild  N    ] app-arch/tar-1.15.1-r1  USE="nls -build -bzip2 -static" 1,573 kB
[ebuild  N    ] sys-apps/man-1.6d  USE="nls" 0 kB
[ebuild  N    ] sys-devel/patch-2.5.9  USE="-build -static" 197 kB
[ebuild  N    ] sys-process/psmisc-22.2  USE="X* nls -ipv6* (-selinux)" 238 kB
[ebuild  N    ] sys-apps/grep-2.5.1-r8  USE="nls -build -static" 667 kB
[ebuild  N    ] sys-devel/automake-1.6.3  465 kB
[ebuild  N    ] dev-libs/popt-1.7-r1  USE="nls" 561 kB
[ebuild  N    ] net-misc/rsync-2.6.8-r2  USE="-acl -build -ipv6* -static -xinetd" 754 kB
[ebuild  N    ] sys-apps/busybox-1.2.1  USE="-debug -make-symlinks -netboot -savedconfig -static" 1,372 kB
[ebuild  N    ] app-arch/cpio-2.6-r5  USE="nls" 437 kB
[ebuild  N    ] sys-apps/less-394  USE="unicode" 480 kB
[ebuild  N    ] sys-libs/pwdb-0.62  USE="(-selinux)" 130 kB
[ebuild  N    ] sys-apps/tcp-wrappers-7.6-r8  USE="-ipv6*" 115 kB
[ebuild  N    ] dev-util/pkgconfig-0.20  USE="-hardened" 0 kB
[ebuild  N    ] x11-misc/util-macros-1.1.0  USE="-debug" 0 kB
[ebuild  N    ] x11-proto/kbproto-1.0.3  USE="-debug" 0 kB
[ebuild  N    ] x11-proto/xextproto-7.0.2  USE="-debug" 0 kB
[ebuild  N    ] x11-proto/xf86bigfontproto-1.1.2  USE="-debug" 0 kB
[ebuild  N    ] x11-proto/inputproto-1.3.2  USE="-debug" 0 kB
[ebuild  N    ] x11-proto/xproto-7.0.7  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libXau-1.0.2  USE="-debug" 0 kB
[ebuild  N    ] x11-proto/bigreqsproto-1.0.2  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libXdmcp-1.0.1  USE="-debug" 0 kB
[ebuild  N    ] x11-proto/xcmiscproto-1.1.2  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/xtrans-1.0.1  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libX11-1.0.3  USE="-debug -ipv6*" 0 kB
[ebuild  N    ] x11-libs/libXext-1.0.1  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libICE-1.0.1  USE="-debug -ipv6*" 0 kB
[ebuild  N    ] x11-libs/libSM-1.0.1  USE="-debug -ipv6*" 0 kB
[ebuild  N    ] x11-libs/libXt-1.0.2  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libXmu-1.0.2  USE="-debug -ipv6*" 0 kB
[ebuild  N    ] x11-apps/xauth-1.0.1  USE="-debug -ipv6*" 0 kB
[ebuild  N    ] sys-libs/cracklib-2.8.9-r1  USE="nls python" 562 kB
[ebuild  N    ] sys-libs/pam-0.78-r3  USE="berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb (-selinux)" 6,345 kB
[ebuild  N    ] sys-apps/shadow-4.0.15-r2  USE="cracklib%* nls pam -nousuid (-selinux) -skey" 1,264 kB
[ebuild  N    ] net-nds/openldap-2.3.27-r2  USE="berkdb crypt gdbm perl readline ssl tcpd -debug -ipv6 -kerberos -minimal -odbc -overlays -samba -sasl (-selinux) -slp -smbkrb5passwd" 3,669 kB
[ebuild  N    ] net-misc/openssh-4.4_p1-r5  USE="X ldap pam tcpd -X509 -chroot -hpn -kerberos -libedit (-selinux) -skey -smartcard -static" 1,079 kB
[ebuild  N    ] sys-process/procps-3.2.6  USE="(-n32)" 272 kB
[ebuild  N    ] sys-apps/module-init-tools-3.2.2-r1  USE="-no-old-linux" 394 kB
[ebuild  N    ] sys-apps/gawk-3.1.5-r2  USE="nls" 2,256 kB
[ebuild  N    ] sys-apps/kbd-1.12-r8  USE="nls" 867 kB
[ebuild  N    ] net-misc/wget-1.10.2  USE="nls ssl -build -debug -ipv6* -socks5 -static" 1,189 kB
[ebuild  N    ] sys-apps/file-4.17-r1  USE="python (-build%)" 543 kB
[ebuild  N    ] sys-apps/net-tools-1.60-r12  USE="nls -static" 296 kB
[ebuild  N    ] app-editors/nano-1.3.12-r1  USE="ncurses nls spell unicode -debug -justify -minimal -slang" 1,221 kB
[ebuild  N    ] sys-apps/debianutils-2.15-r1  USE="-build -static" 181 kB
[ebuild  N    ] net-misc/iputils-021109-r3  USE="-doc -ipv6* -static" 418 kB
[ebuild  N    ] sys-apps/man-pages-2.39  USE="nls" 1,764 kB
[ebuild  N    ] app-i18n/man-pages-zh_CN-1.5  3,674 kB

里面没有啊
回复 支持 反对

使用道具 举报

发表于 2006-11-2 10:46:04 | 显示全部楼层
嗯.我看错了,是有的.
回复 支持 反对

使用道具 举报

发表于 2006-11-2 13:02:25 | 显示全部楼层
emerge -e 会升级的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表