我在尝试运行任何Ultrasphinx rake命令(在Linux终端下)时遇到此错误,例如rake ultrasphinx:configure:
rake aborted! no such file to load -- echoe /var/www/gitorious/vendor/plugins/ultrasphinx/Rakefile:2:in `require' /var/www/gitorious/vendor/plugins/ultrasphinx/Rakefile:2 /usr/lib/ruby/1.8/rake.rb:2359:in `load' /usr/lib/ruby/1.8/rake.rb:2359:in `raw_load_rakefile' /usr/lib/ruby/1.8/rake.rb:1993:in `load_rakefile' /usr/lib/ruby/1.8/rake.rb:2044:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1992:in `load_rakefile' /usr/lib/ruby/1.8/rake.rb:1976:in `run' /usr/lib/ruby/1.8/rake.rb:2044:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1974:in `run' /usr/bin/rake:28
我收集这意味着没有安装echoe gem。但如果我运行“gem list --local”,它会显示已安装echoe gem。这可能是什么问题,我该如何调试呢?
答案 0 :(得分:2)
您是否尝试升级echoe版本?
sudo gem update echoe
很奇怪。所有的ultrasphinx任务都在.rake文件中正确定义,该文件应由Rails加载而不通过插件Rakefile文件。
还要确保你运行
rake ultrasphinx:configure
来自项目根目录,而不是插件根目录。