Gem.source_index is deprecated, use Specification. Should I re-install Gem or Rails?

后端 未结 5 414
清歌不尽
清歌不尽 2020-12-02 12:39

I\'m learning RoR on Ubuntu 11. Got the following message when I was trying to generate an app. Did I install something incorrectly?

$ rails generate control         


        
5条回答
  •  时光取名叫无心
    2020-12-02 12:42

    The best way to solve this is:

    $ gem pristine --all --no-extensions
    

    This will rebuild all gems (excluding those with native extensions) and update their gemspecs. If you don't have any gems with native extensions or you didn't use any custom compile flags on those gems you can also omit the --no-extensions flag. Otherwise you'll have to build them seperately.

提交回复
热议问题