Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minitest-chef-handler gem not installing properly on windows #86

Open
trekr5 opened this issue Jan 12, 2015 · 1 comment
Open

Minitest-chef-handler gem not installing properly on windows #86

trekr5 opened this issue Jan 12, 2015 · 1 comment

Comments

@trekr5
Copy link

trekr5 commented Jan 12, 2015

Hello,

I'm trying to install the minitest-chef-handler gem on a windows 8.1 machine (running Ruby 2.0.0) and have the following errors:-

C:\git\GG.Infra.UserManager>gem install minitest-chef-handler
Fetching: minitest-4.7.5.gem (100%)
Successfully installed minitest-4.7.5
Fetching: ci_reporter-1.9.3.gem (100%)
Successfully installed ci_reporter-1.9.3
Fetching: minitest-chef-handler-1.0.3.gem (100%)
Successfully installed minitest-chef-handler-1.0.3
Building native extensions. This could take a while...
ERROR: Error installing minitest-chef-handler:
ERROR: Failed to build gem native extension.

C:/opscode/chefdk/embedded/bin/ruby.exe extconf.rb

creating Makefile
/c/Users/aebirim/.chefdk/gem/ruby/2.0.0/gems/libyajl2-1.2.0/ext/libyajl2
extconf.rb:104:in makemakefiles': unhandled exception from extconf.rb:138:in

'

Gem files will remain installed in c:/Users/aebirim/.chefdk/gem/ruby/2.0.0/gems/libyajl2-1.2.0 for inspection.
Results logged to c:/Users/aebirim/.chefdk/gem/ruby/2.0.0/gems/libyajl2-1.2.0/ext/libyajl2/gem_make.out

I'm running the following Chef gems:-
chef (11.14.0.rc.2 x86-mingw32, 11.12.8 x86-mingw32)
chefspec (4.0.1)

Also when I attempt to do a require 'minitest-chef-handler' within irb, (require minitest-chef-handler gem) I receive the following error:-

C:\git\GG.Infra.UserManager>irb
irb(main):001:0> require 'minitest-chef-handler'
LoadError: cannot load such file -- chef
from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in require' from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:inrescue in require'
from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in require' from c:/Users/aebirim/.chefdk/gem/ruby/2.0.0/gems/minitest-chef-handler-1.0.3/lib/minitest-chef-handler/resources.rb:1:in<top (required)>'
from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in require' from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:inrequire'
from c:/Users/aebirim/.chefdk/gem/ruby/2.0.0/gems/minitest-chef-handler-1.0.3/lib/minitest-chef-handler.rb:3:in <top (required)>' from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:inrequire'
from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in rescue in require' from C:/opscode/chefdk/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:inrequire'
from (irb):1
from C:/opscode/chefdk/embedded/bin/irb:12:in `

'

Can someone please tell me how I can solve this problem?

@lamont-granquist
Copy link
Contributor

this looks like a cygwin path:

/c/Users/aebirim/.chefdk/gem/ruby/2.0.0/gems/libyajl2-1.2.0/ext/libyajl2

the whole chef ecosystem doesn't support cygwin very well and we don't support it. if you can't figure it out on your own, its best to not use it. chefdk itself is mingw based and not cygwin and you're probably crossing the streams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants