2011-06-21 56 views
4

嘗試在我的Oracle Linux Box上安裝Chef。撥通了下面的說明所有的路,我得到以下點:廚師:嘗試運行Chef-Solo時奇怪的Erlang錯誤

運行廚師獨奏:

(以URL): http://wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation

...我收到以下錯誤:

[[email protected] ~]# chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz 
[Mon, 20 Jun 2011 13:53:01 -0700] INFO: *** Chef 0.10.0 *** 
[Mon, 20 Jun 2011 13:53:02 -0700] INFO: Setting the run_list to ["recipe[chef- server::rubygems-install]"] from JSON 
[Mon, 20 Jun 2011 13:53:02 -0700] INFO: Run List is [recipe[chef-server::rubygems-install]] 
[Mon, 20 Jun 2011 13:53:02 -0700] INFO: Run List expands to [chef-server::rubygems-install] 
[Mon, 20 Jun 2011 13:53:02 -0700] INFO: Starting Chef Run for localhost 
[Mon, 20 Jun 2011 13:53:03 -0700] INFO: Processing user[chef] action create (chef-server::rubygems-install line 30) 
[Mon, 20 Jun 2011 13:53:03 -0700] INFO: Processing package[erlang] action install (erlang::default line 26) 
[Mon, 20 Jun 2011 13:53:04 -0700] ERROR: package[erlang] (erlang::default line 26) has had an error 
[Mon, 20 Jun 2011 13:53:04 -0700] ERROR: Running exception handlers 
[Mon, 20 Jun 2011 13:53:04 -0700] ERROR: Exception handlers complete 
[Mon, 20 Jun 2011 13:53:04 -0700] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out 
[Mon, 20 Jun 2011 13:53:04 -0700] FATAL: Chef::Exceptions::Package: package[erlang] (erlang::default line 26) had an error: No version specified, and no candidate version available for erlang 

我檢查了谷歌,他們通過幾年前的RPM引用了一個過時的鏈接。我有erlang安裝:

[root @ chef〜]#erl --version Erlang R14B03(erts-5.8.4)[source] [64-bit] [rq:1] [async-threads:0] [HIPE] [內核調查:假]

任何想法將受到歡迎

回答

0

以上對CentOS 5.x不起作用。

在/etc/yum.conf中,我不得不改變...

reposdir=/etc/false 

...到...

reposdir=/etc/yum.repos.d/