搭建distcc 分布式编译脚本

sudo apt-get install distcc
apt-get install distccmon-gnome
vi ~/.profile =>
       add "/usr/local/arm-linux-androideabi-4.4.x/bin" to PATH
sudo vi /etc/default/distcc =>
       STARTDISTCC="true"
       (on server) -> ALLOWEDNETS="192.168.0.0/16"
       (server ip) -> LISTNERS="192.168.1.135"
       (on client) -> No need other modification
sudo vi /etc/init.d/distcc
       (add distcc PATH) -> /usr/local/arm-linux-androideabi-4.4.x/bin
cd /usr/lib/distcc
       -> sudo ln -s ../../bin/distcc arm-eabi-gcc
       -> sudo ln -s ../../bin/distcc arm-eabi-g++
       ...
       -> sudo ln -s ../../bin/distcc arm-linux-androideabi-strip
(for client)
       vi ~/.profile -> export PATH=/usr/lib/distcc:$PATH
                     -> export DISTCC_HOSTS="192.168.1.135 other_ip_addresses"
(for server)
       sudo /etc/init.d/distcc restart

你可能感兴趣的:(搭建distcc 分布式编译脚本)