to_specs': Could not find chef ( = 0) amongst [] (Gem::LoadError)
This happened to me when I wasn't using system ruby, thanks to RVM:
$ echo $GEM_HOME
/home/spiffytech/.rvm/gems/ruby-1.9.3-p448@rails3tutorial2ndEd
Note that @rails3tutorial2ndEd
denotes a special Ruby install, and not the system install.
To fix this and make knife work again, I ran:
rvm reset
run dependency.rb:247:in `to_specs': Could not find bundler
in my bash_profile
i had $PATH:~/ruby/bin
and instead I needed ~/ruby/bin:$PATH
. It was was using the gem in /usr/bin
instead of ~/ruby/bin
.
Could not find rails ( = 0) amongst [] (Gem::LoadError)
I had to sudo gem install bundler
to make it work again.
Could not find 'librarian-chef' (Gem::LoadError)
You need to install librarian-chef
:
sudo gem install librarian-chef
If you don't have installed gem
so far, you'll also need to install rubygems
before:
sudo yum install rubygems
Every chef commands gets error (Mac OS X)
I guess you installed Chef through rubygems. It requires mime-types ~> 1.16, but you have 2.0 installed. You should uninstall it and install the right version.
gem uninstall mime-types
gem install mime-types -v 1.16
Gem::LoadError when starting Rails server
Finally got it working. For anyone who wants the full shell log, here it is: link
The issue was I believe with versions. When using RVM, you have to set terminal to run command as a login shell. Since for some reason everything needs to be run as sudo to work properly (I'm new to Linux), so I ran sudo gem install rails
, then sudo bundle install
, and now it seems to work.
Can't run Chef as root
Well rvm reset
worked after all.
So the "solution" post that I mocked earlier was actually the solution I was looking for. Karma.
Related Topics
Notices for Sequence After Running Migration in Rails on Postgresql Application
How to Format This International Phone Number in Rails
How to Format Irb Command Prompt
Problem with Quantifiers and Look-Behind
Why Does Ruby String#Split Not Treat Consecutive Trailing Delimiters as Separate Entities
How to Insert Video Youtube API V3 Through Service Account with Ruby
Ruby, !! Operator (A/K/A the Double-Bang)
Ruby 1.9 - Invalid Multibyte Char (Us-Ascii)
Combine Array of Array into All Possible Combinations, Forward Only, in Ruby
Calling Sinatra from Within Sinatra
Why Is Gets Throwing an Error When Arguments Are Passed to My Ruby Script
Ruby - Send Get Request with Headers
Extract All Email Addresses from Some .Txt Documents Using Ruby