我在一台装有Vagrant v1.4.1的Windows7机器上工作,我一直在努力安装vagrant-berkshelf插件。我正在遵循Mischa Taylor的blog中的一些说明。我已经安装了VirtualBox (4.2.20)、一个“正常的”Ruby环境(带有DevKit)和berkshelf,它们也运行得很好,但是每当我发出
> vagrant plugin install vagrant-berkshelf该命令在尝试生成
Installing the 'vagrant-berkshelf' plugin. This can take a few minutes...
C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/rubygems/ext/builder.rb:62:in `run':
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
C:/HashiCorp/Vagrant/embedded/bin/ruby.exe extconf.rb
C:/HashiCorp/Vagrant/embedded/bin/ruby.exe: invalid option -J (-h will show valid
options) (RuntimeError)
Gem files will remain installed in C:/Users/user_me/.vagrant.d/gems/gems/hitimes-
1.2.1 for inspection.
Results logged to C:/Users/user_me/.vagrant.d/gems/gems/hitimes-1.2.1/ext/hitimes/c/gem_make.out
from
C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:39:in `block in build'如果我发出
> gem install hitimes这很好用,所以问题似乎出在Vagrant使用的扩展构建器中。我没有太多使用Ruby的经验,我只是想开始学习如何和流浪汉一起使用chef和berkshelf。
发布于 2014-03-07 18:31:09
这可能是由于Ruby的版本尝试rvm来管理您的ruby环境,然后通过rvm下载ruby 1.9.3
rvm use 1.9.3
vagrant plugin install vagrant-berkshelfhttps://stackoverflow.com/questions/20870426
复制相似问题