关于distcc安装和使用
来源:互联网 发布:pe备份数据 编辑:程序博客网 时间:2024/04/27 19:10
distcc: a fast, free distributed C/C++ compiler
NEWS: distcc 3.1 released!
Distcc release 3.1 is now available at Downloads. See NEWS for details.
Overview
distcc is a program to distribute builds of C, C++, Objective C or Objective C++ code across several machines on a network. distcc should always generate the same results as a local build, is simple to install and use, and is usually much faster than a local compile.
distcc does not require all machines to share a filesystem, have synchronized clocks, or to have the same libraries or header files installed. They can even have different processors or operating systems, if cross-compilers are installed.
"Just wanted to drop you a line to say that we are now using distcc at work and it is excellent. We have a rack of opteron machines that we use for computational tasks and we are now using them as a compile farm to compile our ~1MLOC C++ tree (which can take an hour on a single CPU to recompile if we change certain header files). We tried using Sun's grid engine to do this (we already use it to schedule our computational jobs), but the combination of its polled operation and the overhead of NFS led to little improvement (and greatly stressed our network). With distcc compile times are way down and my productivity has greatly improved; the two best features for me are its low impact on the network and its simplicity.
"Thanks a lot for a great tool!" — Jeremy Barnes
60-second instructions
- For each machine, download distcc, unpack, and do
./configure && make && sudo make install
- On each of the servers, run distccd --daemon, with --allow options to restrict access.
- Put the names of the servers in your environment:
export DISTCC_POTENTIAL_HOSTS='localhost red green blue'
- Build!
cd ~/work/myproject; pump make -j8 CC=distcc
Full documentation
See our documentation pages.
You may also be interested in an explanation of common pump-mode errors.
distcc 3
The major improvement in distcc 3 is the inclusion of "pump" mode. In "pump" mode, distcc sends source file with their included header files to the compilation servers, which now carry out both preprocessing and compilation. As a result, distcc-pump can distribute files up to 10 times faster to compilation servers than distcc.
distcc-pump is easily deployed through a wrapper script around an existing build command, such as 'make'. Pump mode uses the system header files from the compilation servers, so it works best if all of your compilation servers are configured identically, or if you use cross-compilers
- 关于distcc安装和使用
- 使用distcc和ccache缩短C/C++项目编译时间
- 使用distcc和ccache缩短C/C++项目编译时间
- Distcc
- distcc
- distcc
- distcc
- 安装distcc分布式编译环境
- 使用 distcc 缩短编译时间
- 使用 distcc 缩短编译时间
- 使用 distcc 缩短编译时间
- linux 下distcc安装及配置
- 关于CocoaPods安装和使用
- 使用distcc进行分布式编译来提高编译速度。
- 使用distcc进行分布式编译来提高编译速度
- OS X上搭建distcc使用XCode进行分布式编译
- OS X上搭建distcc使用XCode进行分布式编译
- 关于会声会影X3的安装和使用
- leetcode | Min Stack
- snmp安装
- 【web前端】sublime技巧总结
- 黑马程序员——Java基础---面向对象(对象的初始化、对象调用成员、单例设计模式)(4)
- tableView滑动出现删除按钮,不点击就返回崩溃
- 关于distcc安装和使用
- 吃豆子过桥
- Android Ctrl + 左键 不能直接打开xml问题
- poj 3237 Tree 树链剖分
- NSString - sizeWithFont
- Specified key was too long; max key length is 1000 bytes
- UNITY3d在移动设备上的一些优化实战(一)-概述
- Android6.0 Fingerprint Features(指纹识别)
- iOS不同界面之间传值的几种方法