Guest User

Untitled

a guest
Jan 12th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. ##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.
  2.  
  3. ##RESULT: i18n in both places
  4.  
  5. Last login: Thu Apr 14 08:59:17 on ttys000
  6. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ which -a gem
  7. /usr/local/bin/gem
  8. /usr/local/bin/gem
  9. /usr/bin/gem
  10. /usr/local/bin/gem
  11. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ /usr/local/bin/gem list
  12.  
  13. *** LOCAL GEMS ***
  14.  
  15. abstract (1.0.0)
  16. actionmailer (3.0.6, 3.0.4, 3.0.0)
  17. actionpack (3.0.6, 3.0.4, 3.0.0)
  18. activemodel (3.0.6, 3.0.4, 3.0.0)
  19. activerecord (3.0.6, 3.0.4, 3.0.0)
  20. activeresource (3.0.6, 3.0.4, 3.0.0)
  21. activesupport (3.0.6, 3.0.4, 3.0.0)
  22. arel (2.0.9, 1.0.1)
  23. aws-s3 (0.6.2)
  24. bcrypt-ruby (2.1.2)
  25. builder (2.1.2)
  26. bundler (1.0.12, 1.0.10)
  27. cancan (1.4.0)
  28. columnize (0.3.1)
  29. devise (1.1.3)
  30. encryptor (1.1.1)
  31. erubis (2.6.6)
  32. factory_girl (1.3.2)
  33. factory_girl_rails (1.0)
  34. i18n (0.5.0, 0.4.2)
  35. jquery-rails (0.2.7)
  36. linecache (0.43)
  37. mail (2.2.15)
  38. mime-types (1.16)
  39. mysql2 (0.2.6)
  40. paperclip (2.3.3)
  41. polyglot (0.3.1)
  42. rack (1.2.2)
  43. rack-mount (0.6.14, 0.6.13)
  44. rack-test (0.5.7)
  45. rails (3.0.6, 3.0.0)
  46. railties (3.0.6, 3.0.4, 3.0.0)
  47. rake (0.8.7)
  48. rdoc (2.5.11)
  49. rdoc-data (2.5.3)
  50. ruby-debug (0.10.3)
  51. ruby-debug-base (0.10.3)
  52. rubygems-update (1.7.2, 1.5.2)
  53. shoulda (2.11.3)
  54. sqlite3 (1.3.3)
  55. sqlite3-ruby (1.3.1)
  56. thor (0.14.6)
  57. treetop (1.4.9)
  58. tzinfo (0.3.26, 0.3.25)
  59. warden (0.10.7)
  60. xml-simple (1.0.12)
  61. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ /usr/bin/gem list
  62.  
  63. *** LOCAL GEMS ***
  64.  
  65. abstract (1.0.0)
  66. actionmailer (3.0.0, 2.3.5, 1.3.6)
  67. actionpack (3.0.0, 2.3.5, 1.13.6)
  68. actionwebservice (1.2.6)
  69. activemodel (3.0.0)
  70. activerecord (3.0.0, 2.3.5, 1.15.6)
  71. activeresource (3.0.0, 2.3.5)
  72. activesupport (3.0.0, 2.3.5, 1.4.4)
  73. acts_as_ferret (0.4.3)
  74. arel (1.0.1)
  75. aws-s3 (0.6.2)
  76. bcrypt-ruby (2.1.2)
  77. builder (2.1.2)
  78. bundler (1.0.7)
  79. cancan (1.4.0)
  80. capistrano (2.5.2)
  81. cgi_multipart_eof_fix (2.5.0)
  82. columnize (0.3.1)
  83. configuration (1.2.0)
  84. daemons (1.0.10)
  85. devise (1.1.3)
  86. dnssd (0.6.0)
  87. encryptor (1.1.1)
  88. erubis (2.6.6)
  89. factory_girl (1.3.2)
  90. factory_girl_rails (1.0)
  91. fastthread (1.0.1)
  92. fcgi (0.8.7)
  93. ferret (0.11.6)
  94. gem_plugin (0.2.3)
  95. heroku (1.13.7)
  96. highline (1.5.0)
  97. hpricot (0.6.164)
  98. i18n (0.4.1)
  99. json_pure (1.4.6)
  100. launchy (0.3.7)
  101. libxml-ruby (1.1.2)
  102. linecache (0.43)
  103. mail (2.2.7)
  104. mime-types (1.16)
  105. mongrel (1.1.5)
  106. mysql2 (0.2.6)
  107. needle (1.3.0)
  108. net-scp (1.0.1)
  109. net-sftp (2.0.1, 1.1.1)
  110. net-ssh (2.0.4, 1.1.4)
  111. net-ssh-gateway (1.0.0)
  112. paperclip (2.3.3)
  113. polyglot (0.3.1)
  114. rack (1.0.1)
  115. rails (3.0.0, 2.3.5, 1.2.6)
  116. railties (3.0.0)
  117. rake (0.8.7, 0.8.3)
  118. RedCloth (4.1.1)
  119. rest-client (1.6.1)
  120. ruby-debug (0.10.3)
  121. ruby-debug-base (0.10.3)
  122. ruby-openid (2.1.2)
  123. ruby-yadis (0.3.4)
  124. rubygems-update (1.3.7)
  125. rubynode (0.1.5)
  126. shoulda (2.11.3)
  127. sqlite3-ruby (1.2.4)
  128. termios (0.9.4)
  129. thor (0.14.3)
  130. treetop (1.4.9, 1.4.8)
  131. warden (0.10.7)
  132. xml-simple (1.0.12)
  133. xmpp4r (0.4)
  134.  
  135. ##Run "which" on rails, bundler, and gem. Run "head -1" on each of those paths. Does the ruby path match in all of them?
  136.  
  137. ##RESULT: Yes, it matches
  138.  
  139. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ which rails
  140. /usr/local/bin/rails
  141. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ head -1 /usr/local/bin/rails
  142. #!/usr/local/bin/ruby
  143. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ which gem
  144. /usr/local/bin/gem
  145. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ head -1 /usr/local/bin/gem
  146. #!/usr/local/bin/ruby
  147. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ which bundle
  148. /usr/local/bin/bundle
  149. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ head -1 /usr/local/bin/bundle
  150. #!/usr/local/bin/ruby
  151.  
  152. ##Another suspect is the "sudo" command. You may also want to run the "which" command via sudo, e.g. sudo sh -c 'which gem'
  153.  
  154. ##RESULT: Not totally sure what I'm looking for but this looks ok.
  155.  
  156. kevindewalt@new-host-4:~/Dropbox/ClaimAway2$ (master) $ sudo sh -c 'which gem'
  157. Password:
  158. /usr/local/bin/gem
Add Comment
Please, Sign In to add comment