[英]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
應該根據谷歌快速搜索來修復它
兩個問題:
您可以在文檔中找到有關安裝Chef-server的更多詳細說明。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.