Error Install Rubyracer with Error "Invalid Gem: Package Is Corrupt"

gem install rails fails

If the error message says the "package is corrupt", you need to find a way to delete it and download it again.

Google "rails package is corrupt" and you will find some links to stackoverflow with similar queries. For example: Error install rubyracer with error "invalid gem: package is corrupt"

Another similar problem:

invalid gem: package is corrupt -- while installing rails in osx yosemite 10.10.1

I got my answer. I remove previous cache and then everything fine.

sudo rm /Users/username/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/nokogiri-

brew install libiconv

gem install nokogiri

Clean install OSX 10.9.1 returns undefined method `path2class' when trying to install gems

It turns out that this is a bug in an older version of psych, but it can't be solved, as long as you installed ruby with RVMs statically linked gems. So basically the problem is related to RVMs statically linked gems. Installing rubies with the --disable-binary solves the problem:

rvm install 2.0.0-p353 --disable-binary

Or reinstall with:

rvm reinstall 2.0.0-p353 --disable-binary

Error while installing the mimemagic in rails

Try deleting this file from the system


and then try installing the gem again. It seems that the gem was not properly downloaded.

Errors installing gems locally - how can I install slacker offline?

I have answered question 1 myself. If anyone else can give me a definitive answer to part two, I will happily mark that as the answer.

I guessed that I needed to download and install the mingw packages that couldn't be downloaded somewhere. I did a bit of trawling and found this article (Offline installation of packages)which gave me the pointers I needed. I got these four files from


And mingw-w64-x86_64-ca-certificates-20210119-1-any.pkg.tar.zst from

I copied them to: C:\Ruby27-x64\msys64\home\myUserId\freetds which is in my home dir in msys. (From errors I got the first time, it looks like the folder name has to match the database name.) Then I started msys by running: C:\Ruby27-x64\msys64\msys2.exe.

In msys, I ran:

cd freetds/

then, to create a repository database just for freetds:

$ repo-add freetds.db.tar.gz *.pkg.tar.zst

I got a bunch of messages telling me it was ==> Adding package 'ming...

I needed to edit the pacman.conf file to point to my temp database, so I made a copy of the pacman.conf file:

cp /etc/pacman.conf /etc/pacman.conf.old

I edited pacman.conf in Notepad++, changing SigLevel to = Never, commenting out the other repositories, and adding this to the end:

Server = file:///home/myUserId/freetds

Then, I made pacman synchronise with the database I created:

pacman -Sy

:: Synchronizing package databases...
freetds 1676.0 B 7.54 KiB/s 00:00 [#####################] 100%

I tried gem install slacker again but there was another missing package "mingw-w64-x86_64-libffi, so I downloaded mingw-w64-x86_64-libffi-3.3-4-any.pkg.tar.zst and put it in the same place, re-ran the repo-add command and pacman Sy and then gem install slacker.

This worked and I got 10 gems installed. I've run the test project documented in the slacker GitHub pages and it worked.

Error: SASS installation for windows

thanks for your suggestions, as you guys said this seems to be SSH update issue.

have solved this issue simply down graded my RUBY version from "2.1.5" to "1.8", and the gem version is "1.8.29".

then i was able to install SASS

Related Topics

Leave a reply