无法使用cmd提示符中的Taza创建项目

时间:2014-01-01 16:59:13

标签: ruby gem watir

当我尝试使用 taza gem从cmd提示符创建项目时,我遇到以下错误:

  

无法加载此类文件 - i18n(LoadError)

我甚至更新了宝石但仍然遇到了同样的错误。

我的系统规格:

  

Windows 7

     

ruby​​版本:1.9.3

日志:

D:\>taza Example
You don't have i18n installed in your application. Please add it to your Gemfile
and run bundle install
D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
cannot load such file -- i18n (LoadError)
 from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
 from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
_support/i18n.rb:2:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
_support/inflector/transliterate.rb:3:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
 _ support/core_ext/string/inflections.rb:3:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active  
 _support/xml_mini.rb:2:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
 _support/core_ext/array/conversions.rb:1:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
 _support/duration.rb:2:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
 _support/core_ext/time/calculations.rb:1:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
 n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
 _support/time.rb:19:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
  n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
  n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active
  _support/all.rb:2:in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
  n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
  n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/rubigen-1.5.8/lib/rubigen.rb:4:
   in `<top (required)>'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
   n `require'
    from D:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
   n `require'
    from D:/Ruby193/lib/ruby/gems/1.9.1/gems/taza-0.9.1.2/bin/taza:4:in `<to
   p (required)>'
    from D:/Ruby193/bin/taza:23:in `load'
    from D:/Ruby193/bin/taza:23:in `<main>'

1 个答案:

答案 0 :(得分:1)

您可能需要安装il8n gem:

gem install i18n

(从命令提示符运行以上命令以安装gem。)