json_pure is installed when 'gem install json' is executed
Hi
See below:
gem install json Successfully installed json_pure-1.5.1
1 gem installed
Installing ri documentation for json_pure-1.5.1...
Installing RDoc documentation for json_pure-1.5.1...bundle check The following gems are missing
* json (1.5.1) Install missing gems withbundle installbundle show json Could not find json-1.5.1 in any of the sources
Any ideas?
I tried many things already. Cleared all rvm gem and gemset dirs.
Thanks in advance.
Maralc
Comments are currently closed for this discussion. You can start a new one.
2 Posted by maralc on 09 Jun, 2011 07:44 AM
I just downloaded the gem file directly and think the file maybe is packaged wrongly?
Support Staff 3 Posted by Luis Lavena on 09 Jun, 2011 12:34 PM
Dunno for you, but works for me:
4 Posted by maralc on 09 Jun, 2011 01:03 PM
Wicked Luis.
But any ideas why it is like that over here for me?
Support Staff 5 Posted by Luis Lavena on 09 Jun, 2011 01:06 PM
Can you please try the following:
Remove any existing json gem:
gem uninstall json --all --executables(do the same for json_pure)Clear your RubyGems cache:
gem sources -cDo
gem install json --debug -VAnd send us the output so we can take a look what is going on.
Oh, and never forget: when reporting issues of RubyGems, please always include the output of
gem envand the same command you're trying to run with--debug -Vflags.6 Posted by maralc on 09 Jun, 2011 01:18 PM
Hi Luis,
Follow attached the logs.
Thanks
Marcelo
Support Staff 7 Posted by Luis Lavena on 09 Jun, 2011 01:23 PM
For some strange reason you can't remove json_pure, which I could tell you you can remove manually going
/Users/maralc/.rvm/gems/ruby-1.9.2-p180and removing from gems, spec and cache all json references.Can you do that?
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.
8 Posted by maralc on 11 Jun, 2011 01:48 PM
Hi Luis,
I tried everything you mentioned. Deleted all possible references of json inside all /.rvm. Still without success.
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?
I also tried to change version of rubygems and ruby itself without any success.
Thanks
Marcelo
Support Staff 9 Posted by Luis Lavena on 11 Jun, 2011 01:57 PM
Lot of these exceptions are normal.
What I do see is lot of
Resource temporarily unavailable - read would blockwhich could indicate a possible network problem (that doesn't happen to me for example)It is weird that seems to obtain the gem specification of json, but then attempts to install the json_pure.
Can you please clean /Users/maralc/.gem/specs/rubygems.org%80 directory?
(rm -rf)
Also, remove all the json and json_pure installations, please do it manually removing:
rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/gems/json
rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/specs/json
rm -rf /Users/maralc/.rvm/gems/ruby-1.9.2-p180/cache/json*
After that, please run the command again and let's see from there.
This is indeed a weird bug.
10 Posted by maralc on 12 Jun, 2011 09:52 AM
Looks like it was going fine until this passage here:
It's attached the whole execution. Thanks.
Support Staff 11 Posted by Nick Quaranto on 12 Jun, 2011 05:17 PM
Can you manually download those files? Let's try:
wget http://production.s3.rubygems.org/latest_specs.4.8.gzalso
wget http://rubygems.org/gems/json-1.5.1.gemif not
wget, thencurl -O. Also, are you behind a proxy?12 Posted by maralc on 13 Jun, 2011 12:09 PM
Hi Nick,
I am connected directly to a DSL router.
Follow the output of the commands:
13 Posted by maralc on 19 Jun, 2011 12:41 PM
Any news on that?
Thanks
Marcelo
Support Staff 14 Posted by Luis Lavena on 19 Jun, 2011 03:16 PM
Hello,
I believe the issue was a CDN/S3 issue, as described in the JSON issue:
https://github.com/flori/json/issues/68
Can you try the newer version so we can close this out?
Thank you.
Support Staff 15 Posted by Luis Lavena on 04 Aug, 2011 05:42 PM
Closing this out due lack of feedback, issue seems solved by now.
Luis Lavena closed this discussion on 04 Aug, 2011 05:42 PM.