【问题标题】:Rails g bootstrap:install not workingRails g bootstrap:安装不起作用
【发布时间】:2012-11-22 16:19:11
【问题描述】:

我在运行命令时遇到问题

rails g bootstrap:install 作为twitter-bootstrap-rails gem 的一部分。

我收到以下错误:

/Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.8.2/lib/v8/context.rb:74:in `IsEntered': HandleScope::HandleScope: Entering the V8 API without proper locking in place (fatal)
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-    0.8.2/lib/v8/context.rb:74:in `enter'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.8.2/lib/v8/portal.rb:74:in `open'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.8.2/lib/v8/object.rb:18:in `block in []='
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.8.2/lib/v8/object.rb:17:in `tap'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.8.2/lib/v8/object.rb:17:in `[]='
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/therubyracer-0.8.2/lib/v8/context.rb:56:in `[]='
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/less-2.2.2/lib/less/loader.rb:12:in `initialize'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/less-2.2.2/lib/less.rb:14:in `new'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/less-2.2.2/lib/less.rb:14:in `<module:Less>'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/less-2.2.2/lib/less.rb:9:in `<top (required)>'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `require'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `each'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `block in require'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `each'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `require'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler.rb:128:in `require'
 from /Users/matty/Documents/rubyboot/boots/store/config/application.rb:7:in `<top (required)>'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.8/lib/rails/commands.rb:24:in `require'
 from /Users/matty/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.8/lib/rails/commands.rb:24:in `<top (required)>'
 from script/rails:6:in `require'
 from script/rails:6:in `<main>'

有人可以帮我诊断一下吗?

【问题讨论】:

  • 我认为是 libV8 的问题,您可以先安装它并尝试安装引导程序吗?
  • 你在 Windows 上工作吗?
  • 不会在 Windows 上,因为它不使用 /Users 映射。如果我没记错的话,我认为 cygwin 使用 /home。有一段时间了。

标签: ruby-on-rails twitter-bootstrap-rails


【解决方案1】:

尝试更新 ruby​​racer 的版本,从依赖的角度来看,这也应该更新 libv8:

bundle update therubyracer

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-25
    • 2013-12-04
    • 1970-01-01
    • 1970-01-01
    • 2019-12-07
    • 1970-01-01
    • 2017-10-31
    相关资源
    最近更新 更多