Skip to content

Instantly share code, notes, and snippets.

@adhusson
Created March 5, 2010 13:33
Show Gist options
  • Select an option

  • Save adhusson/322722 to your computer and use it in GitHub Desktop.

Select an option

Save adhusson/322722 to your computer and use it in GitHub Desktop.
$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0.beta, 2.3.5)
actionpack (3.0.0.beta, 2.3.5)
activemodel (3.0.0.beta)
activerecord (3.0.0.beta, 2.3.5)
activeresource (3.0.0.beta, 2.3.5)
activesupport (3.0.0.beta, 2.3.5)
arel (0.2.1)
builder (2.1.2)
bundler (0.9.10)
erubis (2.6.5)
i18n (0.3.5)
mail (2.1.3)
memcache-client (1.7.8)
mime-types (1.16)
rack (1.1.0, 1.0.1)
rack-mount (0.4.7)
rack-test (0.5.3)
rails (3.0.0.beta)
railties (3.0.0.beta)
rake (0.8.7)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.4)
$ ls /usr/lib/ruby1.9.1/gems/1.9.1/
cache/ doc/ gems/ specifications/
$ ls /usr/lib/ruby1.9.1/gems/1.9.1/gems
abstract-1.0.0/ activesupport-3.0.0.beta/ rack-mount-0.4.7/
actionmailer-2.3.5/ arel-0.2.1/ rack-test-0.5.3/
actionmailer-3.0.0.beta/ builder-2.1.2/ rails-3.0.0.beta/
actionpack-2.3.5/ bundler-0.9.10/ railties-3.0.0.beta/
actionpack-3.0.0.beta/ erubis-2.6.5/ rake-0.8.7/
activemodel-3.0.0.beta/ i18n-0.3.5/ text-format-1.0.0/
activerecord-2.3.5/ mail-2.1.3/ text-hyphen-1.0.0/
activerecord-3.0.0.beta/ memcache-client-1.7.8/ thor-0.13.4/
activeresource-2.3.5/ mime-types-1.16/ tzinfo-0.3.16/
activeresource-3.0.0.beta/ rack-1.0.1/
activesupport-2.3.5/ rack-1.1.0/
p Gem.path
# => ["/usr/lib/ruby1.9.1/gems/1.9.1"]
$ gem env gempath
/usr/lib/ruby1.9.1/gems/1.9.1
$ irb
require 'rubygems'
# => false
require 'builder'
LoadError: no such file to load -- builder
from (irb):2:in `require'
from (irb):2
from /usr/bin/irb:12:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment