簡體   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

我正在嘗試在AWS的RHEL6 ec2實例上安裝Chef服務器11.x,並使用“ gem install Chef -no-ri -no-rdoc”安裝刀,但出現以下錯誤。 請幫我解決。

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

應該根據谷歌快速搜索來修復它

兩個問題:

  1. 您無需安裝chef-client即可安裝chef-server,兩者是獨立的。
  2. 安裝Chef-server的方法是轉到http://www.getchef.com/chef/install/ ,然后單擊Chef Server選項卡。 然后選擇您的操作系統和版本,它將為您提供RPM的鏈接。

您可以在文檔中找到有關安裝Chef-server的更多詳細說明。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM