Categories
Fedora

在 Fedora 12 安装分布式编译工具distcc/distccd

官方网 说只要60秒安装。我是照这个 http://www.hdlfactory.com/~filmil/fedora/installing-distcc-and-distccd-on-fedora-11.htm 操作,没遇到什么困难。
我的两台测试机器配置:

[deli@athena ~]$ lscpu 
Architecture:          i686
CPU(s):                2
Thread(s) per core:    1
Core(s) per socket:    2
CPU socket(s):         1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 23
Stepping:              10
CPU MHz:               2799.526
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              3072K
[deli@athena ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:          1979       1820        159          0        360        879
-/+ buffers/cache:        580       1399
Swap:         2047        170       1877

下载Apache 2.2.16版本来测试,结果如下:

$ time make -j 8
...
make[1]: Leaving directory `/home/deli/Downloads/httpd-2.2.16'

real	0m37.824s
user	0m31.640s
sys	0m22.350s
[deli@athena httpd-2.2.16]$


$ time make -j 2
...
make[1]: Leaving directory `/home/deli/Downloads/httpd-2.2.16'

real	0m50.855s
user	0m43.442s
sys	0m22.492s

效果比较明显,正在研究如何分布式编译Android的代码。有个哥们写了在Ubuntu分布式编译Android的教程 http://mcuos.com/thread-5339-1-1.html ,写不够详细,看得不是很明白,还是先把概念弄清楚再动手吧。

If you enjoyed this post, make sure you subscribe to my RSS feed!

3 replies on “在 Fedora 12 安装分布式编译工具distcc/distccd”

Leave a Reply

Your email address will not be published. Required fields are marked *