簡體   English   中英

Linux中的SCIP編譯和安裝問題

[英]SCIP compile and installation problems in linux

我一直在嘗試在Linux下編譯和安裝SCIP,但是在編譯過程結束時出現以下錯誤...。

** Build complete.
** Find your SCIP binary in "/home/carloserwin/Documents/scipoptsuite-4.0.0/scip-4.0.0/bin".
** Enter "make test" to solve a number of easy instances in order to verify that SCIP runs correctly.

make[2]: Leaving directory '/home/carloserwin/Documents/scipoptsuite-4.0.0'
make[1]: Leaving directory '/home/carloserwin/Documents/scipoptsuite-4.0.0'
make[1]: Entering directory '/home/carloserwin/Documents/scipoptsuite-4.0.0'
ar: /home/carloserwin/Documents/scipoptsuite-4.0.0/zimpl-3.3.4/obj/O.linux.x86.gnu.shared.opt/blkmem.o: No such file or directory
make[1]: *** [Makefile.doit:238: scipoptlib] Error 1
make[1]: Leaving directory '/home/carloserwin/Documents/scipoptsuite-4.0.0'
make: *** [Makefile:98: scipoptlib] Error 2

當我編寫“ make test”時,幾乎每個測試都會失敗。 在Linux上進行了幾次嘗試都沒有成功之后,我嘗試在Mac上進行編譯,並且運行完美,並且所有測試都可以。 但是我需要讓它在Linux上運行。

gcc版本是7-2.1 OS Linux openSUSE Tumbleweed,KDE 5.10.3 32位

似乎scipoptlib makefile使用錯誤的目錄來查找zimpl對象。 內部開發版本中似乎有一些修復,也許會有所幫助:

diff --git a/Makefile.doit b/Makefile.doit
index 344f0ee..1d8077e 100644
--- a/Makefile.doit
+++ b/Makefile.doit
@@ -65,7 +65,7 @@ ZIMPLOBJECTS =          blkmem.o bound.o code.o conname.o define.o elem.o entry.


 ifeq ($(ZIMPL),true)
-SCIPOPTOBJFILES    +=  $(addprefix $(ZIMPLDIR)/obj/O.$(OSTYPE).$(ARCH).$(COMP).shared.$(ZIMPLOPT)/,$(ZIMPLOBJECTS))
+SCIPOPTOBJFILES    +=  $(addprefix $(ZIMPLDIR)/obj/O.$(OSTYPE).$(ARCH).$(COMP).$(LIBTYPE).$(ZIMPLOPT)/,$(ZIMPLOBJECTS))
 endif

 ifeq ($(LIBBUILD),$(LINKCC))

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM