paulczar / meez

rubygem to set up opinionated TDD chef cookbook
73 stars 17 forks source link

Could not find meez among gems #16

Closed amdprophet closed 10 years ago

amdprophet commented 10 years ago

I've set up ChefDK and installed meez using chef gem install meez, but when I try to run the meez command I'm getting:

/opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'meez' (>= 0) among 59 total gem(s) (Gem::LoadError)
    from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
    from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
    from /home/justin/.chefdk/gem/ruby/2.1.0/bin/meez:22:in `<main>'

My PATH:

/home/justin/.chefdk/gem/ruby/2.1.0/bin:/home/justin/.rvm/gems/ruby-2.1.2/bin:/home/justin/.rvm/gems/ruby-2.1.2@global/bin:/home/justin/.rvm/rubies/ruby-2.1.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/justin/.rvm/bin:/home/justin/.rvm/bin

OS: Ubuntu 14.04

paulczar commented 10 years ago

sorry I screwed up the gemspec for the previous release. reinstall it ( 0.2.5 ) and you should be good.

amdprophet commented 10 years ago

I'm still running into the same issue with 0.2.5:

➜  ~  meez
/opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'meez' (>= 0) among 58 total gem(s) (Gem::LoadError)
    from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
    from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
    from /home/justin/.chefdk/gem/ruby/2.1.0/bin/meez:22:in `<main>'
➜  ~  which -p meez
/home/justin/.chefdk/gem/ruby/2.1.0/bin/meez
amdprophet commented 10 years ago

I installed outside of ChefDK and things are working now. It's likely something on my machine that's causing the issue. Thanks for the fix!