本文介绍了在Windows上安装Chef Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在关注这个过程:
我试图让Chef Server启动并运行在Windows 2008 Server的服务器上。 a href =http://wiki.opscode.com/display/chef/Installing+Chef+Server+Manually =nofollow> http://wiki.opscode.com/display/chef/Installing+Chef+ Server + Manually



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




$ b

  C:\ Users \Administrator> gem install chef-服务器chef-server-api chef-server chef- 
solr
暂时增强PATH以包含DevKit ...
构建本机扩展。这可能需要一段时间...
错误:安装厨师服务器时出错:
错误:无法构建gem原生扩展。

C:/opscode/chef/embedded/bin/ruby.exe extconf.rb
在-lgecodesearch中检查main()... no
===== ================================================== =========================
=========
必须安装Gecode> 3.5( http://www.gecode.org/)。

OSX:
brew安装gecode

为方便起见,我们为Debian / Ubuntu构建了Gecode(< release>清晰或m
averick ):
将以下两行添加到/etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com< release> main
deb-src http://apt.opscode.com< release> main
然后运行:
curl http://apt.opscode.com/[email protected] | sudo apt-key add
-
sudo apt-get update
sudo apt-get install libgecode-dev
$ b其他发行版可以从源代码构建。
============================================== ==================================
=========
*** extconf.rb失败***
由于某种原因无法创建Makefile,可能缺少
必需的库和/或头文件。查看mkmf.log文件以获取更多
的详细信息。您可能需要配置选项。

提供的配置选项:
--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:在< main>中:Gecode未安装(RuntimeError)


Gem文件将保留安装在C:/ opscode / chef / embedded / lib / ruby​​ /宝石/ 1.9.1 /
宝石/ dep_selector-0.0.8进行检查。
记录到C的结果:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/dep_selector
-0.0.8 / ext / dep_gecode / gem_make.out
Building本地扩展。这可能需要一段时间...
错误:安装chef-server-api时出错:
错误:无法构建gem本机扩展。

C:/opscode/chef/embedded/bin/ruby.exe extconf.rb
在-lgecodesearch中检查main()... no
===== ================================================== =========================
=========
必须安装Gecode> 3.5( http://www.gecode.org/)。

OSX:
brew安装gecode

为方便起见,我们为Debian / Ubuntu构建了Gecode(< release>清晰或m
averick ):
将以下两行添加到/etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com< release> main
deb-src http://apt.opscode.com< release> main
然后运行:
curl http://apt.opscode.com/[email protected] | sudo apt-key add
-
sudo apt-get update
sudo apt-get install libgecode-dev

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



任何人都知道我可以如何继续?我对Ruby或Gecode一无所知。



TIA

解决方案

Windows上不支持Chef服务器。


I'm trying to get a Chef Server up and running on a Windows 2008 Server box.

I'm following the process here:http://wiki.opscode.com/display/chef/Installing+Chef+Server+Manually

I've just installed Gecode and the next step is a ruby command:

gem install chef-server chef-server-api chef-server chef-solr

However, running this command gives the following output suggesting that Gecode isn't installed.

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/[email protected] | 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/[email protected] | sudo apt-key add
-
    sudo apt-get update
    sudo apt-get install libgecode-dev

I installed version 3.7.3 with the default options.

Anyone have an idea how I can proceed? I don't know anything about Ruby or Gecode.

TIA

解决方案

Chef server is not supported on Windows.

这篇关于在Windows上安装Chef Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 08:26