On 11.02.2012 01:25, yannche wrote:
Hi Nathan,Yes, I checked local/include and local/lib. CPLEX runs fine also as a 64 bit standalone. I recompiled everything with ./sage -ba, and now MixedIntegerLinearProgram(solver="CPLEX") triggers a new error message !!!! I put the log below: ----- Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_3.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("bHAgPSBNaXhlZEludGVnZXJMaW5lYXJQcm9ncmFtKHNvbHZlcj0iQ1BMRVgiKQ=="),globals()) +"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module> File "/private/var/folders/4r/km32m_0s09d58glt8bk9bpcr0000gn/T/ tmp28dJQ6/___code___.py", line 2, in <module> exec compile(u'lp = MixedIntegerLinearProgram(solver="CPLEX") File "", line 1, in <module> File "mip.pyx", line 200, in sage.numerical.mip.MixedIntegerLinearProgram.__init__ (sage/numerical/ mip.c:1360) File "generic_backend.pyx", line 864, in sage.numerical.backends.generic_backend.get_solver (sage/numerical/ backends/generic_backend.c:5952) File "generic_backend.pyx", line 922, in sage.numerical.backends.generic_backend.get_solver (sage/numerical/ backends/generic_backend.c:5768) ImportError: dlopen(/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/ Resources/sage/local/lib/python2.6/site-packages/sage/numerical/ backends/cplex_backend.so, 2): Symbol not found: _kIOMasterPortDefault Referenced from: /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/ Resources/sage/local/lib/python2.6/site-packages/sage/numerical/ backends/cplex_backend.so Expected in: flat namespace in /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/ local/lib/python2.6/site-packages/sage/numerical/backends/ cplex_backend.so
From https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014540277 :
"You need to link the frameworks CoreFoundation and IOKit for the academic version of the product since the license enforcement tools depend on them. The relevant linker command line arguments are "-framework CoreFoundation -framework IOKit"."
-leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
