1
的Mac OSX 10.7.5運行它,可以在終端運行RSCRIPT:不能在Eclipse中運行程序 「RSCRIPT」,但可以通過終端
Mac-mini lenskit-demo$ rscript --version
R scripting front-end version 3.0.1 (2013-05-16)
但不能老是通過Eclipse中運行它:
[INFO] 22:28:16.672 o.g.l.eval.EvalTarget: beginning execution of analyze
[INFO] 22:28:16.672 o.g.l.eval.EvalProject: running task exec
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:26.859s
[INFO] Finished at: Mon Sep 16 22:28:17 CST 2013
[INFO] Final Memory: 8M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.grouplens.lenskit:lenskit-eval-maven-plugin:2.0-M1:run-eval (default-run-eval) on project lenskit-demo: Execution default-run-eval of goal org.grouplens.lenskit:lenskit-eval-maven-plugin:2.0-M1:run-eval failed: Execute failed: java.io.IOException: Cannot run program "Rscript": error=2, No such file or directory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
請有人告訴我如何解決這個問題?
我不是Mac的大師,然而,這可能是一個路徑問題。如果你在maven配置中放置rscript的完整路徑,它是否工作?另外,我注意到錯誤信息顯示找不到「Rscript」,而當您在終端中運行命令時,它是「rscript」。 OSX是否區分大小寫? – user944849