我下载并解压amplide-demo-linux64.tar.gz
到/opt/amplide/
.
然后我下载lp_solve_5.5.2.0_exe_ux32.tar.gz
并解压文件lpsolve
到/opt/amplide/ampl/
.
我liblpsolve55.so
在 AMPL 页面上建议的目录下:
kjrz@kjrz-tsh ~ $ ll /usr/lib/lp_solve/
total 604
drwxr-xr-x 2 root root 4096 Jun 24 2014 .
drwxr-xr-x 185 root root 20480 Jan 14 11:11 ..
-rw-r--r-- 1 root root 590168 Dec 23 2013 liblpsolve55.so
这就是发生的事情:
ampl: option solver lpsolve;
ampl: model owd.mod;
ampl: data owd.dat;
ampl: solve;
lpsolve: error while loading shared libraries: liblpsolve55.so: cannot open shared object file: No such file or directory
exit code 127
<BREAK>
那个怎么样?