Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc服务起不来
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
bigmonk
n00b
n00b


Joined: 16 Nov 2004
Posts: 47
Location: china

PostPosted: Thu Dec 30, 2004 8:03 am    Post subject: distcc服务起不来 Reply with quote

按照文档的说明装好了distcc,但是distccd服务起不来,如之奈何?
Back to top
View user's profile Send private message
akar
Bodhisattva
Bodhisattva


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Thu Dec 30, 2004 3:54 pm    Post subject: Reply with quote

請把你如何做, 還有卡在 哪兒了,說一下。
_________________
AKar
Back to top
View user's profile Send private message
bigmonk
n00b
n00b


Joined: 16 Nov 2004
Posts: 47
Location: china

PostPosted: Fri Dec 31, 2004 3:19 am    Post subject: Reply with quote

完全按照gentoo的官方文档做的,也没出任何错误,就是到最后
/etc/init.d/distccd start
出俩叹号,服务起不来。
Back to top
View user's profile Send private message
linky_fan
n00b
n00b


Joined: 01 Jan 2005
Posts: 33
Location: Shanghai China

PostPosted: Sat Jan 01, 2005 7:54 am    Post subject: Reply with quote

应该是有log可以看的
_________________
Be yourself!
Back to top
View user's profile Send private message
akar
Bodhisattva
Bodhisattva


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Mon Jan 03, 2005 3:02 am    Post subject: Reply with quote

bigmonk wrote:
完全按照gentoo的官方文档做的,也没出任何错误,就是到最后
/etc/init.d/distccd start


假期試了兩個多小時, 現在可以本機distcc了,不知是不是因為跨公網的問題,還沒真的實現起來, 對了, 我也覺 官方的distcc文檔有點問題,不知很容易明白。 :(


[quote="linky_fan"]应该是有log可以看的[/quote]

謝謝提醒, 在Gentoo下, 我們這樣配置distcc的行為,通過修改
Code:
# nano -w /etc/conf.d/distccd


bigmonk wrote:
出俩叹号,服务起不来。


這種情況太異常了,我試的過程中沒碰見過。 請把 log的程度提高到 debug來除錯。

/etc/conf.d/distccd wrote:

# Logging
# You can change some logging options here:
# --log-file FILE
# --log-level LEVEL [critical,error,warning, notice, info, debug]
#
# Leaving --log-file blank will log to syslog
# example: --log-file /dev/null --log-level warning
# example: --log-level critical

DISTCCD_OPTS="${DISTCCD_OPTS} --log-level debug"


_________________
AKar
Back to top
View user's profile Send private message
bigmonk
n00b
n00b


Joined: 16 Nov 2004
Posts: 47
Location: china

PostPosted: Wed Jan 05, 2005 9:17 am    Post subject: Reply with quote

#DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24 --listen 192.168.0.2"
把这行屏掉服务就能起来了。

但好象分布式编译没起作用
运行distccmon-text没结果。
下一步该如何做
我看有的文档说要在make.conf里把CC变量设成distcc,但是官方文档里没说,有这个必要吗?
_________________
http://gentoogle.blogspot.com/
Back to top
View user's profile Send private message
akar
Bodhisattva
Bodhisattva


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Wed Jan 05, 2005 5:31 pm    Post subject: Reply with quote

bigmonk wrote:

#DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24 --listen 192.168.0.2"
把这行屏掉服务就能起来了。

這是一些安全性的配置,如果搞清楚是在這出問題了,也許可以把它按你的情況設置起來。:)

bigmonk wrote:

但好象分布式编译没起作用
运行distccmon-text没结果。
下一步该如何做


這樣可以嗎?
Code:
# DISTCC_DIR=/var/tmp/portage/.distcc distccmon-text &


bigmonk wrote:
我看有的文档说要在make.conf里把CC变量设成distcc,但是官方文档里没说,有这个必要吗?


我想法就不必要, 因為Gentoo的套件編譯系統把一些底層的實作抽像化(wrap)了起來,然後用 配制文檔來控制她的行為。
還計得我們加了 distcc到 make.conf 內的features裏吧。

Gentoo Cool 8)

:arrow: 我的那不行,我想是因為跨公網的那台伺服器是在路由器之後, 要設置一下 virtual server. :_ 明天等我好消息。 :)
_________________
AKar
Back to top
View user's profile Send private message
akar
Bodhisattva
Bodhisattva


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Thu Jan 06, 2005 3:46 am    Post subject: Reply with quote

成功!!

如果不跨公網的話,原來是如此簡單, 只有 Gentoo Distcc Documentation文檔裏那麼幾個步驟。
Cool 8)

http://www.geocities.com/akarchen/distcc-working2.png

bigmonk wrote:
我看有的文档说要在make.conf里把CC变量设成distcc,但是官方文档里没说,有这个必要吗?

現在証實了, 沒必要。 :)
_________________
AKar
Back to top
View user's profile Send private message
bigmonk
n00b
n00b


Joined: 16 Nov 2004
Posts: 47
Location: china

PostPosted: Thu Jan 06, 2005 9:29 am    Post subject: Reply with quote

按你的说法搞定了,多谢。
host allow不打紧,回头再弄。
_________________
http://gentoogle.blogspot.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum