Recently knew about distcc, though I used to see the name a lot.
I likd the idea of distributed complilation.
I have 2 PCs and both have gentoo installed.
To use distcc I followed instruction at http://www.gentoo.org/doc/en/distcc.xml.
My distcc related settings for PCs as follows
1st PC ip address 192.168.0.1
2nd PC ip address 192.168.0.249
1) make.conf for both PCs:
----------------------------------------
MAKEOPTS="-j2"
FEATURES="distcc"
----------------------------------------
2) /etc/conf.d/distcc
1st PC:
-----------
DISTCCD_OPTS=""
# this is the distccd executable
DISTCCD_EXEC=/usr/bin/distccd
# this is where distccd will store its pid file
DISTCCD_PIDFILE=/var/run/distccd/distccd.pid
# set this option to run distccd with extra parameters
# Default port is 3632. For most people the default is okay.
DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
DISTCCD_OPTS="${DISTCCD_OPTS} --log-level warning --log-file"
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24 --listen 192.168.0.249"
DISTCCD_NICE="15"
------------------
2nd PCs /etc/conf.d/distcc:
-----------------------
DISTCCD_OPTS=""
# this is the distccd executable
DISTCCD_EXEC=/usr/bin/distccd
# this is where distccd will store its pid file
DISTCCD_PIDFILE=/var/run/distccd/distccd.pid
# set this option to run distccd with extra parameters
# Default port is 3632. For most people the default is okay.
DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
DISTCCD_OPTS="${DISTCCD_OPTS} --log-level warning --log-file"
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24 --listen 192.168.0.1"
DISTCCD_NICE="15"
------------
3) /etc/distcc/hosts:
1st PC: localhost 192.168.0.249 #1st PC's ip adress 192.168.0.1
2nd PC: localhost 192.168.0.1 #2nd PC's ip address 192.168.0.249
4) On 1st PC iptables running
5) on both PCs sshd running
6) when I do on any PC '/etc/init.d/distcc start' I receive error:
distccd[9294] (dcc_setup_real_log) ERROR: failed to open --allow:
Permission denied
7) /var/log/messages on 1st PC says:
Jun 2 14:22:00 tux distccd[9294]: (dcc_listen_by_addr) ERROR: bind of
192.168.0.249:3632 failed: Cannot assign requested address
Please help.
askar
--
[email protected] mailing list