Skip to content

Instantly share code, notes, and snippets.

@jeremyd
Created May 22, 2009 06:23
Show Gist options
  • Save jeremyd/115972 to your computer and use it in GitHub Desktop.
Save jeremyd/115972 to your computer and use it in GitHub Desktop.
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> Gem.available(^C
(reverse-i-search)`availab': Gem.^Cailable?('sinatra')
irb(main):002:0> Gem.available?('mixlib-cli')
=> false
irb(main):003:0> `gem install mixlib-cli`
WARNING: Installing to ~/.gem since /opt/local/lib/ruby/gems/1.8 and
/opt/local/bin aren't both writable.
WARNING: You don't have /Users/jeremy/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Unrecognized directive 'short' in README.rdoc
Unrecognized directive 'long' in README.rdoc
Unrecognized directive 'description' in README.rdoc
Unrecognized directive 'default' in README.rdoc
Unrecognized directive 'required' in README.rdoc
Unrecognized directive 'on' in README.rdoc
Unrecognized directive 'boolean' in README.rdoc
Unrecognized directive 'show_options' in README.rdoc
Unrecognized directive 'exit' in README.rdoc
Unrecognized directive 'proc' in README.rdoc
Unrecognized directive 'short' in README.rdoc
Unrecognized directive 'long' in README.rdoc
Unrecognized directive 'description' in README.rdoc
Unrecognized directive 'default' in README.rdoc
Unrecognized directive 'required' in README.rdoc
Unrecognized directive 'on' in README.rdoc
Unrecognized directive 'boolean' in README.rdoc
Unrecognized directive 'show_options' in README.rdoc
Unrecognized directive 'exit' in README.rdoc
Unrecognized directive 'proc' in README.rdoc
=> "Successfully installed mixlib-cli-1.0.4\n1 gem installed\nInstalling ri documentation for mixlib-cli-1.0.4...\nInstalling RDoc documentation for mixlib-cli-1.0.4...\n"
irb(main):004:0> Gem.available?('mixlib-cli')
=> false
irb(main):005:0> Gem.refresh
=> nil
irb(main):006:0> Gem.available?('mixlib-cli')
=> true
irb(main):007:0> require 'mixlib-cli'
LoadError: no such file to load -- mixlib-cli
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment