or Create a profile
22 Sep, 2011 05:43 PM
My system is ubuntu v10.04 with ruby 1.8 and rails 2.3.8.
I tried to install a gem 'whenever' which required rubygems
version 1.3.6 or greater.
I tried the recommended approach to upgrading gem i.e. gem
update --system but that complained that debian and ubuntu do not
allow this. Looking around on Google I found the following:
gem install rubygems-update cd
gem install rubygems-update
I ran the above substituting 1.8 for 1.9.1 and that appeared to
work. i.e. I could then run :
sudo gem install whenever
and that installed the current version of whenever.
However if I now try to start console using script/console I get
an error message saying :
Missing the Rails 2.3.8 gem. Please gem install -v=2.3.8
rails, update your RAILS_GEM_VERSION setting in
config/environment.rb for the Rails version you do have installed,
or comment out RAILS_GEM_VERSION to use the latest version
gem install -v=2.3.8
It would appear that there is a gems directory under
/var/lib/gems/... and another in my home directory
The bulk of my gems are installed in /var/lib/gems etc but a few
(the ones that I manually installed after ruby and rails were first
installed on the system) are in $HOME/.gems etc. Included in the
latter is the rubygems-update-1.8.10 gem.
The help I need is in undoing whatever has happened so that the
system can go back to looking at /var/lib/gems and I can continue
to use script/console. By the way the app itself seems to be
unaffected by this although I haven't completed all the tests
If I run gem -v I get 1.8.10
Please help me get back to where I was or explain what I must do
to rectify this problem.
Nick Quaranto closed this discussion
on 23 Sep, 2011 03:22 PM.
Comments are currently closed for this discussion.
You can start a new one.
1 person watching.
No more actions from RubyGems.org or the discussion starter are required.
This discussion is private.
Only you and RubyGems.org support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
Powered by Tender™.