2

I've been testing this for the past few hours with no luck. When launching an Ubuntu 12.04 EC2 micro instance, I SSH to it, create a new user and continue with installing Ruby version manger under the new user

$ curl -L get.rvm.io | bash -s stable

This writes the following to /home/user/.bashrc

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

These lines are also needed in /home/user/.bashrc to persist the shell configuration

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

After I add the lines to /home/user/.bashrc, I'm still able to perform tasks under /home/user however if switching to root then back to /home/user, the terminal hangs. I also noticed on a fresh instance, after editing .bashrc then rebooting the instance, the AWS console shows an alert under Status Checks that reads 1/2 checks passed.

I'm not sure what the problem is, any suggestions?

4
  • 1
    That last line belongs in .bash_profile, not .bashrc. rvm will put it there itself, if you installed it correctly. Jan 24, 2014 at 8:30
  • Use set -x in your .bashrc to see what's going on.
    – user9517
    Jan 24, 2014 at 8:31
  • @Michael Hampton - Thanks, the guide I was using is a little outdated
    – dcd0181
    Jan 24, 2014 at 8:41
  • You don't need to (and should not) edit those files yourself, nor create a .profile file. The "guide" you should be using is at rvm.io/rvm/install :) Jan 24, 2014 at 8:43

0

You must log in to answer this question.