unset LANGUAGE
export LANG="en"
cd /home/kingsoft
mkdir distcc
cd distcc
rpm包用:rpm -ivh ...
bz2包用:tar -xvf ...
进入distcc解压后的目录
./configure && make && make install
mkdir /usr/lib/distcc
mkdir /usr/lib/distcc/bin
cd /usr/lib/distcc/bin
ln -s /usr/local/bin/distcc gcc
ln -s /usr/local/bin/distcc cc
ln -s /usr/local/bin/distcc g++
ln -s /usr/local/bin/distcc c++
进入ccache解压目录
./configure && make && make install
mkdir /Data
mkdir /Data/Cache
mkdir /Data/Cache/CCache
cd /Data/Cache
touch /var/log/distccd.log
vim ~/.bash_profile
把 /usr/lib/distcc/bin 加到PATH
并添加下面内容
## ----- Distcc -----
#
DISTCC_HOSTS="localhost 192.168.1.1"
DISTCC_VERBOSE=1
DISTCC_LOG="/var/log/distcc.log"
export DISTCC_HOSTS PATH DISTCC_VERBOSE DISTCC_LOG
#
## ----- End -----
## ----- Ccache -----
#
# export CCACHE_DISABLE=1
CCACHE_DIR=/Data/Cache/CCache
CCACHE_LOGFILE=/Data/Cache/CCache.log
CCACHE_PREFIX="distcc"
CC="ccache gcc"
CXX="ccache g++"
export CCACHE_DIR CCACHE_LOGFILE CCACHE_PREFIX CC CXX
#
## ----- End -----
vim /etc/rc.local
distccd --daemon --allow 10.20.0.0/16
==========================================
启动监控:distccd --daemon --allow 10.20.0.0/16
查看监控:distccmon-text 1
posted on 2012-02-24 14:49
何克勤 阅读(1326)
评论(0) 编辑 收藏 所属分类:
GNU Linux/Unix