0

I have installed RVM (ruby version manager) on a production server (with CentOS).

I have installed it as a user (e.g. foobar) and not as root. (Is this a bad idea?)

Now everything works correctly except that whenever I ssh to my server (e.g. ssh foobar@example.com) RVM doesn't get loaded and I always have to run a login shell (e.g. bash --login) to start using the correct version of ruby and gems.

.bash_profile and .bashrc for user foobar seems to be properly configured.

I would like to know if this is my fault (a bad configuration), or everyone using RVM is facing this issue.

collimarco
  • 264
  • 2
  • 3
  • 10

1 Answers1

0

I do not have this problem on my CentOS 6. You need to have a login shell for rvm (if you have installed it as root) installs a rvm.sh script under /etc/profile.d. This is read by login shells only.

adamo
  • 6,867
  • 3
  • 29
  • 58