当前位置:  开发笔记 > 后端 > 正文

执行rails时出错

如何解决《执行rails时出错》经验,为你挑选了1个好方法。

我正在读J.Morgan的一本书黄瓜和奶酪,我遇到了rails puppy app的问题.也就是说,当我执行rails时,我收到以下错误 -

/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-3.2.1/lib/active_support/values/time_zone.rb:268: warning: circular argument reference - now
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'coffee-rails'. (Bundler::GemRequireError)
    from /usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from /usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
    from /usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
    from /usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
    from /usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
    from /usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
    from /home/iza/puppies/config/application.rb:7:in `'
    from /usr/local/lib/ruby/gems/2.2.0/gems/railties-3.2.1/lib/rails/commands.rb:53:in `require'
    from /usr/local/lib/ruby/gems/2.2.0/gems/railties-3.2.1/lib/rails/commands.rb:53:in `block in '
    from /usr/local/lib/ruby/gems/2.2.0/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap'
    from /usr/local/lib/ruby/gems/2.2.0/gems/railties-3.2.1/lib/rails/commands.rb:50:in `'
    from script/rails:6:in `require'
    from script/rails:6:in `
'

PS我没有在书籍作者的网站上发布这个问题,因为它似乎在很长一段时间内一直处于非活动状态:(

我的Gemfile

source 'http://rubygems.org'

gem 'rails', '3.2.1'

gem 'json_pure'
gem 'spruz'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'will_paginate'
gem 'jquery-rails'

group :assets do
  gem 'sass-rails', '~> 3.2.4'
  gem 'coffee-rails', '~> 3.2.2'
  gem 'uglifier', '>= 1.2.3'
end

group :development, :test do
  gem 'rspec-rails'
end

group :test do
 gem 'page-object'
 gem 'rspec'
 gem 'cucumber'
end

我的铁轨(4.2.5,3.2.1)



1> VKatz..:

看起来你还没有安装NodeJ

sudo apt-get install nodejs

应该管用 !!!

推荐阅读
wangtao
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有