You have to source the RVM script into the current session because it makes changes to the shell environment - and it is absolutely impossible for that to be done from a child process. Your efforts at running RVM as an external command cannot succeed.
To actually fix this you have two choices:
- Configure your terminal emulator to start a login shell, rather than a non-login shell, so that your
.profile
is loaded. - Modify
.bashrc
to source RVM instead, which works for non-login shells as well.
To do the second you can just add to ~/.bashrc
:
if test -f ~/.rvm/scripts/rvm; then
[ "$(type -t rvm)" = "function" ] || source ~/.rvm/scripts/rvm
fi
'Project 자료수집' 카테고리의 다른 글
반응형 웹 디자인(Responsive Web Design) (0) | 2013.12.19 |
---|---|
[RoR] Ruby 1.92 + Rails 3.1 이클립스 개발 환경 구축하기 (0) | 2013.12.19 |
멘붕없이 RVM과 루비 설치하기 (0) | 2013.12.18 |
자바 + 루비 온 레일즈 (0) | 2013.12.18 |
@@@@ Ruby On Rails 설치하기 (0) | 2013.12.18 |