Rails安装不正确。没有加载/ config / boot?

时间:2013-07-24 17:32:49

标签: ruby-on-rails-3 rvm

我已经安装了RVM来处理我的所有rails项目。以下是环境细节:

rvm list

rvm rubies

=* ruby-1.9.3-p448 [ i686 ]

使用Ubuntu 12.04并遵循these instructions for install of RVM, ruby

安装完导轨后,看起来一切正常:

gem install rails --version=3.2.13
Fetching: rails-3.2.13.gem (100%)
Successfully installed rails-3.2.13
Installing ri documentation for rails-3.2.13
1 gem installed

但是当我检查rails版本时,我收到以下错误

sites$ rails -v
/home/danny/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext 
/kernel_require.rb:51:in 
`require': cannot load such file -- /home/danny/sites/config/boot (LoadError)

 from /home/danny/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems  
  /core_ext/kernel_require.rb:51:in 
 `require'
from script/rails:5:in `<main>'

我曾尝试过两次重新安装rvm,ruby和rails,但没有快乐。

更新 脚本rails看起来像这样:

APP_PATH = File.expand_path('../../config/application',  __FILE__)
require File.expand_path('../../config/boot',  __FILE__)
require 'rails/commands'

0 个答案:

没有答案