當我打開終端我看到:RVM加載了錯誤的ruby版本?
Last login: Sun Aug 26 15:33:57 on ttys001
Using /Users/me/.rvm/gems/ruby-1.9.3-p125
Running /Users/me/.rvm/hooks/after_use
Using /Users/me/.rvm/gems/ruby-1.9.3-p194
ruRunning /Users/me/.rvm/hooks/after_use
me-MacBook:site me$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
,我想紅寶石1.9.3。如果我再鍵入:
rvm use 1.9.3 --default
我得到以下:
$ rvm use 1.9.3 --default
Using /Users/me/.rvm/gems/ruby-1.9.3-p194
Running /Users/me/.rvm/hooks/after_use
這讓我使用的軌道,但是當我重新打開終端我不得不做這每一次。有沒有辦法使這個默認設置?我將它添加到了我的bash_profile中,但這似乎不起作用。這是我的bash簡介:
# Required for Ruby upgrade to 1.9.3
export RUBYOPT=-r openssl
export PATH=${PATH}:/opt/local/bin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
# Sets the RVM profile on terminal load
rvm use ruby-1.9.3-p125
rvm use 1.9.3 --default
# RVM Requirements
export CC="/usr/local/bin/gcc-4.2"
export CFLAGS="-O2 -arch x86_64"
export LDFLAGS="-L/opt/local/lib"
export CPPFLAGS="-I/opt/local/include"
export ARCHFLAGS="-arch i386"
# Postgresql
export PATH=/usr/bin:$PATH
任何幫助嗎?由於
這樣做了,謝謝! – AnApprentice
很高興它工作:) – mask8