2016-09-15 84 views
1

DistCC显然未能连接到主机。CRITICAL!无法获得主机列表

$ distcc --show-hosts 
distcc[32060] (dcc_parse_hosts) Warning: /home/amacdonald/.distcc/zeroconf/hosts contained no hosts; can't distribute work 
distcc[32060] (dcc_zeroconf_add_hosts) CRITICAL! failed to parse host file. 

distcc[32060] (dcc_show_hosts) CRITICAL! Failed to get host list 

我的默认配置是

$ cat /etc/default/distcc | grep -v "\#\|^$" 
STARTDISTCC="true" 
ALLOWEDNETS="127.0.0.1" 
LISTENER="127.0.0.1" 
NICE="10" 
JOBS="" 
ZEROCONF="true" 

我想ZeroConf的不需要我配置的主机,但抱怨我没有。如果我尝试将主机名写入/home/amacdonald/.distcc/zeroconf/hosts distcc实际上最终会删除这些行。

另外,我上的系统,

$ lsb_release -a 
No LSB modules are available. 
Distributor ID: Ubuntu 
Description: Ubuntu 14.04.4 LTS 
Release: 14.04 
Codename: trusty 
$ dpkg -l | grep distcc 
ii distcc            3.1-6            amd64  simple distributed compiler client and server 
$ distcc --version 
distcc 3.1 x86_64-pc-linux-gnu 
    (protocols 1, 2 and 3) (default port 3632) 
    built May 9 2013 23:15:01 
Copyright (C) 2002, 2003, 2004 by Martin Pool. 
Includes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer. 
Portions Copyright (C) 2007-2008 Google. 

distcc comes with ABSOLUTELY NO WARRANTY. distcc is free software, and 
you may use, modify and redistribute it under the terms of the GNU 
General Public License version 2 or later. 

Built with Zeroconf support. 

Please report bugs to [email protected] 

回答

0

这也许有点晚了,但我只是试图做同样的事情,什么工作对我来说,什么我发现奇怪的distcc文件有以下几行。

ALLOWEDNETS="127.0.0.1" 

我认为这必须是一个子网掩码,例如, 192.168.0.0/16。环回地址(127.0.0.1)将数据包路由回主机AFAIK。

LISTENER="127.0.0.1" 

我想,这必须是这台电脑本身的IP地址(也就是要在编译过程中,帮助一个),例如192.168.13.13。 (至少对我来说,现在,这是错误。当我改变了它,这“助手” PC开始接受来自主机的编译工作。)

JOBS="" 

这其中也许无关紧要,但非-zero整数将不会有任何机会(而不必查看文档,那JOBS的默认值是什么)。但可能是好的。

我以为ZeroConf并不需要我配置主机,但它是 抱怨我没有。如果我尝试将主机名写入 /home/amacdonald/.distcc/zeroconf/hosts distcc实际上结束了 删除这些行。

所以恕我直言,上述变化是需要的,不论ZeroConf如何。 (但我也许是错的。)

+0

我会检查子网。我可以发誓我改变了它 –