Forum: Ruby on Rails rubygems Problem on ubuntu 10.04

F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-10-31 02:11
hello..

i have problem with rubygems version 1.8.7 on ubuntu 10.04 server LTS
64bit.this rubygems i also try both installation automatic using apt-get
package manager and using manually installation but the problem also
same.
the problem occur when i try to install any gems installation
package.i try many solution to solve the problem like remove and install
back rubygems.i also format computer then install back ruby and rubygems
but still cannot solve this problem.so i hope any rubygem expert can
help me solved this kind of problem.below are the following error that
appear after i execute gem install command.

sudo gem install any-package

ERROR:  While executing gem ... (Zlib::DataError)
incorrect header check.

and my environment for gems

oneadmin@server:~$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.10
  - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.8
     - /srv/cloud/one/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/
B4df253f32069e5cdf3b65782e267ff5?d=identicon&s=25 Alex Mercer (Guest)
on 2011-10-31 11:18
(Received via mailing list)
Try to install dev lib for zlib:
 $ sudo apt-get -y install zlib zlib-devel
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-01 05:15
Alex Mercer wrote in post #1029306:
> Try to install dev lib for zlib:
>  $ sudo apt-get -y install zlib zlib-devel

thank for answer..

i already try this command but nothing is working..

below is addition information of my problem when i try to install rail
using --debug command.i hope any expert can help me to solve this
problem..
your help is very appreciated.thank you very much.

oneadmin@oneadmin:/var/lib/gems/1.8$ sudo gem install rails --debug
Exception `NameError' at
/usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uninitialized
constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find RubyGem test-unit (>= 0)

Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find RubyGem sources (> 0.0.1)

Exception `EOFError' at /usr/lib/ruby/1.8/net/protocol.rb:135 - end of
file reached
Exception `Zlib::DataError' at /usr/lib/ruby/1.8/rubygems.rb:599 -
incorrect header check
ERROR:  While executing gem ... (Zlib::DataError)
    incorrect header check
        /usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
        /usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:100:in `fetch_spec'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:72:in `fetch'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `map'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `fetch'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:99:in
`find_gems_with_sources'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:192:in
`find_spec_by_name_and_version'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:213:in
`install'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:118:in
`execute'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`each'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`execute'
        /usr/lib/ruby/1.8/rubygems/command.rb:257:in `invoke'
        /usr/lib/ruby/1.8/rubygems/command_manager.rb:132:in
`process_args'
        /usr/lib/ruby/1.8/rubygems/command_manager.rb:102:in `run'
        /usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
        /usr/bin/gem:21
C0257c2bb6c7c0b199cab7366acb1664?d=identicon&s=25 Leonardo Mateo (Guest)
on 2011-11-01 10:53
(Received via mailing list)
On Tue, Nov 1, 2011 at 1:15 AM, MaT 2. <lists@ruby-forum.com> wrote:
> problem..
> not find RubyGem sources (> 0.0.1)
>    /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:72:in `fetch'
>    /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
> `each'
>    /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
> `execute'
>    /usr/lib/ruby/1.8/rubygems/command.rb:257:in `invoke'
>    /usr/lib/ruby/1.8/rubygems/command_manager.rb:132:in
> `process_args'
>    /usr/lib/ruby/1.8/rubygems/command_manager.rb:102:in `run'
>    /usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
>    /usr/bin/gem:21

It looks like your rubygems source is corrupted.
Assuming you really need to use ubuntu packages, try purging the
package and re install it.

However, if you can use something like RVM[1] or rbenv[2] to install
and manage ruby.


Hope this helps.

Cheers.

[1]https://rvm.beginrescueend.com/rvm
[2]https://github.com/sstephenson/rbenv

--
Leonardo Mateo.
There's no place like ~
D8fd374e9e1811e5b5b8f37b667916bd?d=identicon&s=25 Max (Guest)
on 2011-11-01 13:46
(Received via mailing list)
A really good resource for setting up ubuntu for rails/ruby is:
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

hope that helps.
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-02 07:20
thank for all response..
i already --purge and reinstall the rubygem and same problem occur.

actually i want to install all the following gem package:


      json
    *
      rack
    *
      sinatra
    *
      thin

using rvm i successfull install json and rack but i cannot install
sinatra and thin.the same problem appear like this

