gpt4 book ai didi

ruby - 在 Windows 上安装 Chef 服务器

转载 作者:可可西里 更新时间:2023-11-01 10:27:16 26 4
gpt4 key购买 nike

我正在尝试在 Windows 2008 Server 机器上启动并运行 Chef Server。

我正在关注这里的流程: http://wiki.opscode.com/display/chef/Installing+Chef+Server+Manually

我刚刚安装了 Gecode,下一步是 ruby​​ 命令:

gem 安装 chef-server chef-server-api chef-server chef-solr

但是,运行此命令会给出以下输出,表明未安装 Gecode。

C:\Users\Administrator>gem install chef-server chef-server-api chef-server chef-
solr
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing chef-server:
ERROR: Failed to build gem native extension.

C:/opscode/chef/embedded/bin/ruby.exe extconf.rb
checking for main() in -lgecodesearch... no
================================================================================
=========
Gecode >3.5 must be installed (http://www.gecode.org/).

OSX:
brew install gecode

For convenience, we have built Gecode for Debian/Ubuntu (<release> is lucid or m
averick):
Add the following two lines to /etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com <release> main
deb-src http://apt.opscode.com <release> main
Then run:
curl http://apt.opscode.com/packages@opscode.com.gpg.key | sudo apt-key add
-
sudo apt-get update
sudo apt-get install libgecode-dev

Other distributions can build from source.
================================================================================
=========
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/opscode/chef/embedded/bin/ruby
--with-gecodesearchlib
--without-gecodesearchlib
extconf.rb:57:in `<main>': Gecode not installed (RuntimeError)


Gem files will remain installed in C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/
gems/dep_selector-0.0.8 for inspection.
Results logged to C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/dep_selector
-0.0.8/ext/dep_gecode/gem_make.out
Building native extensions. This could take a while...
ERROR: Error installing chef-server-api:
ERROR: Failed to build gem native extension.

C:/opscode/chef/embedded/bin/ruby.exe extconf.rb
checking for main() in -lgecodesearch... no
================================================================================
=========
Gecode >3.5 must be installed (http://www.gecode.org/).

OSX:
brew install gecode

For convenience, we have built Gecode for Debian/Ubuntu (<release> is lucid or m
averick):
Add the following two lines to /etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com <release> main
deb-src http://apt.opscode.com <release> main
Then run:
curl http://apt.opscode.com/packages@opscode.com.gpg.key | sudo apt-key add
-
sudo apt-get update
sudo apt-get install libgecode-dev

我使用默认选项安装了 3.7.3 版。

有人知道我该如何继续吗?我对 Ruby 或 Gecode 一无所知。

TIA

最佳答案

Windows 不支持 Chef 服务器。

关于ruby - 在 Windows 上安装 Chef 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12098330/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com