[英]Chef: Strange Erlang Error when Trying to Run Chef-Solo
Trying to install Chef on my Oracle Linux Box. 尝试在我的Oracle Linux Box上安装Chef。 Got all the way through the below instructions and I get to the following spot:
完成以下说明,我到达以下地点:
Run chef-solo: 运行chef-solo:
(in url): http://wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation (在网址中): http : //wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation
...and I get the following error: ...我收到以下错误:
[root@chefmaster ~]# 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
I checked Google and they refer to an outdated link for Chef via RPM which is a couple of years old. 我检查了谷歌,他们提到了一个过时的链接,通过RPM,这是几年前的RPM。 I have erlang installed:
我安装了erlang:
[root@chef ~]# erl --version Erlang R14B03 (erts-5.8.4) [source] [64-bit] [rq:1] [async-threads:0] [hipe] [kernel-poll:false] [root @ chef~]#erl --version Erlang R14B03(erts-5.8.4)[source] [64-bit] [rq:1] [async-threads:0] [hipe] [kernel-poll:false]
Any ideas would be welcome 任何想法都会受到欢迎
I had this problem as well. 我也有这个问题。 The problem is that the default yum repositories that come with centos (which I am assuming you are on) don't include couch.
问题是与centos一起提供的默认yum存储库(我假设你已经开启)不包括沙发。 You have to add the epel yum repository like so:
您必须添加epel yum存储库,如下所示:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
After doing that, everything should work smoothly. 这样做之后,一切都应该顺利进行。
The above didn't work for me on CentOS 5.x off the bat. 以上对CentOS 5.x起作用不起作用。
In /etc/yum.conf, I had to change... 在/etc/yum.conf中,我不得不改变......
reposdir=/etc/false
... to ... ... 至 ...
reposdir=/etc/yum.repos.d/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.