Zlib:DataError incorrect header check.
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2011-11-02 13:12
(Received via mailing list)
On Wed, 2011-11-02 at 07:20 +0100, MaT 2. wrote:
>       sinatra
>     *
>       thin
>
> using rvm i successfull install json and rack but i cannot install
> sinatra and thin.the same problem appear like this
>
> Zlib:DataError incorrect header check.
----
I think this is what you need...
apt-get install zlib1g-dev

but if that doesn't work, then try this...
apt-get install libzlcore-dev

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-03 03:09
thank Craig but it still not working..
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2011-11-03 03:23
(Received via mailing list)
On Thu, 2011-11-03 at 03:09 +0100, MaT 2. wrote:
> thank Craig but it still not working..
----
show us the full output of 'sudo gem install sinatra' and 'sudo gem
install thin'

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-03 04:13
all error output state as below:

oneadmin@oneadmin$ sudo gem install sinatra --debug

Exception `NameError' at
/usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uniniti     alized
constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find Rub     yGem test-unit (>= 0)

Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find Rub     yGem sources (> 0.0.1)

Exception `EOFError' at /usr/lib/ruby/1.8/net/protocol.rb:135 - end of
file reached
Exception `Zlib::DataError' at /usr/lib/ruby/1.8/rubygems.rb:599 -
incorrect header check
ERROR:  While executing gem ... (Zlib::DataError)
    incorrect header check
        /usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
        /usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:100:in `fetch_spec'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:72:in `fetch'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `map'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `fetch'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:99:in
`find_gems_with_sources'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:192:in
`find_spec_by_name_and_version'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:213:in
`install'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:118:in
`execute'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`each'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`execute'
        /usr/lib/ruby/1.8/rubygems/command.rb:257:in `invoke'
        /usr/lib/ruby/1.8/rubygems/command_manager.rb:132:in
`process_args'
        /usr/lib/ruby/1.8/rubygems/command_manager.rb:102:in `run'
        /usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
        /usr/bin/gem:21


oneadmin@oneadmin$ sudo gem install thin --debug


Exception `NameError' at
/usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uninitialize
d constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find RubyGem
test-unit (>= 0)

Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could
not find RubyGem
sources (> 0.0.1)

Exception `EOFError' at /usr/lib/ruby/1.8/net/protocol.rb:135 - end of
file reached
Exception `Zlib::DataError' at /usr/lib/ruby/1.8/rubygems.rb:599 -
incorrect header check
ERROR:  While executing gem ... (Zlib::DataError)
    incorrect header check
        /usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
        /usr/lib/ruby/1.8/rubygems.rb:599:in `inflate'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:100:in `fetch_spec'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:72:in `fetch'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `map'
        /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:71:in `fetch'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:99:in
`find_gems_with_sources'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:192:in
`find_spec_by_name_and_
version'
        /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:213:in
`install'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:118:in
`execute'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`each'
        /usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in
`execute'
        /usr/lib/ruby/1.8/rubygems/command.rb:257:in `invoke'
        /usr/lib/ruby/1.8/rubygems/command_manager.rb:132:in
`process_args'
        /usr/lib/ruby/1.8/rubygems/command_manager.rb:102:in `run'
        /usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
        /usr/bin/gem:21


this my new gem enviroment


RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /var/lib/gems/1.8
     - /srv/cloud/one/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2011-11-03 04:40
