no GurobiJni55 in java.library.path

搞了两天终于搞定了!


话说为了安装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的安装见下一篇文章。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值