带有流浪汉的VM,安装librarian-chef时出错

时间:2016-06-17 16:43:34

标签: ruby-on-rails ruby vagrant chef virtualbox

所以我试图安装虚拟机来开发和测试ruby代码。我正试图安装librarian-chef gem并且我得到了这个错误。

$ gem install librarian-chef
ERROR:  Error installing librarian-chef:
    ERROR: Failed to build gem native extension.

current directory: D:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chef-12.11.18-universal-mingw32/ext/win32-eventlog
D:/Ruby23-x64/bin/ruby.exe -rubygems D:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rake-11.2.2/exe/rake RUBYARCHDIR=D:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/chef-12.11.18-universal-mingw32 RUBYLIBDIR=D:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/chef-12.11.18-universal-mingw32
checking for windmc... yes
checking for windres... yes
 checking for gcc... yes
 windmc chef-log.man
windres -i chef-log.rc -o resource.o
gcc -o chef-log.dll -shared resource.o
rake aborted!
LoadError: cannot load such file -- ffi_c

LoadError: cannot load such file -- 2.3/ffi_c

LoadError: cannot load such file -- win32/eventlog

 Tasks: TOP => default => register
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in D:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chef-12.11.18-universal-mingw32 for inspection.
Results logged to D:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/chef-12.11.18-universal-mingw32/gem_make.out
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...

然后退出

以下是gem_make.out文件的内容

current directory: D:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chef-12.11.18-universal-mingw32/ext/win32-eventlog
D:/Ruby23-x64/bin/ruby.exe -rubygems D:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rake-11.2.2/exe/rake RUBYARCHDIR=D:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/chef-12.11.18-universal-   mingw32 RUBYLIBDIR=D:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/chef-12.11.18-universal-mingw32
checking for windmc... yes
checking for windres... yes
checking for gcc... yes
windmc chef-log.man
windres -i chef-log.rc -o resource.o
gcc -o chef-log.dll -shared resource.o
rake aborted!
LoadError: cannot load such file -- ffi_c

LoadError: cannot load such file -- 2.3/ffi_c

LoadError: cannot load such file -- win32/eventlog

 Tasks: TOP => default => register
 (See full trace by running task with --trace)

rake failed, exit code 1

顺便说一句,我使用的指南是This。如果有人有更合适的指南帮助他们配置和设置vm用于此用途,我将非常感激。

0 个答案:

没有答案