0

I'm using ubuntu, zshrc, and after installing rails, using

gem rvm all do gem install rails

and getting a successful install, i'm getting a

zsh: command not found: rails

I'm guessing this has to do with my ~/.zshrc file

I have this at the end of it:

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

I'm a noob at understanding how paths work, any idea how to get terminal to recognize rails commands?

eden
  • 1,979
  • 3
  • 16
  • 13
  • Are you sure it gets installed? the `gem rvm all` command seems weird to me. – Tamer Shlash Jun 15 '14 at 05:33
  • I had the same problem, but it seems to be profile loading issue... I get around it by just switching to my user account... from my user account... This is, if I am `user`, I open a terminal and type `su - user`... Then the profile loads fully – Ruby Racer Jun 15 '14 at 07:05
  • try: `source ~/.rvm/scripts/rvm` and `gem install rails` – maringan Jun 15 '14 at 10:45
  • hm, none of those seemed to work for me, yes it tells me after running the command that rails is installed, none of the commands are working though – eden Jun 16 '14 at 02:24
  • just had to uninstall zshrc and go back to bash... – eden Jun 16 '14 at 02:29

0 Answers0