茉莉花,无法初始化

时间:2011-07-09 23:16:16

标签: javascript ruby jasmine

我有一个没有任何rails,merb和etc框架的ruby-javascript项目。宝石成功安装,但当我尝试初始化jasmine jasmine init时,我收到了这条消息:

can't activate rack (~> 1.2.1, runtime) for ["actionpack-3.0.3", "railties-3.0.3"], 
already activated rack-1.3.0 for ["jasmine-1.0.2.1]

的Gemfile:

source "http://rubygems.org"
gem "coderay"
gem 'ruby-debug19'
gem 'jasmine'

如何解决这个问题?感谢

P.S。 Windows 7,DivKit

P.S.1。似乎bundle exec jasmine init应该有效,但我还有另一个错误:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/lib/jasmine/tasks/jasmine.rake:1:
  in `<top (required)>': undefined method `namespace' for main:Object (NoMethodError)
from e:/Work/ReadTheCode/Rakefile:4:in `load'
from e:/Work/ReadTheCode/Rakefile:4:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/lib/jasmine
                                                /command_line_tool.rb:49:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/lib/jasmine
                                                /command_line_tool.rb:49:in `process'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/bin/jasmine
                                                :6:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/bin/jasmine:19:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/bin/jasmine:19:in `<main>'

1 个答案:

答案 0 :(得分:1)

你需要让你的rails安装依赖于根Gemfile中的rack 1.3.0,或者尝试让jasmine依赖于rack 1.2.1