Ruby 我正在尝试在RHEL6 ec2实例上安装chef server 11.x,并使用gem安装刀子,结果出错
我试图在AWS上的RHEL6 ec2实例上安装chef server 11.x,并使用 “gem安装厨师-无ri-无rdoc” 但我犯了以下错误。请帮我解决这个问题Ruby 我正在尝试在RHEL6 ec2实例上安装chef server 11.x,并使用gem安装刀子,结果出错,ruby,amazon-web-services,chef-infra,knife,Ruby,Amazon Web Services,Chef Infra,Knife,我试图在AWS上的RHEL6 ec2实例上安装chef server 11.x,并使用 “gem安装厨师-无ri-无rdoc” 但我犯了以下错误。请帮我解决这个问题 Building native extensions. This could take a while... .. . ERROR: Error installing chef: ERROR: Failed to build gem native extension. /usr/bin/ruby
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