在 ubuntu 上安装 zenoss,出现 No valid ZENHOME 错误

在 ubuntu 上安装 zenoss,出现 No valid ZENHOME 错误

我添加了一个名称为 的用户zenoss,并export ZENHOME=/usr/local/zenoss~/.bashrc下设置/home/zenoss,使用时echo $ZENHOME可以显示/usr/local/zenoss

当安装 zenoss 时,我切换到zenoss然后install.sh在 下运行zenoss-4.2.0/inst,当它尝试运行测试时,出现错误。

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.zenoss.utils.ZenPacksTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.045 sec <<< FAILURE!
Running org.zenoss.utils.ZenossTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.71 sec
Results :

Tests in error: 
  testGetZenPack(org.zenoss.utils.ZenPacksTest): No valid ZENHOME could be found.
  testGetPackPath(org.zenoss.utils.ZenPacksTest): No valid ZENHOME could be found.
  testGetAllPacks(org.zenoss.utils.ZenPacksTest): No valid ZENHOME could be found.

Tests run: 6, Failures: 0, Errors: 3, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Zenoss Core ....................................... SUCCESS [27.643s]
[INFO] Zenoss Core Utilities ............................. FAILURE [12.742s]
[INFO] Zenoss Jython Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.586s
[INFO] Finished at: Wed Sep 26 15:39:24 CST 2012
[INFO] Final Memory: 16M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8:test (default-test) on project utils: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/zenoss/zenoss-4.2.0/inst/build/java/java/zenoss-utils/target/surefire-reports for the individual test results.

答案1

Zenoss 抱怨:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8:test (default-test) on project utils: There are test failures.

确保您确实已经安装了它:

sudo apt-get install libsurefire-java

如果这不能解决问题,请查看它告诉您查看的文件:

[ERROR] Please refer to /home/zenoss/zenoss-4.2.0/inst/build/java/java/zenoss-utils/target/surefire-reports for the individual test results.

相关内容