(Received via mailing list)
On Thu, 2011-11-03 at 04:13 +0100, MaT 2. wrote:
> all error output state as below:
>
> oneadmin@oneadmin$ sudo gem install sinatra --debug
>
> Exception `NameError' at
> /usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uniniti     alized
> constant Gem::Commands::InstallCommand
----
try this...

sudo gem install rubygems -v="1.4.2"
sudo update_rubygems
sudo gem install sinatra
sudo gem install thin

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-03 05:34
for the first command it can be execute correctly
after i change sudo gem install rubygems -v="1.4.2" to
sudo gem install rubygems -v 1.4.2 but for second command i got problem
to run. the error as below:

sudo update_rubygems
sudo: update_rubygems: command not found

and all other command display same error as before.
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2011-11-03 11:48
(Received via mailing list)
On Thu, 2011-11-03 at 05:34 +0100, MaT 2. wrote:
> for the first command it can be execute correctly
> after i change sudo gem install rubygems -v="1.4.2" to
> sudo gem install rubygems -v 1.4.2 but for second command i got problem
> to run. the error as below:
>
> sudo update_rubygems
> sudo: update_rubygems: command not found
>
> and all other command display same error as before.
----
If you installed rubygems it would seem impossible for the command
update_rubygems not to be found. Perhaps it is not installed.

Perhaps someone is familiar with Ubuntu's ruby packages and can guide
you with what it is that isn't working right. Generally, the
distribution packages lag too far behind and seem to be an obstruction
which is one of the reasons why things like rvm have become popular.

I suppose the way to install it would be...
sudo apt-get install rubygems

On my ubuntu 10.04 LTS (but not using any Ubuntu ruby packages
whatsoever because I use the enterprise ruby packages)

If rubygems package is installed, you should be able to easily run 'sudo
update rubygems'

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2011-11-03 13:13
(Received via mailing list)
On 3 November 2011 10:44, Craig White <craigwhite@azapple.com> wrote:
> ----
> If you installed rubygems it would seem impossible for the command
> update_rubygems not to be found. Perhaps it is not installed.
>
> Perhaps someone is familiar with Ubuntu's ruby packages and can guide
> you with what it is that isn't working right. Generally, the
> distribution packages lag too far behind and seem to be an obstruction
> which is one of the reasons why things like rvm have become popular.

I strongly suggest that for rails on Ubuntu you use the method from
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
as an earlier poster already suggested.  You are in for a great deal
of pain trying to do it using the ubuntu repositories.

Colin

> Craig
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>



--
gplus.to/clanlaw
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-04 01:53
Craig White wrote in post #1029937:

>
> If you installed rubygems it would seem impossible for the command
> update_rubygems not to be found. Perhaps it is not installed.
>
> Perhaps someone is familiar with Ubuntu's ruby packages and can guide
> you with what it is that isn't working right. Generally, the
> distribution packages lag too far behind and seem to be an obstruction
> which is one of the reasons why things like rvm have become popular.
>
> I suppose the way to install it would be...
> sudo apt-get install rubygems
>
> On my ubuntu 10.04 LTS (but not using any Ubuntu ruby packages
> whatsoever because I use the enterprise ruby packages)
>
> If rubygems package is installed, you should be able to easily run 'sudo
> update rubygems'
>
> Craig
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

i think i already install rubygem below is my command to verify that
rubygem is install in my system.i also try to use apt-get install
rubygem but the system show that my rubygem is already new version.below
all the output:-

root@oneadmin:~# apt-get install rubygems
Reading package lists... Done
Building dependency tree
Reading state information... Done
rubygems is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

root@oneadmin:~# dpkg --get-selections | grep rubygems
rubygems                                        install
rubygems1.8                                     install
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-04 01:56
Colin Law wrote in post #1029951:
> On 3 November 2011 10:44, Craig White <craigwhite@azapple.com> wrote:
>> ----
>> If you installed rubygems it would seem impossible for the command
>> update_rubygems not to be found. Perhaps it is not installed.
>>
>> Perhaps someone is familiar with Ubuntu's ruby packages and can guide
>> you with what it is that isn't working right. Generally, the
>> distribution packages lag too far behind and seem to be an obstruction
>> which is one of the reasons why things like rvm have become popular.
>
> I strongly suggest that for rails on Ubuntu you use the method from
> http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
> as an earlier poster already suggested.  You are in for a great deal
> of pain trying to do it using the ubuntu repositories.
>
> Colin
>
>> Craig
>> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com.
>> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
>
>
>
> --
> gplus.to/clanlaw


thank Colin..
i already try this suggestion before but still not working and i cannot
install sinatra and thin using this method.
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-04 08:44
Craig White wrote in post #1029886:
> On Thu, 2011-11-03 at 04:13 +0100, MaT 2. wrote:
>> all error output state as below:
>>
>> oneadmin@oneadmin$ sudo gem install sinatra --debug
>>
>> Exception `NameError' at
>> /usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uniniti     alized
>> constant Gem::Commands::InstallCommand
> ----
> try this...
>
> sudo gem install rubygems -v="1.4.2"
> sudo update_rubygems
> sudo gem install sinatra
> sudo gem install thin
>
> Craig
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

