Run "which -a gem". Do you see multiple unique locations? If so, gem list using the full path to gem. E.g. "/usr/bin/gem list" and "/usr/local/bin/gem list". My guess is that you'll see that one of the lists has i18n and the other doesn't.


RESULT: i18n in both places

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Last login: Thu Apr 14 08:59:17 on ttys000
[email protected]:~/Dropbox/ClaimAway2$ (master) $ which -a gem
/usr/local/bin/gem
/usr/local/bin/gem
/usr/bin/gem
/usr/local/bin/gem
[email protected]:~/Dropbox/ClaimAway2$ (master) $ /usr/local/bin/gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.6, 3.0.4, 3.0.0)
actionpack (3.0.6, 3.0.4, 3.0.0)
activemodel (3.0.6, 3.0.4, 3.0.0)
activerecord (3.0.6, 3.0.4, 3.0.0)
activeresource (3.0.6, 3.0.4, 3.0.0)
activesupport (3.0.6, 3.0.4, 3.0.0)
arel (2.0.9, 1.0.1)
aws-s3 (0.6.2)
bcrypt-ruby (2.1.2)
builder (2.1.2)
bundler (1.0.12, 1.0.10)
cancan (1.4.0)
columnize (0.3.1)
devise (1.1.3)
encryptor (1.1.1)
erubis (2.6.6)
factory_girl (1.3.2)
factory_girl_rails (1.0)
i18n (0.5.0, 0.4.2)
jquery-rails (0.2.7)
linecache (0.43)
mail (2.2.15)
mime-types (1.16)
mysql2 (0.2.6)
paperclip (2.3.3)
polyglot (0.3.1)
rack (1.2.2)
rack-mount (0.6.14, 0.6.13)
rack-test (0.5.7)
rails (3.0.6, 3.0.0)
railties (3.0.6, 3.0.4, 3.0.0)
rake (0.8.7)
rdoc (2.5.11)
rdoc-data (2.5.3)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubygems-update (1.7.2, 1.5.2)
shoulda (2.11.3)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.1)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.26, 0.3.25)
warden (0.10.7)
xml-simple (1.0.12)
[email protected]:~/Dropbox/ClaimAway2$ (master) $ /usr/bin/gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.0, 2.3.5, 1.3.6)
actionpack (3.0.0, 2.3.5, 1.13.6)
actionwebservice (1.2.6)
activemodel (3.0.0)
activerecord (3.0.0, 2.3.5, 1.15.6)
activeresource (3.0.0, 2.3.5)
activesupport (3.0.0, 2.3.5, 1.4.4)
acts_as_ferret (0.4.3)
arel (1.0.1)
aws-s3 (0.6.2)
bcrypt-ruby (2.1.2)
builder (2.1.2)
bundler (1.0.7)
cancan (1.4.0)
capistrano (2.5.2)
cgi_multipart_eof_fix (2.5.0)
columnize (0.3.1)
configuration (1.2.0)
daemons (1.0.10)
devise (1.1.3)
dnssd (0.6.0)
encryptor (1.1.1)
erubis (2.6.6)
factory_girl (1.3.2)
factory_girl_rails (1.0)
fastthread (1.0.1)
fcgi (0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
heroku (1.13.7)
highline (1.5.0)
hpricot (0.6.164)
i18n (0.4.1)
json_pure (1.4.6)
launchy (0.3.7)
libxml-ruby (1.1.2)
linecache (0.43)
mail (2.2.7)
mime-types (1.16)
mongrel (1.1.5)
mysql2 (0.2.6)
needle (1.3.0)
net-scp (1.0.1)
net-sftp (2.0.1, 1.1.1)
net-ssh (2.0.4, 1.1.4)
net-ssh-gateway (1.0.0)
paperclip (2.3.3)
polyglot (0.3.1)
rack (1.0.1)
rails (3.0.0, 2.3.5, 1.2.6)
railties (3.0.0)
rake (0.8.7, 0.8.3)
RedCloth (4.1.1)
rest-client (1.6.1)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-openid (2.1.2)
ruby-yadis (0.3.4)
rubygems-update (1.3.7)
rubynode (0.1.5)
shoulda (2.11.3)
sqlite3-ruby (1.2.4)
termios (0.9.4)
thor (0.14.3)
treetop (1.4.9, 1.4.8)
warden (0.10.7)
xml-simple (1.0.12)
xmpp4r (0.4)

Run "which" on rails, bundler, and gem. Run "head -1" on each of those paths. Does the ruby path match in all of them?


RESULT: Yes, it matches

1
2
3
4
5
6
7
8
9
10
11
12
13
[email protected]:~/Dropbox/ClaimAway2$ (master) $ which rails
/usr/local/bin/rails
[email protected]:~/Dropbox/ClaimAway2$ (master) $ head -1 /usr/local/bin/rails
#!/usr/local/bin/ruby
[email protected]:~/Dropbox/ClaimAway2$ (master) $ which gem
/usr/local/bin/gem
[email protected]:~/Dropbox/ClaimAway2$ (master) $ head -1 /usr/local/bin/gem
#!/usr/local/bin/ruby
[email protected]:~/Dropbox/ClaimAway2$ (master) $ which bundle
/usr/local/bin/bundle
[email protected]:~/Dropbox/ClaimAway2$ (master) $ head -1 /usr/local/bin/bundle 
#!/usr/local/bin/ruby

Another suspect is the "sudo" command. You may also want to run the "which" command via sudo, e.g. sudo sh -c 'which gem'


RESULT: Not totally sure what I'm looking for but this looks ok.

1
2
3
4
[email protected]:~/Dropbox/ClaimAway2$ (master) $ sudo sh -c 'which gem'
Password:
/usr/local/bin/gem