Ubuntu RVM Rails bash command not found

后端 未结 2 876
挽巷
挽巷 2021-02-06 11:01

I just installed ubuntu, and after that I wanted to install RVM with ruby and rails 3.1.

Installations went fine but when I want to create a rails app it can\'t find the

2条回答
  •  囚心锁ツ
    2021-02-06 11:58

    I meet the issue "command not found: rails" too, but I'm using oh-my-zsh for the shell prompt, and I fix the issue by copy the line

    PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
    

    from file ~/.bashrc to ~/.zshrc, and it works well. Hope it can give you some help.

提交回复
热议问题