Error install rubyracer with error “invalid gem: package is corrupt”

前端 未结 2 575
-上瘾入骨i
-上瘾入骨i 2020-12-16 00:20

When trying to install therubyracer on OSX 10.9, with the command:

$ gem install therubyracer -v \'0.12.0\'

I get the error:



        
2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-16 01:12

    I had the following issue :

    Bundler::GemspecError: Could not read gem at /home/username/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/nokogiri-1.6.6.3.gem. It may be corrupted.
    

    Then to fix this I had to go to the following directory : /home/username/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache

    Then I removed the corrupted gem, i.e Nakogiri in my case.

    Then I ran the following command : gem install nokogiri -v '1.6.6.3'

    After installing the gem again, I was good to go.

提交回复
热议问题