2016-09-15 27 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

我會檢查子網。我可以發誓我改變了它 –