rails rbenv: rails: command not found

前端 未结 4 870
醉话见心
醉话见心 2020-12-24 08:46

I have recently moved from RVM to Rbenv and when attempting to execute rails I am getting an error like the one below

Pauls-Air:~ $ rails
rbenv: rails: comma         


        
4条回答
  •  不知归路
    2020-12-24 09:24

    After installing a gem via the command line in a ruby version you have to execute rbenv rehash as described in the docs here and here

    For example:

    $ rbenv install 2.2.0
    $ gem install bundler
    $ rbenv rehash
    $ gem install rails
    $ rbenv rehash
    

提交回复
热议问题