Skip to content

Instantly share code, notes, and snippets.

@safarista
Created July 27, 2012 16:20
Show Gist options
  • Save safarista/3188958 to your computer and use it in GitHub Desktop.
Save safarista/3188958 to your computer and use it in GitHub Desktop.
Why is the gem term-ansicolor not found in my path? I have it in the global gemset for 1.9.2
Nelsons-MacBook-Pro:triplexxx the-crab$ ruby xxx.rb
> 1 + 1
/Users/the-crab/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- term/ansicolor (LoadError)
from /Users/the-crab/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/folders/vl/th7n8fdx6yv7npscx0qsvyhh0000gn/T/irb320120727-1310-18zk341:3
1.8.7 =>
1.9.2 => 2
/Users/the-crab/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- term/ansicolor (LoadError)
from /Users/the-crab/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/folders/vl/th7n8fdx6yv7npscx0qsvyhh0000gn/T/irb320120727-1310-18zk341:3:in `<main>'
1.9.3 =>
>
@safarista
Copy link
Author

Ok. If anyone gets this same error. Just gem install term-ansicolor and all other gems in all your different ruby versions. Install them in the global or default gemsets for it to work.

@notapatch
Copy link

For the record I was setting up my mac-book, term-ansicolor was already in the '$ gem list' and got the same error when running '$ rspec spec', in my case it was because I wasn't prepending 'bundle exec'. Doh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment