Mac OS X Mountain Lion “Rails is not currently installed on this system.”

后端 未结 11 1748
悲哀的现实
悲哀的现实 2021-02-01 08:42

I am on a fresh install of OS X Mountain Lion. I have installed rails via:

sudo gem install rails

Everything seems to install correctly, but wh

11条回答
  •  日久生厌
    2021-02-01 09:37

    Just had this issue using rbenv, no idea how this happened, but figured that my ~/.rbenv/shims/rails was empty...

    So to fix this:

    • Cleaned empty shims: find ~/.rbenv/shims -empty -delete

    • Then regenerate: rbenv rehash (was not overwriting empty one...)

提交回复
热议问题