尝试安装knife-ec2 [英] Trying to install knife-ec2
本文介绍了尝试安装knife-ec2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的厨师-客户端版本是11.10.0
,试图安装knife-ec2
my chef-client version is 11.10.0 trying to install knife-ec2
gem install knife-ec2
错误:执行gem ...(Errno :: EACCES)
权限被拒绝-/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.1/.autotest
我尝试了其他命令:
sudo /opt/chef/embedded/bin/gem install knife-ec2
Building native extensions. This could take a while...
错误:安装knife-ec2时出错:
错误:无法构建gem本机扩展。
ERROR: Error installing knife-ec2: ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-linux-gnu/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-linux-gnu/ports/libxml2/2.8.0/compile .log' to see what happened.
*** extconf.rb failed ***
推荐答案
此错误消息告诉您错过了什么:
This error message tells what you missed:
Running 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-linux-gnu/ports/libxml2/2.8.0/compile .log' to see what happened.
*** extconf.rb failed ***
它尝试编译libxml2但失败。通常,您需要包含头文件的开发库来编译这些依赖项。
It tries to compile libxml2 but fails. Usually you need development library that contains header files to compile those dependencies.
解决方案:
$ sudo apt-get install libxml2-dev
这篇关于尝试安装knife-ec2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文