distcc+pump
安裝配置手冊(方法2)
伺服器端(計算機名為:zhimingubtpc.local):
$ sudo useradd distcc
$ sudo apt-get install python-dev
$ sudo tar zxfv distcc-3.2rc1.tar.gz
$ cd distcc—3.2rc1
$ sh ./autogen.sh
$ ./configure –prefix=/usr/local/distcc
$ make
$ sudo make install
$ sudo mkdir /usr/local/distcc/log
$ sudo touch/usr/local/distcc/log/distcc.log
$ sudo chown –r distcc:adm/usr/local/distcc/log
$ echo "aliasdistccd='/usr/local/distcc/bin/distccd --daemon --allow 10.0.1.0/24--log-file=/usr/local/distcc/log/distcc.log'" >> ~/.bashrc
$ source ~/.bashrc
開啟distcc:
$ sudo distccd
關閉distcc:
$ sudo killall distccd
客戶端:
$ sudo useradd distcc
$ $ sudo apt-get install python-dev
$ sudo tar zxfv distcc-3.2rc1.tar.gz
$ cd distcc—3.2rc1
$ sh ./autogen.sh
$ ./configure –prefix=/usr/local/distcc
$ make
$ sudo make install
$ sudo ln –s /usr/local/distcc/bin/distcc/usr/local/distcc/bin/cc
$ sudo ln –s /usr/local/distcc/bin/distcc/usr/local/distcc/bin/gcc
$ sudo ln –s /usr/local/distcc/bin/distcc/usr/local/distcc/bin/g++
$ sudo mkdir /usr/local/distcc/log
$ sudo touch/usr/local/distcc/log/distcc.log
$ sudo chown –r distcc:adm/usr/local/distcc/log
$ echo "aliasdistccd='/usr/local/distcc/bin/distccd --daemon --allow 10.0.1.0/24--log-file=/usr/local/distcc/log/distcc.log'" >> ~/.bashrc
$ source ~/.bashrc
開啟distcc:
$ sudo distccd
關閉distcc:
$ sudo killall distccd
$ vi ~/.bashrc (
在最後新增)
按a或i進入編輯模式
exportdistcc_hosts='localhost,cpp,lzo zhimingubtpc.local,cpp,lzo'
export path=/usr/local/distcc/bin:/usr/bin:/bin
按esc鍵退出編輯模式
:wq (儲存並退出)
$ source ~/.bashrc
在make前新增pump即可
檢視下gcc路徑:
$ which gcc (
如果顯示/usr/lib/distcc/gcc則是說明環境變數生效了)
yangzhimingg
的安裝配置 Manjaro Linux安裝配置
安裝wmtools 1.解除安裝舊版本 sudo pacman r open vm tools git clone 3.執行指令碼進行安裝 cd vmware tools patches sudo patched open vm tools.sh 安裝vim sudo pacman s vim 更新...
python配置安裝 配置安裝
scrapy框架安裝 安裝請參考 scrapy安裝 windows安裝方式 1.先確定windows是否安裝了python c users administrator python python 2.7.13 v2.7.13 a06454b1afa1,dec 17 2016,20 53 40 msc...
Fedora 安裝配置
1,sudo 的配置 chmod w etc sudoers echo mirandam all all nopasswd all etc sudoers chmod w etc sudoers sudo 2,安裝源 產生新增第三方源 安裝驅動 sudo yum install kmod nvidi...