我正在尝试在我的 Mac 上设置 Octopress。我 Mac 上的默认 Ruby 版本是 1.8.7,但我已将其升级到 2.0.0。
如果我做:
which ruby
它打印:
/Users/liqiushi/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
从 github 克隆我现有的源并“cd”到该文件夹后,我收到以下错误:
You are using '.rvmrc', it requires trusting, it is slower and it is
not compatible with other ruby managers, you can switch to
'.ruby-version' using 'rvm rvmrc to [.]ruby-version' or ignore this
warning with 'rvm rvmrc warning ignore
/Users/liqiushi/Documents/photosynthesiis.github.com/.rvmrc', '.rvmrc'
will continue to be the default project file in RVM 1 and RVM 2, to
ignore the warning for all files run 'rvm rvmrc warning ignore
all.rvmrcs
ruby-1.9.3-p448 is not installed.
To install do: 'rvm install ruby-1.9.3-p448'
如果我做:
ruby -v
在 Octopress 文件夹中打印:
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
而且,如果我这样做:
which ruby
它打印:
/usr/bin/ruby
谁能告诉我如何让 Octopress 使用我刚刚在我的 Mac 中升级的 Ruby 而不是使用 1.8.7?