Rubygems install via rvm on ubuntu 11.10

Hi

Trying to install 1.9.2 using rvm. Works fine until it gets to
installing rubygems. I’ve tried installing various versions of rubygems
via rvm and always get the following error:

[email protected]:~$ rvm rubygems latest
Retrieving rubygems-1.8.10
Extracting rubygems-1.8.10 …
ERROR: Error running ‘gunzip <
/home/jason/.rvm/archives/rubygems-1.8.10.tgz | tar xf - -C
/home/jason/.rvm/src’, please read
/home/jason/.rvm/log/ruby-1.9.2-p290/rubygems.extract.log
Removing old Rubygems files…
Installing rubygems-1.8.10 for ruby-1.9.2-p290 …
ERROR: Error running
‘GEM_PATH="/home/jason/.rvm/gems/ruby-1.9.2-p290:/home/jason/.rvm/gems/[email protected]:/home/jason/.rvm/gems/ruby-1.9.2-p290:/home/jason/.rvm/gems/[email protected]"
GEM_HOME="/home/jason/.rvm/gems/ruby-1.9.2-p290"
“/home/jason/.rvm/rubies/ruby-1.9.2-p290/bin/ruby”
“/home/jason/.rvm/src/rubygems-1.8.10/setup.rb”’, please read
/home/jason/.rvm/log/ruby-1.9.2-p290/rubygems.install.log
WARN: Installation of rubygems did not complete successfully.

Never had this problem before on ubuntu, but just installed 11.10.

Any help would be much appreciated.

thanks!

jason…

Ok - tried extracting the archive downloaded by rvm manually and gzip
says that it is not a valid archive. Weird that this happens on all the
ruby gems versions I tried.

Downloaded rubygems 1.8.10 and manually extracted it into .rvm/src. Then
ran rvm install 1.9.2 again and all seems to be good.

Still don’t understand the root cause, but i seem to be up and running
now.

Thanks for the reply!

cheers

On 20.10.2011 15:38, Jason W. wrote:

ERROR: Error running ‘gunzip<
/home/jason/.rvm/archives/rubygems-1.8.10.tgz | tar xf - -C
/home/jason/.rvm/src’, please read
/home/jason/.rvm/log/ruby-1.9.2-p290/rubygems.extract.log

What does rubygems.extract.log say exactly? The “gunzip<” error above is
weird …

“/home/jason/.rvm/src/rubygems-1.8.10/setup.rb”’, please read
/home/jason/.rvm/log/ruby-1.9.2-p290/rubygems.install.log

Same here, what’s in rubygems.install.log ?

Please use pastie.org!

I gotta try rvm on 11.10 later.

cheers

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs