Rubygems Problem on ubuntu 10.04

On 8 November 2011 02:11, MaT 2. [email protected] wrote:

i hope somebody can help me with this kind of problem…

I can only suggest once that again that you start from the beginning
using rvm (if you have installed rubygems from the repository then
uninstall it and manually install an appropriate version) and when you
come to a problem come back and ask about that particular problem.
When I suggested previously that you did this you just said “i already
try this suggestion before but still not working and i cannot install
sinatra and thin using this method.” which is not very specific.

This may not fix the problem but once you are using rvm you will be
better aligned with most people here (I believe) and will therefore be
more likely to find a solution.

Colin

thank Kristian,Colin and Mircea for your post.
i will try all the solution.

Mat

this is my output after trying to install rvm 1.9.2 on oneadmin home
user path(/srv/cloud/one).

oneadmin@oneadmin:~$ rvm install 1.9.2
Installing Ruby from source to:
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290, this may take a while
depending on your cpu(s)…

ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #downloading ruby-1.9.2-p290, this may take a while
depending on your connection…
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 8604k 100 8604k 0 0 259k 0 0:00:33 0:00:33 --:–:--
567k
ruby-1.9.2-p290 - #extracting ruby-1.9.2-p290 to
/srv/cloud/one/.rvm/src/ruby-1. 9.2-p290
ruby-1.9.2-p290 - #extracted to /srv/cloud/one/.rvm/src/ruby-1.9.2-p290
Fetching yaml-0.1.4.tar.gz to /srv/cloud/one/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 460k 100 460k 0 0 105k 0 0:00:04 0:00:04 --:–:--
139k
Extracting yaml-0.1.4.tar.gz to /srv/cloud/one/.rvm/src
Prepare yaml in /srv/cloud/one/.rvm/src/yaml-0.1.4.
Configuring yaml in /srv/cloud/one/.rvm/src/yaml-0.1.4.
Compiling yaml in /srv/cloud/one/.rvm/src/yaml-0.1.4.
Installing yaml to /srv/cloud/one/.rvm/usr
ruby-1.9.2-p290 - #configuring
ruby-1.9.2-p290 - #compiling
ruby-1.9.2-p290 - #installing
Retrieving rubygems-1.8.10
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
102 2661 102 2661 0 0 21438 0 --:–:-- --:–:-- --:–:--
21438
Extracting rubygems-1.8.10 …
ERROR: Error running ‘gunzip <
/srv/cloud/one/.rvm/archives/rubygems-1.8.10.tgz | tar xf - -C
/srv/cloud/one/.rvm/src’, please read /srv/cloud/one/.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="/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290:/srv/cl
oud/one/.rvm/gems/ruby-1.9.2-p290@global:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p29
0:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290@global"
GEM_HOME="/srv/cloud/one/.rvm /gems/ruby-1.9.2-p290"
“/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/bin/ruby” “/s
rv/cloud/one/.rvm/src/rubygems-1.8.10/setup.rb”’, please read
/srv/cloud/one/.rv m/log/ruby-1.9.2-p290/rubygems.install.log
WARN: Installation of rubygems did not complete successfully.
ruby-1.9.2-p290 - adjusting #shebangs for (gem irb erb ri rdoc testrb
rake).
ruby-1.9.2-p290 - #importing default gemsets
(/srv/cloud/one/.rvm/gemsets/)
Install of ruby-1.9.2-p290 - #complete

i just want your guy check this output.this output show that my rubygems
did not complete successfully but last line output show that ruby-1.9.2
is complete install… so what should i do now…

Mat

this output for rvm extract.log

oneadmin@oneadmin:~$ cat
/srv/cloud/one/.rvm/log/ruby-1.9.2-p290/rubygems.extract.log

[2011-11-10 10:00:43] gunzip <
/srv/cloud/one/.rvm/archives/rubygems-1.8.10.tgz | tar xf - -C
/srv/cloud/one/.rvm/src

gzip: stdin: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

i hope someone can figure out something with all the output.

below is addition information

oneadmin@oneadmin:~$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

oneadmin@oneadmin:~$ rvm rubygems latest
Retrieving rubygems-1.8.10
Extracting rubygems-1.8.10 …
ERROR: Error running ‘gunzip <
/srv/cloud/one/.rvm/archives/rubygems-1.8.10.tgz | tar xf - -C
/srv/cloud/one/.rvm/src’, please read
/srv/cloud/one/.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="/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290@global:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290@global"
GEM_HOME="/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290"
“/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/bin/ruby”
“/srv/cloud/one/.rvm/src/rubygems-1.8.10/setup.rb”’, please read
/srv/cloud/one/.rvm/log/ruby-1.9.2-p290/rubygems.install.log
WARN: Installation of rubygems did not complete successfully.

oneadmin@oneadmin:~$ pwd
/srv/cloud/one

oneadmin@oneadmin:~$ ls -lah
total 80K
drwxr-xr-x 12 oneadmin cloud 4.0K 2011-11-10 10:22 .
drwxr-xr-x 4 root root 4.0K 2011-11-03 09:03 …
-rw------- 1 oneadmin cloud 6.3K 2011-11-03 17:45 .bash_history
-rw-r–r-- 1 oneadmin cloud 69 2011-11-10 09:54 .bashrc
drwxr-xr-x 2 oneadmin cloud 4.0K 2011-11-03 09:27 bin
drwx------ 2 oneadmin cloud 4.0K 2011-11-03 09:05 .cache
drwxr-xr-x 16 oneadmin cloud 4.0K 2011-11-04 11:43 etc
drwxr-xr-x 3 oneadmin cloud 4.0K 2011-11-10 09:39 .gem
drwxr-xr-x 2 oneadmin cloud 4.0K 2011-11-03 09:27 include
drwxr-xr-x 8 oneadmin cloud 4.0K 2011-11-03 09:27 lib
-rw------- 1 oneadmin cloud 59 2011-11-03 09:22 .mysql_history
-rw-r–r-- 1 oneadmin cloud 18 2011-11-03 09:31 .one_auth
drwxr-xr-x 24 oneadmin cloud 4.0K 2011-11-10 09:58 .rvm
drwxr-xr-x 4 oneadmin cloud 4.0K 2011-11-03 09:27 share
drwx------ 2 oneadmin cloud 4.0K 2011-11-04 10:30 .ssh
-rw-r–r-- 1 oneadmin cloud 0 2011-11-03 09:10
.sudo_as_admin_successful
drwxr-xr-x 33 oneadmin cloud 4.0K 2011-11-10 11:02 var
-rw------- 1 oneadmin cloud 5.5K 2011-11-10 10:22 .viminfo
-rw------- 1 oneadmin cloud 162 2011-11-04 09:01 .Xauthority

this the ouput of rvm logfile.

oneadmin@oneadmin:~$ cat
/srv/cloud/one/.rvm/log/ruby-1.9.2-p290/rubygems.install.log

[2011-11-10 10:00:43]
GEM_PATH="/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290@global:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290:/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290@global"
GEM_HOME="/srv/cloud/one/.rvm/gems/ruby-1.9.2-p290"
“/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/bin/ruby”
“/srv/cloud/one/.rvm/src/rubygems-1.8.10/setup.rb”
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/bin/ruby: No such file or
directory – /srv/cloud/one/.rvm/src/rubygems-1.8.10/setup.rb
(LoadError)

i really need help… i hope someone can help me…

i already find the solution to install rubygems to rvm.i download
rubygems manualy and extract to .rvm/src. then install rvm 1.9.2
again.the rubygems install successfull but when i test gem by trying to
install rails the same error display.i also try the zlib troubleshooting
on part8 provide by

tutorial but it still not working.below is all the output.

oneadmin@oneadmin:~$ rvm install 1.9.2
Installing Ruby from source to:
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290, this may take a while
depending on your cpu(s)…

ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /srv/cloud/one/.rvm/src/ruby-1.9.2-p290
(already extracted)
Fetching yaml-0.1.4.tar.gz to /srv/cloud/one/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /srv/cloud/one/.rvm/src
Prepare yaml in /srv/cloud/one/.rvm/src/yaml-0.1.4.
Configuring yaml in /srv/cloud/one/.rvm/src/yaml-0.1.4.
Compiling yaml in /srv/cloud/one/.rvm/src/yaml-0.1.4.
Installing yaml to /srv/cloud/one/.rvm/usr
ruby-1.9.2-p290 - #configuring
ruby-1.9.2-p290 - #compiling
ruby-1.9.2-p290 - #installing
Removing old Rubygems files…
Installing rubygems-1.8.10 for ruby-1.9.2-p290 …
Installation of rubygems completed successfully.
ruby-1.9.2-p290 - adjusting #shebangs for (gem irb erb ri rdoc testrb
rake).
ruby-1.9.2-p290 - #importing default gemsets
(/srv/cloud/one/.rvm/gemsets/)
Install of ruby-1.9.2-p290 - #complete

oneadmin@oneadmin:~$ rvm use 1.9.2
Using /srv/cloud/one/.rvm/gems/ruby-1.9.2-p290

oneadmin@oneadmin:~$ rvm --default use 1.9.2
Using /srv/cloud/one/.rvm/gems/ruby-1.9.2-p290

oneadmin@oneadmin:~$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

oneadmin@oneadmin:~$ gem install rails
ERROR: While executing gem … (Zlib::DataError)
incorrect header check

oneadmin@oneadmin:~$ gem install rails --debug
Exception NameError' at /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9 .1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::InstallCommand Exception Gem::LoadError’ at
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_rub
y/1.9.1/rubygems/dependency.rb:247 - Could not find psych (>= 1.2.1, ~>
1.2) amongst []
Exception Errno::EAGAIN' at /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net /protocol.rb:135 - Resource temporarily unavailable - read would block Exception Errno::EAGAIN’ at
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net
/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception Errno::EAGAIN' at /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net /protocol.rb:135 - Resource temporarily unavailable - read would block Exception Errno::EAGAIN’ at
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net
/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception EOFError' at /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/prot ocol.rb:135 - end of file reached Exception Errno::EAGAIN’ at
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net
/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception Zlib::DataError' at /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ru by/1.9.1/rubygems.rb:563 - incorrect header check ERROR: While executing gem ... (Zlib::DataError) incorrect header check /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:56 3:in inflate’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:56
3:in inflate' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_ fetcher.rb:122:in fetch_spec’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:95:in block in fetch_with_errors' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_ fetcher.rb:94:in map’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:94:in fetch_with_errors' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/depen dency_installer.rb:110:in find_gems_with_sources’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/depen
dency_installer.rb:228:in find_spec_by_name_and_version' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/depen dency_installer.rb:259:in install’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:121:in block in execute' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/comma nds/install_command.rb:115:in each’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:115:in execute' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/comma nd.rb:278:in invoke’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/comma
nd_manager.rb:147:in process_args' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/comma nd_manager.rb:117:in run’
/srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/gem_r
unner.rb:65:in run' /srv/cloud/one/.rvm/rubies/ruby-1.9.2-p290/bin/gem:25:in
oneadmin@oneadmin:~$

Damian M. wrote in post #1031895:

MaT 2. wrote in post #1031374:

i really need help… i hope someone can help me…

I don’t know if this effects you or not, but if you’re behind OpenDNS
then you’re likely having issues because of them. I had this issue
myself just today (which is how I stumbled on this forum post) and the
resolution for me was to add the following to my hosts file:

205.251.203.201 production.cf.rubygems.org

if you go to production.cf.rubygems.org in your web browser, and this is
your issue, you’ll get an OpenDNS message which essentially claims
production.cf.rubygems.org distributes malware/viruses. Adding the hosts
file entry allowed me to bypass opendns entirely for the one site. This
is only a temporary fix, though. I’ve sent mail to the email address in
the OpenDNS error page for production.cf.rubygems.org and it would be a
good idea if anyone else affected by this did the same so that the root
cause can be taken care of.

thank you very much Damian M.
but my problem is different,however
your reply really point me to the solution.

MaT 2. wrote in post #1031374:

i really need help… i hope someone can help me…

I don’t know if this effects you or not, but if you’re behind OpenDNS
then you’re likely having issues because of them. I had this issue
myself just today (which is how I stumbled on this forum post) and the
resolution for me was to add the following to my hosts file:

205.251.203.201 production.cf.rubygems.org

if you go to production.cf.rubygems.org in your web browser, and this is
your issue, you’ll get an OpenDNS message which essentially claims
production.cf.rubygems.org distributes malware/viruses. Adding the hosts
file entry allowed me to bypass opendns entirely for the one site. This
is only a temporary fix, though. I’ve sent mail to the email address in
the OpenDNS error page for production.cf.rubygems.org and it would be a
good idea if anyone else affected by this did the same so that the root
cause can be taken care of.

Awesome that DNS fix in etc/hosts worked for me

Finally …
$ sudo gem install rails
Fetching: i18n-0.6.0.gem (100%)
Fetching: multi_json-1.0.4.gem (100%)

Many thanks Damian!!

Bob

Damian M. wrote in post #1031895:

MaT 2. wrote in post #1031374:

i really need help… i hope someone can help me…

I don’t know if this effects you or not, but if you’re behind OpenDNS
then you’re likely having issues because of them. I had this issue
myself just today (which is how I stumbled on this forum post) and the
resolution for me was to add the following to my hosts file:

205.251.203.201 production.cf.rubygems.org

if you go to production.cf.rubygems.org in your web browser, and this is
your issue, you’ll get an OpenDNS message which essentially claims
production.cf.rubygems.org distributes malware/viruses. Adding the hosts
file entry allowed me to bypass opendns entirely for the one site. This
is only a temporary fix, though. I’ve sent mail to the email address in
the OpenDNS error page for production.cf.rubygems.org and it would be a
good idea if anyone else affected by this did the same so that the root
cause can be taken care of.

I need your help,Please…What is the meanning of ‘205.251.203.201’ in
‘205.251.203.201 production.cf.rubygems.org’.

On 26 October 2013 09:05, wu volity [email protected] wrote:

I need your help,Please…What is the meanning of ‘205.251.203.201’ in
‘205.251.203.201 production.cf.rubygems.org’.

It is an ip address. At one time it may have been (or may still be,
but I suspect not) a valid ip address for production.cf.rubygems.org.
But since the email you got this from is two years old it may no
longer be valid.

Perhaps if you explained what your actual problem is (preferably in a
new thread rather than an ancient one) someone may be able to help.

Colin

Excuse, how did you solve the question? I meet the same question
today…I need your help…

Perhaps if you explained what your actual problem is (preferably in a
new thread rather than an ancient one) someone may be able to help.

I believe that’s a production IP for CloudFront so it should in theory
be valid for RubyGems still but that line as it’s printed in the
quotes look like a hosts file line, perhaps somebody trying to stick
the region?

Colin L. wrote in post #1125699:

On 26 October 2013 09:05, wu volity [email protected] wrote:

I need your help,Please…What is the meanning of ‘205.251.203.201’ in
‘205.251.203.201 production.cf.rubygems.org’.

It is an ip address. At one time it may have been (or may still be,
but I suspect not) a valid ip address for production.cf.rubygems.org.
But since the email you got this from is two years old it may no
longer be valid.

Perhaps if you explained what your actual problem is (preferably in a
new thread rather than an ancient one) someone may be able to help.

Colin

Thanks!