简体   繁体   English

我正在尝试在RHEL6 ec2实例上安装Chef Server 11.x并使用gem安装刀并出现错误

[英]I am trying to install chef server 11.x on a RHEL6 ec2 instance and install knife using gem and getting error

I am trying to install chef server 11.x on a RHEL6 ec2 instance on AWS and install knife using "gem install chef —no-ri —no-rdoc" But I got following error. 我正在尝试在AWS的RHEL6 ec2实例上安装Chef服务器11.x,并使用“ gem install Chef -no-ri -no-rdoc”安装刀,但出现以下错误。 Please help me to resolve it. 请帮我解决。

Building native extensions.  This could take a while...
..
.
ERROR:  Error installing chef:
        ERROR: Failed to build gem native extension.
        /usr/bin/ruby extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... no
checking for rb_thread_call_without_gvl()... no
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

make
Configuring libffi
/usr/lib/ruby/gems/1.8/gems/ffi-1.9.3/ext/ffi_c/libffi/configure: line 550: 0: Bad file descriptor
make: *** ["/usr/lib/ruby/gems/1.8/gems/ffi-1.9.3/ext/ffi_c/libffi-x86_64-linux"/.libs/libffi_convenience.a] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ffi-1.9.3 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ffi-1.9.3/ext/ffi_c/gem_make.out
ERROR:  Could not find a valid gem '—no-ri' (>= 0) in any repository
ERROR:  Possible alternatives: nori
ERROR:  Could not find a valid gem '—no-rdoc' (>= 0) in any repository
yum install libffi-devel

应该根据谷歌快速搜索来修复它

Two issues: 两个问题:

  1. You don't need to install chef-client to install chef-server, the two are independent. 您无需安装chef-client即可安装chef-server,两者是独立的。
  2. The way to install chef-server is to go to http://www.getchef.com/chef/install/ and click on the Chef Server tab. 安装Chef-server的方法是转到http://www.getchef.com/chef/install/ ,然后单击Chef Server选项卡。 Then select your OS and version and it will give you the link for the RPM. 然后选择您的操作系统和版本,它将为您提供RPM的链接。

You can find more detailed instructions for installing chef-server in the documentation . 您可以在文档中找到有关安装Chef-server的更多详细说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM