我正在嘗試從 Ubuntu 的終端命令列運行 Cplex。當我執行時,
/oplrun/path$ ./oplrun我收到以下錯誤。
./oplrun: error while loading shared libraries: liboplnl1.so.12: cannot open shared object file: No such file or directory
我該如何解決?
TIA
uj5u.com熱心網友回復:
在 CPLEX 檔案中
Linux platforms
Only the environment variable LD_LIBRARY_PATH is needed to point to the shared libraries of the CPLEX Studio distribution.
<Install_dir>/opl/bin/x86-64_linux
uj5u.com熱心網友回復:
我執行了命令:
/oplrun/path$ ldd oplrun
我發現有兩個依賴項,包括 liboplnl1.so.12,盡管它們存在于與 oplrun 相同的路徑中,但它們“未找到”。因此,我將拖曳檔案復制到存在其他依賴項的路徑中。現在,如果我運行/oplrun/path$ ldd oplrun命令,則會在我復制它們的地址找到 so 檔案:
liboplnl1.so.12 => /usr/lib/x86_64-linux-gnu/liboplnl1.so.12 (0x00007fa0db5bc000)
現在, oplrun 可以從命令列執行。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/528456.html
