Skip to content

Instantly share code, notes, and snippets.

Last active March 12, 2023 11:22
  • Star 13 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
mac distcc install instructions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<!--this file goes in /Library/LaunchDaemons/distccd-rpi.plist -->
$ sudo apt-get install distcc
$ nano ~/.profile
#insert as last line, CTRL+O to save, CTRL+X to exit
export MAKEFLAGS="-j 64 CC=distcc arm-linux-gcc CXX=distcc arm-linux-g++"
$ source ~/.profile
$ cd
$ nano .distcc/hosts
#put in your Mac's IP Address, CTRL+O to save, CTRL+X to exit
#for example my file contains only
$ nano ~/.profile
#if file exists the important thing is to insert
# /usr/local/arm-linux/bin: right after PATH=
#this is mine
export PATH=/usr/local/arm-linux/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
$ source ~/.profile
#further steps will require Homebrew
$ ruby -e "$(curl -fsSL"
#this will download the install script below
$ curl -O
$ chmod +x
$ ./
#this will start the distcc server
#verbose will print messages that you can look at in the Mac Console (printed to system.log)
#my ip block is, change below to match yours
$ distccd --daemon --allow --no-detach --verbose
if [ -f $PKG ];
echo "$PKG exists"
echo "$PKG does not exist"
cd ~/Desktop
curl -O
brew install distcc
sudo installer -pkg $PKG -target /
cd /usr/local/arm-linux/bin
for file in `ls`; do
if [[ "$file" == "link" ]] || [[ "$file" = arm-cortex_a8-linux-gnueabi-* ]]; then
#echo $file
#echo ${file#arm-cortex_a8-linux-gnueabi-}
ln -s $file ${file#arm-cortex_a8-linux-gnueabi-}
for file in `ls`; do
if [[ "$file" = arm-linux-* ]]; then
#echo $file
#echo ${file#arm-linux-}
sudo mv $file ${file#arm-linux-}
export PATH=/usr/local/arm-linux/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
/usr/local/bin/distccd --daemon --allow --no-detach --verbose
#this file is for launchd so you can run at startup (on the Mac)
#I placed this in /Users/YOUR_USER_NAME/Scripts/
Copy link

bakercp commented Oct 25, 2013

You could skip the brew install by using curl ... did you mean to install distccd somewhere w/ brew too?

Copy link

bakercp commented Oct 25, 2013

Also, if you want to advertise the service via zeroconf (this isn't possible w/ brew distcc on the mac b/c it is compiled w/o avahi / dns-sd. Since my pis are looking for distcc servers using avahi, you might do something like this as a part of a startup script:

dns-sd -R distcc@mac _distcc._tcp . 3632 txtvers=1 cpus=8 distcc=3.2rc1 gnuhost=osx cc_version=4.7.1 cc_machine=arm-cortex_a8-linux-gnueabi

Copy link

@bakercp yes - I forgot to install distcc via brew - now updated

Copy link

S1GSEGV commented Aug 9, 2016

What is the proper way to start distccd? After install through brew, it says:
Use 'brew services start distcc' to start distccd automatically on login.
By default, it will allow access to all clients on

To have launchd start distcc now and restart at login:
brew services start distcc

Is there a config file like on linux /etc/default/distcc ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment