You are not logged in.
Hey,
i'm trying to update my rubygems. i'm running into this:
l$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-1.8.21.gem (100%)
WARNING: You don't have $HOME/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
Successfully installed rubygems-update-1.8.21
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - /usr/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.21
the update is installed to $HOME/.gem and shows up properly:
l$ gem list
*** LOCAL GEMS ***
archive-tar-minitar (0.5.2)
bigdecimal (1.1.0)
io-console (0.3)
json (1.6.6, 1.5.4)
minitest (2.5.1)
rake (0.9.2.2 ruby)
rdoc (3.12, 3.9.4)
rubygems-update (1.8.21)
nevertheless, the gem version is:
l$ gem -v
1.8.11
Updateing as root, adding $HOME/.gem/ruby/1.9.1/bin to path or creating the missing directory doesn't do the trick. In the latter case, the file setup.rb is missing, which obviously should be in the missing directory.
Do you have any ideas, what i'm missing?
Last edited by arxx.43 (2012-04-04 06:59:16)
Offline
Same problem here.
Offline
Perform a system-wide install for rubygems-update-1.8.21 first, if you have root access.
% sudo gem update --system --no-user-install
Updating rubygems-update
Fetching: rubygems-update-1.8.21.gem (100%)
Successfully installed rubygems-update-1.8.21
Installing RubyGems 1.8.21
RubyGems 1.8.21 installed
== 1.8.21 / 2012-03-22
* 2 bug fixes:
* Add workaround for buggy yaml output from 1.9.2
* Force 1.9.1 to remove it's prelude code. Fixes #305
------------------------------------------------------------------------------
RubyGems installed the following executables:
/usr/bin/gem
RubyGems system software updated
Offline
It works, thanks !
Offline
Worked like a charm! Thank you!
Offline
Sorry to raise the dead, but while monoself's advice worked (thanks!) and upgraded RubyGems to 2.0.0 on my system, running just
$ gem
barfed with Permission denied on /usr/lib/ruby/gems/1.9.1/specifications/rubygems-update-2.0.0.gemspec.
I got it to run again by doing
# chmod 755 /usr/lib/ruby/gems/1.9.1/specifications/rubygems-update-2.0.0.gemspec
.
Offline