Reputation: 11207
I'm trying to install rails but I get a "marshal data too short" error. I read in this question ( bundle update fails : marshal data too short ) that I can update the Gemfile to make it work.
My problem is that I really have no idea how to modify this "Gemfile".
Thx.
Upvotes: 2
Views: 18056
Reputation: 11207
Damn, it was so simple... to update the gemfile, you only got to execute these two command lines:
gem source -r https://rubygems.org/
gem source -a http://rubygems.org/
Then you can execute your installation normally:
gem install rails
Upvotes: 3
Reputation: 91
Go to the root of your application, and look for Gemfile. The root of the application is where you run rails server from, in case you were wondering :)
Open Gemfile using your favorite text editor, and try changing the rubygems source from HTTP to HTTPS.
Locate the following:
source 'http://rubygems.org'
Replace it with:
source 'https://rubygems.org'
You might want to check out this thread: Marshal data too short
Upvotes: 0