您的位置:首页 > 编程语言 > Java开发

no GurobiJni55 in java.library.path

2015-10-30 18:19 746 查看
搞了两天终于搞定了!

话说为了安装13版本的wikifier,要求得先安装好gurobi,但是完全没有提示说13wikifier所用的只能是gurobi5.5啊喂,所以安装了gurobi6的版本之后,运行mvn intall总是报错test通不过。

Tests in error:
test(edu.illinois.cs.cogcomp.wikifier.inference.GurobiTest): no GurobiJni55 in java.library.path
testCoreference(edu.illinois.cs.cogcomp.wikifier.models.ILPModelTest): Could not initialize class gurobi.GurobiJni

Tests run: 31, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2015-10-30T14:19:39+08:00
[INFO] Final Memory: 31M/1930M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project wikifier: There are test failures.
[ERROR]
[ERROR] Please refer to /home/yaolili/Wikifier2013/target/surefire-reports for the individual test results.
[ERROR] -> [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/MojoFailureException
那个叫郁闷,之前google了一下gurobi的网上讨论社区,大家所讨论的都是LD_LIBRARY_PATH设置有问题,弄了半天觉得还是没有配置错误,后面才后知后觉在/gurobi605/linux64/lib下面没有这个文件,只有libGurobiJni60.so ,特意去gurobi官网下载了旧版本的一看,发现gurobi5.5版本的lib目录下就是libGurobiJni55.so ,所以就更改一下环境变量,发现就顺利搞定了,真是坑人啊。

具体gurobi的安装见下一篇文章。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息