tag:help.rubygems.org,2010-01-19:/discussions/problems/636-json_pure-is-installed-when-gem-install-json-is-executedRubyGems.org: Discussion 2011-08-04T17:42:09Ztag:help.rubygems.org,2010-01-19:Comment/77757812011-06-09T07:44:09Z2011-06-09T07:44:10Zjson_pure is installed when 'gem install json' is executed<div><p>I just downloaded the gem file directly and think the file maybe
is packaged wrongly?</p>
<blockquote>
<p>gem install --local ~/Downloads/json-1.5.1.gem Successfully
installed json_pure-1.5.1<br>
1 gem installed<br>
Installing ri documentation for json_pure-1.5.1...<br>
Installing RDoc documentation for json_pure-1.5.1...</p>
</blockquote></div>maralctag:help.rubygems.org,2010-01-19:Comment/77757812011-06-09T12:34:16Z2011-06-09T12:34:16Zjson_pure is installed when 'gem install json' is executed<div><p>Dunno for you, but works for me:</p>
<pre>
<code>C:\Users\Luis>gem install json
Fetching: json-1.5.1.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed json-1.5.1
1 gem installed
C:\Users\Luis>gem list json
*** LOCAL GEMS ***
json (1.5.1)</code>
</pre></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/77757812011-06-09T13:03:41Z2011-06-09T13:03:43Zjson_pure is installed when 'gem install json' is executed<div><p>Wicked Luis.</p>
<p>But any ideas why it is like that over here for me?</p></div>maralctag:help.rubygems.org,2010-01-19:Comment/77757812011-06-09T13:06:41Z2011-06-09T13:06:41Zjson_pure is installed when 'gem install json' is executed<div><p>Can you please try the following:</p>
<p>Remove any existing json gem: <code>gem uninstall json --all
--executables</code> (do the same for json_pure)</p>
<p>Clear your RubyGems cache: <code>gem sources -c</code></p>
<p>Do <code>gem install json --debug -V</code></p>
<p>And send us the output so we can take a look what is going
on.</p>
<p>Oh, and never forget: when reporting issues of RubyGems, please
always include the output of <code>gem env</code> and the same
command you're trying to run with <code>--debug -V</code>
flags.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/77757812011-06-09T13:18:50Z2011-06-09T13:18:50Zjson_pure is installed when 'gem install json' is executed<div><p>Hi Luis,</p>
<p>Follow attached the logs.</p>
<p>Thanks<br>
Marcelo</p></div>maralctag:help.rubygems.org,2010-01-19:Comment/77757812011-06-09T13:23:27Z2011-06-09T13:23:27Zjson_pure is installed when 'gem install json' is executed<div><p>For some strange reason you can't remove json_pure, which I
could tell you you can remove manually going
<code>/Users/maralc/.rvm/gems/ruby-1.9.2-p180</code> and removing
from gems, spec and cache all json references.</p>
<p>Can you do that?</p>
<p>Then, seems Ruby is not redownloading the file, perhaps was
mistakenly downloaded before, so removing the gemspec, the cache
and the installed files will help.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/77757812011-06-11T13:48:40Z2011-06-11T13:48:40Zjson_pure is installed when 'gem install json' is executed<div><p>Hi Luis,</p>
<p>I tried everything you mentioned. Deleted all possible
references of json inside all /.rvm. Still without success.</p>
<p>Did you see on the previous file I've sent you all the
exceptions happening there while executing 'gem install json'?
Maybe they are not related?</p>
<p>I also tried to change version of rubygems and ruby itself
without any success.</p>
<p>Thanks<br>
Marcelo</p></div>maralctag:help.rubygems.org,2010-01-19:Comment/77757812011-06-11T13:57:34Z2011-06-11T13:57:34Zjson_pure is installed when 'gem install json' is executed<div><p>Lot of these exceptions are normal.</p>
<p>What I do see is lot of <code>Resource temporarily unavailable -
read would block</code> which could indicate a possible network
problem (that doesn't happen to me for example)</p>
<p>It is weird that seems to obtain the gem specification of json,
but then attempts to install the json_pure.</p>
<p>Can you please clean /Users/maralc/.gem/specs/rubygems.org%80
directory?<br>
(rm -rf)</p>
<p>Also, remove all the json and json_pure installations, please do
it manually removing:</p>
<p>rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/gems/json<em><br>
rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/specs/json</em><br>
rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/cache/json*</p>
<p>After that, please run the command again and let's see from
there.</p>
<p>This is indeed a weird bug.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/77757812011-06-12T09:52:07Z2011-06-12T09:52:07Zjson_pure is installed when 'gem install json' is executed<div><p>Looks like it was going fine until this passage here:</p>
<pre>
<code>
Exception `Errno::EAGAIN' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Fetching: json-1.5.1.gem (100%)
200 OK
Exception `Errno::EEXIST' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:243 - File exists - /Users/maralc/.rvm/gems/ruby-1.9.2-p180
Exception `NoMethodError' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:53 - undefined method `readpartial' for #
Exception `IOError' at /Users/maralc/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:45 - closed stream
/Users/maralc/.rvm/gems/ruby-1.9.2-p180/gems/json_pure-1.5.1/CHANGES</code>
</pre>
<p>It's attached the whole execution. Thanks.</p></div>maralctag:help.rubygems.org,2010-01-19:Comment/77757812011-06-12T17:17:45Z2011-06-12T17:17:45Zjson_pure is installed when 'gem install json' is executed<div><p>Can you manually download those files? Let's try:</p>
<p><code>wget
http://production.s3.rubygems.org/latest_specs.4.8.gz</code></p>
<p>also</p>
<p><code>wget http://rubygems.org/gems/json-1.5.1.gem</code></p>
<p>if not <code>wget</code>, then <code>curl -O</code>. Also, are
you behind a proxy?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/77757812011-06-13T12:09:22Z2011-06-13T12:09:22Zjson_pure is installed when 'gem install json' is executed<div><p>Hi Nick,</p>
<p>I am connected directly to a DSL router.</p>
<p>Follow the output of the commands:</p>
<pre>
<code>
>curl -O -v http://production.s3.rubygems.org/latest_specs.4.8.gz
* About to connect() to production.s3.rubygems.org port 80 (#0)
* Trying 207.171.187.118... connected
* Connected to production.s3.rubygems.org (207.171.187.118) port 80 (#0)
> GET /latest_specs.4.8.gz HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: production.s3.rubygems.org
> Accept: */*
>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0< HTTP/1.1 200 OK
< x-amz-id-2: zjBRhh2vJBSGPrB6/eSrBwtLLfl4qxDIFmon2hRPaXUIimwDPPXNJelnDcl6jtuF
< x-amz-request-id: 5AA038B22E8BFBB1
< Date: Mon, 13 Jun 2011 12:05:47 GMT
< Last-Modified: Mon, 13 Jun 2011 11:44:44 GMT
< ETag: "45290cd90d75aa4346d42739c0574eb2"
< Accept-Ranges: bytes
< Content-Type: binary/octet-stream
< Content-Length: 205281
< Server: AmazonS3
<
{ [data not shown]
100 200k 100 200k 0 0 21223 0 0:00:09 0:00:09 --:--:-- 36824* Connection #0 to host production.s3.rubygems.org left intact
* Closing connection #0
>
>
>curl -O -v http://rubygems.org/gems/json-1.5.1.gem
* About to connect() to rubygems.org port 80 (#0)
* Trying 72.4.120.124... connected
* Connected to rubygems.org (72.4.120.124) port 80 (#0)
> GET /gems/json-1.5.1.gem HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: rubygems.org
> Accept: */*
>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< HTTP/1.1 302 Found
< Date: Mon, 13 Jun 2011 12:06:06 GMT
< Server: Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.0
< X-UA-Compatible: IE=Edge,chrome=1
< X-Runtime: 0.002680
< Location: http://production.cf.rubygems.org/gems/json-1.5.1.gem
< Content-Length: 0
< Status: 302
< Vary: Accept-Encoding
< Content-Type: text/html;charset=utf-8
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connection #0 to host rubygems.org left intact
* Closing connection #0
></code>
</pre></div>maralctag:help.rubygems.org,2010-01-19:Comment/77757812011-06-19T12:41:27Z2011-06-19T12:41:27Zjson_pure is installed when 'gem install json' is executed<div><p>Any news on that?</p>
<p>Thanks<br>
Marcelo</p></div>maralctag:help.rubygems.org,2010-01-19:Comment/77757812011-06-19T15:16:46Z2011-06-19T15:16:46Zjson_pure is installed when 'gem install json' is executed<div><p>Hello,</p>
<p>I believe the issue was a CDN/S3 issue, as described in the JSON
issue:</p>
<p><a href=
"https://github.com/flori/json/issues/68">https://github.com/flori/json/issues/68</a></p>
<p>Can you try the newer version so we can close this out?</p>
<p>Thank you.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/77757812011-08-04T17:42:08Z2011-08-04T17:42:08Zjson_pure is installed when 'gem install json' is executed<div><p>Closing this out due lack of feedback, issue seems solved by
now.</p></div>Luis Lavena