M2 spkg in Sage is so old (ver 1.1, as opposed to just released 1.6: https://github.com/Macaulay2/M2/tree/release-1.6) that it's better to completely remove it from the repo... Just in case, I tried building version 1.6 inside the Sage 5.9 shell, and it didn't work due to some GMP incompatibility:
In file included from /tmp/M2/M2/BUILD/normal/libraries/final/include/stdinc.h:34:0, from ../../../../Macaulay2/d/version.dd:30: /usr/local/src/sage/sage-5.9/local/include/gmpxx.h: In member function 'intmax_t __gmp_expr<__mpz_struct [1], __mpz_struct [1]>::get_sx() const': /usr/local/src/sage/sage-5.9/local/include/gmpxx.h:1710:49: error: 'mpz_get_sx' was not declared in this scope So this is not so easy to get it updated... On Wednesday, 15 May 2013 18:05:01 UTC+8, Martin Albrecht wrote: > > Hi William, > > I tried to fix the bug and provided a patch at > > http://trac.sagemath.org/sage_trac/attachment/ticket/14587/ > > However, I cannot test it as the M2 experimental package won't build (on > my > machine). > > On Tuesday 14 May 2013, William Stein wrote: > > Hi, > > > > I actually tried to use something marked #optional, hence not tested, > > hence broken, and it was broken: > > > > P.<a,b,c> = PolynomialRing(ZZ,3) > > I = sage.rings.ideal.Katsura(P,3) # regenerate to prevent caching > > I.groebner_basis('macaulay2:gb') # optional - macaulay2 > > > > Error in lines 3-3 > > Traceback (most recent call last): > > File "/mnt/home/lFqBXyPI/.sagemathcloud/sage_server.py", line 412, in > > execute exec compile(block, '', 'single') in namespace, locals > > File "", line 1, in <module> > > File "cachefunc.pyx", line 1462, in > > sage.misc.cachefunc.CachedMethodCaller.__call__ > > (sage/misc/cachefunc.c:7556) > > File "cachefunc.pyx", line 2044, in > > sage.misc.cachefunc.CachedMethod._instance_call > > (sage/misc/cachefunc.c:10040) > > File > > > "/usr/local/sage/sage-5.9/local/lib/python2.7/site-packages/sage/rings/pol > > ynomial/multi_polynomial_ideal.py", line 3840, in groebner_basis > > gb = self._groebner_basis_macaulay2(prot=prot, *args, **kwds) > > TypeError: _groebner_basis_macaulay2() got an unexpected keyword > argument > > 'prot' > > Cheers, > Martin > > -- > name: Martin Albrecht > _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 > _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF > _www: http://martinralbrecht.wordpress.com/ > _jab: martinr...@jabber.ccc.de <javascript:> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.