나는 Ubuntu에서 Ruby 버전 1.9.3을 사용하여 bash 프로필을 망칠 수있는 업데이트를 만들었고 버전 1.8.7을 사용하기보다는 되돌려 놓아야합니다. 지금 rails s
은 Ruby 1.8.7을 사용하여 서버를 열고 내 응용 프로그램에서 사용하는 새로운 구문 때문에 오류가 발생합니다.RVM을 사용하여 Ruby를 버전 1.9.3 (다시)로 변경할 수 있습니까?
.bash_profile
:
cat ~/.bash_profile
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
which rails
:
/usr/local/bin/rails
which ruby
:
/usr/bin/ruby
ruby -v
:
rvm list
0,703,210 :
rvm rubies
=* ruby-1.9.3-p194 [ i686 ]
# => - current
# =* - current && default
# * - default
rvm use 1.9.3
:
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
[답변보기] (http://stackoverflow.com/questions/8663936/how-do-i-change-my-ruby-version-using-rvm) – mabako
감사합니다. @mabako 저는 이미 그것을 보았습니다. 더. 다른 상황입니다 – Tom