hi Craig.. i can execute sudo gem update_rubygems after i uninstall rack
from gem list but i still cannot install sinatra and thin.same error
appear..
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-08 03:11
i hope somebody can help me with this kind of problem..
6d805f7a9c4079d2abb93d5e0d7ce28c?d=identicon&s=25 mkristian (Guest)
on 2011-11-08 10:04
(Received via mailing list)
I use $HOME/.gemrc

install: --user-install --no-ri --no-rdoc --bindir /home/kristian/bin
update: --user-install --no-ri --no-rdoc --bindir /home/kristian/bin

which installs all gems in my user directory - no sudo needed. BUT
bundler does not obey this setting and ask for sudo password and
installs them into the system.

I think the easiest way to get rubygems and bundle working "locally"
is setting something like

export GEM_HOME=$HOME/.gems
export GEM_PATH=$HOME/.gems

then rubygems and bundler works fine together.

I just tried this on ubuntu 11.10 where I do have
$ gem envir
RubyGems Environment:
  - RUBYGEMS VERSION: 1.7.2
  - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/kristian/.gems
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /home/kristian/.gems/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/kristian/.gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "maven" => {"profiles"=>"sonatype-snapshots",
"plugin_version"=>"0.28.6-SNAPSHOT"}
     - "install" => "--user-install --no-ri --no-rdoc --bindir /home/
kristian/bin"
     - "update" => "--user-install --no-ri --no-rdoc --bindir /home/
kristian/bin"
  - REMOTE SOURCES:
     - http://rubygems.org/

and there is no problem to install sinatra and thin. from that thread
I conclude you do not have the right version of rubygems installed try
to install the version from 11.10

- Kristian
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2011-11-08 10:17
(Received via mailing list)
On 8 November 2011 02:11, MaT 2. <lists@ruby-forum.com> 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
Fd6583210bf7dba6b43cb5e9b24bacc4?d=identicon&s=25 mg1313 (Guest)
on 2011-11-09 03:21
(Received via mailing list)
I also produced an even more detailed Ruby on Rails installation
tutorial for Ubuntu 11.04, 11.10:
http://www.mirceagoia.com/2011/11/ruby-on-rails-in...
It's 35 pages long and free to get it. Covers many situation which
Ryan Bigg didn't.

Mircea
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-10 02:28
thank Kristian,Colin and Mircea for your post.
i will try all the solution.





Mat
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-10 03:08
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
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-10 03:12
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)
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-10 03:17
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.
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-10 04:07
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
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-10 04:45
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
http://www.mirceagoia.com/2011/11/ruby-on-rails-in...
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
`<main>'
oneadmin@oneadmin:~$
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-11 08:33
i really need help.. i hope someone can help me..
E015c52360e91913b694689480109535?d=identicon&s=25 Damian M. (damian_m)
on 2011-11-14 23:45
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.
F84180ab787f0bd3093a4ab3b2da01d0?d=identicon&s=25 MaT 2. (mat_2)
on 2011-11-23 03:09
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.
E1d159796a39ce2eafe4b40e9b8f9871?d=identicon&s=25 Bob B. (bob_b89)
on 2012-02-01 03:57
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.
3aaf11ef54cd90bb32b2e40e98326164?d=identicon&s=25 wu volity (volity)
on 2013-10-17 13:37
Excuse, how did you solve the question? I meet the same question
today..I need your help..
3aaf11ef54cd90bb32b2e40e98326164?d=identicon&s=25 wu volity (volity)
on 2013-10-26 10:05
I need your help,Please..What is the meanning of '205.251.203.201' in
'205.251.203.201 production.cf.rubygems.org'.
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2013-10-26 10:53
(Received via mailing list)
On 26 October 2013 09:05, wu volity <lists@ruby-forum.com> 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
3aaf11ef54cd90bb32b2e40e98326164?d=identicon&s=25 wu volity (volity)
on 2013-11-07 14:02
Colin Law wrote in post #1125699:
> On 26 October 2013 09:05, wu volity <lists@ruby-forum.com> 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!
52f3528c40e9cf28ad0900886eecb128?d=identicon&s=25 Jordon Bedwell (Guest)
on 2013-11-07 14:13
(Received via mailing list)
>> 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?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.