Unable to install rails - "The requested item could not be loaded", "Wrong MIME-Type" seen in proxy logs
Hi,
I am returning to rails after a number of years and getting very frustrated with initial install.
Windows XP - Ran latest (and previous) Ruby install (1.9.3)
Ran "gem update --system"
Ran "gem install rails" (tried several versions).
Keep getting:
ERROR: While executing gem ... (Zlib::DataError)
incorrect header check
Started Charles proxy (GUI proxy for windows) to see if anything showed up.
Shows a GET going to http://production.cf.rubygems.org/quick/Marshal.4.8/rack-1.0.0.gems... with following response:
The requested item could not be loaded
Wrong MIME-Type
The following was in the response header (if of use)
Via: 1.0 c8be0f6fd7dcf98431343c15fdc064d0.cloudfront.net
(CloudFront)
What do I need to do to get this working? Also... this should be fixed (without having to use a work around) because I am sure this is affecting other people trying a fresh install who will just give up after a few tries.
Thanks,
Tim
- raw-request.txt 230 Bytes
- raw-repsonse.txt 1.3 KB
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Tim McAuley on 06 Aug, 2012 11:56 AM
Hi,
Ok, I've found a work around but believe the the gemspec files on production.cf.rubygems.org should be fixed up if possible.
Initial fix:
The file rack-1.0.0.gemspec.rz on http://production.cf.rubygems.org/quick/Marshal.4.8/ was not fetchable. If was giving the error message about the mime type during download.
Work around:
Download and save file from:
http://chneukirchen.org/releases/gems/quick/Marshal.4.8/
Next I had to extract this file. Based on examples from the web, I tried:
ruby -e 'print Gem.inflate(open("rack-1.0.0.gemspec.rz").read);'
but this didn't work.
After some hunting, I found the following:
http://aluigi.org/mytoolz/offzip.zip
and extracted the file using:
offzip rack-1.0.0.gemspec.rz rack-1.0.0.gemspec 0
The rack-1.0.0.gemspec file was placed into
C:\Documents and Settings\Tim.gem\specs\rubygems.org%80\quick\Marshal.4.8
Reran
gem install rails --http-proxy http://localhost:8888
(still using proxy to track further errors)
This worked, for rack-1.0.0.gemspec file but failed on others... needed to re-run for:
rack-1.0.1.gemspec
rack-1.1.0.gemspec
File mime-types-1.16.gemspec.rz then gave problems. Ended up fetching file from:
http://g5k-campaign.gforge.inria.fr/pkg/quick/Marshal.4.8/
I hope this information helps someone in the future.
I know Ruby / Rails are open projects and rely on voluntary time and effort but these types of issues are a big turn off for someone trying out new processes. Could I suggest:
Just some thoughts to consider for the Rubygems folks.
And finally... thank you to all the volunteers out there for continuing to work on the likes of Ruby, Rails, gem etc... that keep the open source movement going. It is appreciated, even if we do gripe every now and then.
Tim
Support Staff 3 Posted by Nick Quaranto on 14 Aug, 2012 01:34 AM
Cool. I just verified that rack-1.0.0.gemspec's doesn't seem to be verified...I wonder if you had a corrupted one on your box. :(
Nick Quaranto closed this discussion on 14 Aug, 2012 01:34 AM.