3

I've done a lot of searching and there seem to be similar issues, but none that have helped me solve this problem. I'm fairly new to Ruby, Rails, and -ix systems so that doesn't help much, either. :(

I was able to get RVM up and running along with the latest versions (1.9.3-p125 of Ruby and 3.2 of Rails). However, when I exit terminal and come back in the system defaults are being used. When I tried to change versions I received a "command not found". I then tried just typing "rvm" and got:

-bash: rvm: command not found

I followed some other tutorial advice and modified my ~/.bashrc file to look like this:

    PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
    echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

but I'm still getting the exact same "command not found" even after exiting Terminal.

Any thoughts on how to get RVM working properly? Everyone says use it, but it sure isn't simple...

Thanks a lot! Greg

grega
  • 53
  • 1
  • 6

2 Answers2

1

If you modify your .bashrc you either need to immediately source it or create a new shell to see the changes take effect.

The standard rvm procedure is to source the rvm script that is created. The installation documentation covers most use cases.

If your rvm command is missing, it's possible that your .bashrc is not working as you expect. Is your PATH being modified as you've requested? If not you might have another issue.

tadman
  • 208,517
  • 23
  • 234
  • 262
1

I followed some other tutorial advice and modified my ~/.bashrc file

Usually I modify .profile file on Mac OS X, and .bashrc on Linux. Try to modify .profile

Please check How to fix Terminal not loading ~/.bashrc on OS X Lion to know why Terminal doesn't load .bashrc file.

Community
  • 1
  • 1
Aligus
  • 1,585
  • 1
  • 9
  • 11
  • This worked. I needed a .profile file. I also needed a .screenrc file per the instructions at [link](https://rvm.io/workflow/screen/). Thank you both for your help. Selecting this answer since it specifically fixed the Mac issue. – grega May 19 '12 at 04:27