ruby - 无法在centos上手动安装chef-server旧版本

标签 ruby linux chef-infra

我在 Centos 6.5 上,希望 chef-server 版本 10.30.4 为 here .

我正在通过 RVM 使用 1.9.3 的 ruby​​ 版本。关于这个link .

甚至在安装了所有依赖项之后 this page

喜欢

  • CouchDB、RabbitMQ、Java、GEOS、zlib 和 libxml,设置 GPG key也试过yum groupinstall的锤子法 “开发工具”

但出现以下错误

gem install chef-server -v "10.30." 

注意:所有这些都是以 root 身份完成的。

错误是

ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError) no such name (https://api.rubygems.org/api/v1/dependencies?gems=mixlib-authentication)

顺便说一句,gem 源代码正确指向

gem 来源 * 当前来源 *

https://rubygems.org/

做了之后好像有一些进步

gem update

现在错误是

ERROR: Error installing chef-server: ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-1.9.3-p545/bin/ruby extconf.rb checking for main() in -lgecodesearch... no

========================================================================================= Gecode >3.5 must be installed (http://www.gecode.org/).

最佳答案

您是否尝试安装 Chef 11?这是对 chef 10 的重大改进。

http://docs.opscode.com/install_server.html

新的综合包意味着您需要做的就是下载一个 RPM 包并运行配置任务:

sudo yum install https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.0.11-1.el6.x86_64.rpm
sudo chef-server-ctl reconfigure

关于ruby - 无法在centos上手动安装chef-server旧版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22243444/

相关文章:

Vagrant 与 Chef Zero 在初始启动时失败,但在后续配置中成功

linux - 通过 Chef 在 Amazon Linux 上安装 Zabbix Agent - Agent Starting and Stopping Got signal [signal :15(SIGTERM)reason:0]. Exiting

ruby - 如何检查变量是否是类的实例?

ruby-on-rails - Rails 3:DataObjects::SQLError——我如何阻止它们在 *warnings* 上产生错误?

ruby-on-rails - 渲染页面并传递参数

linux - TTY 输入队列太慢无法返回数据

linux - AWK脚本打印字段数最多的行

css - 每行四个产品 Bootstrap/ROR 停止使用添加的信息?

linux - 如何调试间歇性失败的 upstart 脚本?

arrays - Chef 使用数组中的变量