2009/11/30 William Stein <wst...@gmail.com>: > On Sun, Nov 29, 2009 at 9:38 AM, dimpase <dimp...@gmail.com> wrote: >> Another similar question involves using the local version of GAP >> in place of the supplied one. >> Apart from the fact that Sage is distributed with an old and (a bit) >> broken version of GAP, >> (well, I know that I can install a newer version by downloading the >> corresponding update) >> having two copies of GAP is awkward, just given the fact that a full >> installation of GAP with all >> the packages and libraries is quite huge. >> (well, maybe it is psychological difficulty, as I use (and >> occasionally develop small bits of) GAP since >> 1994... :)) >> > > Can you test if this will actually work by modifying the file > > SAGE_ROOT/local/bin/gap > > in your Sage install in the natural way? not quite. After I do this, (on Sage updated with gap-4.4.12.p2.spkg) I can run my local GAP installation, but gap_reset_workspace fails:
d...@spms-dima:/usr/local/src/sage-4.2.1/local/bin$ sage ---------------------------------------------------------------------- | Sage Version 4.2.1, Release Date: 2009-11-14 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: sage: gap.console() GAP4, Version: 4.4.12 of 17-Dec-2008, i686-pc-linux-gnu-gcc gap> LoadPackage("grape"); true gap> sage: gap_reset_workspace() --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) /usr/local/src/sage-4.2.1/local/bin/<ipython console> in <module>() /usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc in gap_reset_workspace(max_workspace_size, verbose) 976 pass 977 # end for --> 978 g.eval('SaveWorkspace("%s");'%WORKSPACE) 979 980 /usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc in eval(self, x, newlines, strip, **kwds) 478 input_line += ';' 479 --> 480 result = Expect.eval(self, input_line, **kwds) 481 482 if not newlines: /usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc in eval(self, code, strip, synchronize, locals, **kwds) 980 try: 981 with gc_disabled(): --> 982 return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != '']) 983 except KeyboardInterrupt: 984 # DO NOT CATCH KeyboardInterrupt, as it is being caught /usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt) 683 try: 684 if self._expect is None: --> 685 self._start() 686 E = self._expect 687 #import pdb; pdb.set_trace() /usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc in _start(self) 360 self._session_number = n 361 return --> 362 raise RuntimeError, msg 363 364 if self.__use_workspace_cache and self.__make_workspace: RuntimeError: Unable to start gap sage: -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org