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: https://github.com/rails/rails/issues/14807
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-18.104.22.168.gem
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 https://repo.msys2.org/mingw/mingw64/:
mingw-w64-x86_64-ca-certificates-20210119-1-any.pkg.tar.zst from https://ftp.acc.umu.se/mirror/msys2.org/mingw/mingw64/.
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:
msys, I ran:
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
pacman.conf in Notepad++, changing
= 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:
:: Synchronizing package databases...
freetds 1676.0 B 7.54 KiB/s 00:00 [#####################] 100%
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
Ruby Operator Method Calls VS. Normal Method Calls
How to Remove Duplicates in a Hash in Ruby on Rails
Can You Install Documentation for Existing Gems
How to Fix an Accidental 'Sudo Bundle Install Dir_Name'
How to Fix a Bundle Install "Nio4R Error" on Rails 5.0.0
Using Compass from Ruby (Not Shell)
Http Library for Ruby with Https, Ssl Client Certificate and Keep-Alive Support
What Does +@ Mean as a Method in Ruby
How to Make Like Clause Case-Insensitive
Rails 3 Order by Count on Has_Many :Through
How to Redefine Fixnum's + (Plus) Method in Ruby and Keep Original + Functionality
How to Summarize Array of Integers as an Array of Ranges
Why am I Getting This Passenger Error Could Not Find Rake-0.9.2.2 in Any of the Sources
How to Write an Rspec Test for a Ruby Method That Contains "Gets.Chomp"