A
A
Alexander Wolf2015-03-12 00:47:35
ruby
Alexander Wolf, 2015-03-12 00:47:35

How to install librarian-chef under windows?

Hey! On startup gem install librarian-chef, the following errors occur:

Errors
$ gem install librarian-chef
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing librarian-chef:
        ERROR: Failed to build gem native extension.

    c:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -rubygems c:/RailsInstaller/Ruby2.1
.0/lib/ruby/gems/2.1.0/gems/rake-10.4.2/bin/rake RUBYARCHDIR=c:/RailsInstaller/R
uby2.1.0/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/chef-12.1.1-x86-mingw3
2 RUBYLIBDIR=c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86-ming
w32/2.1.0/chef-12.1.1-x86-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!
Errno::EIO: Input/output error - RegCreateKeyEx

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

rake failed, exit code 1

Gem files will remain installed in c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1
.0/gems/chef-12.1.1-x86-mingw32 for inspection.
Results logged to c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86
-mingw32/2.1.0/chef-12.1.1-x86-mingw32/gem_make.out

I run it all in git bash, but in cmd the same trouble. What to do? Windows 8.1, x64.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Chernik, 2015-03-13
@vladchernik

Unfortunately, the fact is that you will constantly run into such errors when trying to install gems and other libraries for RoR in Windows.
If you want to keep Windows and work comfortably with RoR, install some kind of Ubuntu or Linux Mint in a virtual machine. This will save you from most of the stupid mistakes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question