Steve
Steve

Reputation: 14912

Cannot install Ruby Gems in Windows 7

I have successfully installed Ruby Gems on my Mac many times. I need to configure a Windows 7 Enterprise virtual machine with Compass, Sass and Suzy.

I downloaded an installed Ruby on the Windows machine with the installer, 1.9.3. I ran gem update --system which updated Rubygems to 1.8.4.

I was able to install Sass 3.2 by running gem install sass

However, if I run gem install compass or gem install susy I get an error:

Error while excecuting gem .. (ArgumentError) marshall data too short

Any ideas? At this point, I can't install those gems.

Upvotes: 0

Views: 3801

Answers (3)

user2993155
user2993155

Reputation: 11

Had same issue, updating rubygems system solved it. Just use the following command

gem update --system

Upvotes: 1

Steve
Steve

Reputation: 14912

For those finding this question, many great tips here. Using them, I found this solution to work:

At the N: prompt in "start command line with ruby environment", I used the command rmdir /S .gem which deleted all gems. I then installed them again with gem install as directed on their respective host web pages. Hope this helps someone.

Upvotes: 0

Xwris Stoixeia
Xwris Stoixeia

Reputation: 1861

The alternative solution..: Download gem compass from here to your ruby root folder. Then try again gem install compass It should install this time..Good luck

Upvotes: 2

Related Questions