The RPM fails to create /var/run/distcc. It's a pain with the cluster we're
running it over as it has to be corrected every time the compute nodes are
reinstalled, which is a routine event and can be triggered by users without
superuser access.
Answering the following questions is a big help:
1. What version of distcc are you using?
Building from 3.1-1 source using 'make rpm', and the distcc-server package
deployed and installed to host. Probably installed with rpm.
2. What platform are you running on?
Rocks 5.2, a cluster distribution based on CentOS 5.3
uname -a:
Linux compute-0-0.local 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT
2009 x86_64 x86_64 x86_64 GNU/Linux
cc --version
cc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
3. What were you trying to do?
Starting distccd with /etc/init.d/distcc start
4. What went wrong?
[root@host ~]# /etc/init.d/distcc start
Starting distccdrunuser: warning: cannot change directory to
/var/run/distcc: No such file or directory
/etc/profile.d/bio.sh: line 47: /var/run/distcc/.ncbirc: No such file or
directory
mkdir: cannot create directory `/var/run/distcc': Permission denied
Checking /var/run the distcc dir is missing.
Creating /var/run/distcc and chown it to the distcc user resolves this issue.
Could the rpm.spec file be altered to check the existence and ownership of
this directory?
Original issue reported on code.google.com by
bloodr...@gmail.comon 13 Jul 2009 at 11:59