Deployment of distributed compilation DistCC and ccache in Linux

Source: Internet
Author: User

Unset Language
Export lang = "en"
CD/home/Kingsoft
Mkdir DistCC
CD DistCC

 

 

RPM package: rpm-IVH...
Bz2 package: tar-xvf...
Go to the directory after DistCC Decompression
./Configure & 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 ++

 

Go to the ccache decompression directory
./Configure & make install

Mkdir/Data
Mkdir/data/Cache
Mkdir/data/Cache/ccache
CD/data/Cache
Touch/var/log/distccd. Log

Vim ~ /. Bash_profile
Add/usr/lib/DistCC/bin to path
And add the following content
# ----- 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.255.0.0/16

========================================================== =
Start monitoring: distccd -- daemon -- allow 10.255.0.0/16
View monitoring: distccmon-text 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.