Question

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.

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top