I have what looks like several versions of rubygems installed on my machine, when I gem list I see all my gems, but when I go to run scripts I get error messages like
Missing these required gems: SystemTimer
Is there any methodology for removing all but one version of rubygems? Ideally, I would like to have access to all the gems that appear in the list of gems in my programs.
From the Gem Environment - RUBY EXECUTIVE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
However, if I run:
$ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby script/mailer_daemon_fetcher start production no such file to load -- SystemTimer /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:208:in `load' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `each' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:164:in `process' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `send' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run' ./script/../config/environment.rb:13 script/mailer_daemon_fetcher:5:in `require' script/mailer_daemon_fetcher:5 no such file to load -- SystemTimer /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:208:in `load' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `each' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:169:in `process' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `send' /Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run' ./script/../config/environment.rb:13 script/mailer_daemon_fetcher:5:in `require' script/mailer_daemon_fetcher:5 Missing these required gems: SystemTimer You're running: ruby 1.8.7.72 at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby rubygems 1.3.5 at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8, /Library/Ruby/Gems/1.8
Note that in the above, I manually call ruby ββ** / System / Library / Frameworks / Ruby.framework / Versions / 1.8 / usr / bin / ruby ββ** this is the same file as my / usr / bin / ruby, and my GEM_PATH has the value /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
full output of the gem environment is available here: http://pastie.org/661104
source share