我正在尝试安装Ruby on Rails,但每次出现以下错误。例如,我检查了rails的版本,结果出来了:
Jacks-MacBook-Air:~ jackscotti$ rails -v
bin/rails:3:in `require_relative': cannot load such file -- /Users/jackscotti/config/boot (LoadError)
from bin/rails:3:in `<main>'
这就是我安装它的方式。我遵循“使用Rails 4进行敏捷Web开发”一书中的说明。 这是:
$curl -L https://get.rvm.io | bash -s stable
$rvm install 2.0.0 --autolibs=enable
$rvm use 2.0.0
$gem install rails --version 4.0.0 --no-ri --no-rdoc
$rvm --default 2.0.0
然后我输入时出现错误:
$rails-v
**当地宝石**
actionmailer (4.0.1, 4.0.0)
actionpack (4.0.1, 4.0.0)
activemodel (4.0.1, 4.0.0)
activerecord (4.0.1, 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.1, 4.0.0)
arel (4.0.1)
atomic (1.1.14)
bigdecimal (1.2.0)
builder (3.1.4)
bundler (1.3.5)
bundler-unload (1.0.2)
erubis (2.7.0)
executable-hooks (1.2.6)
hike (1.2.3)
i18n (0.6.5)
io-console (0.4.2)
json (1.7.7)
mail (2.5.4)
mime-types (1.25.1)
minitest (4.3.2)
multi_json (1.8.2)
polyglot (0.3.3)
psych (2.0.0)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.1, 4.0.0)
railties (4.0.1, 4.0.0)
rake (0.9.6)
rdoc (4.0.0)
rubygems-bundler (1.4.2)
rubygems-update (2.1.9)
rvm (1.11.3.8)
sprockets (2.10.1)
sprockets-rails (2.0.1)
test-unit (2.0.0.0)
thor (0.18.1)
thread_safe (0.1.3)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (0.3.38)