Errno :: ENOENT:没有这样的文件或目录 - java

时间:2014-11-03 15:11:42

标签: ruby-on-rails

当执行$ bundle exec rake sunspot:solr:start然后它成功启动

$ bundle exec rake sunspot:solr:start
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Removing stale PID file at /home/user/practice/site_ad/solr/pids/development/sunspot-solr-development.pid
Successfully started Solr ...

但是在执行rake sunspot时:solr:运行得到这个错误

rake aborted!
Errno::ENOENT: No such file or directory - java
/home/user/.rvm/gems/ruby-1.9.3-p547/gems/sunspot_solr-2.1.1/lib/sunspot   /solr/server.rb:105:in `exec'
/home/user/.rvm/gems/ruby-1.9.3-p547/gems/sunspot_solr-2.1.1/lib/sunspot/solr/server.rb:105:in `block in run'
/home/user/.rvm/gems/ruby-1.9.3-p547/gems/sunspot_solr-2.1.1/lib/sunspot/solr/server.rb:104:in `run'
/home/user/.rvm/gems/ruby-1.9.3-p547/gems/sunspot_solr-2.1.1/lib/sunspot/solr/tasks.rb:11:in `block (3 levels) in <top (required)>'
/home/user/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `eval'
/home/user/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => sunspot:solr:run

0 个答案:

没有答案
相关问题