I tried installing and using gap3 in sage, and this is what happened:

    I installed the all-in-one gap3r4p4.zoo into SAGEHOME/local/lib

    I ended up using the gap-ibm-i386-linux-gcc precompiled binary they
provided (compiling from src failed, but this binary worked on my system,
which is kubuntu7.04) I ran some example code the install readme provided as
a test, and it succeeded.

    I edited the gap.sh for the sage environment and put a symlink in
SAGEHOME/local/bin

    I made a branch of sage so I could experiment with the gap.py pexpect
interface...

    It turns out that gap3 and 4 have different command line options (among
other differences), so the sage interface was pretty broken. I got to the
point where at least the gap3 console would start in sage, (it looked just
like it did in the bash shell! (joking)).
After playing around with omitting different command line flags and
disabling things related to saving and loading gap workspaces, the interface
started to show signs of life! (i.e. there was no failure in spawning the
gap process)
I called the version method 'gap.version()' and it returned the right thing
(stuff about version 3). Unfortunately, evaluation of expressions (like
n=gap(2323)) return 'Syntax error: expression expected'. Also, I tried
tab-completing something and then everything blew up.

Are you familiar with the differences in the two versions? Is there
something simple you know of to try to fix this (besides your suggestion
(4))? Or is the interface maybe just too incompatible with gap3? Or did I do
something wrong in my installation/hack process?

Thanks for your help. I'm guessing not too many people will want to be able
to do this, so it's probably not a big deal/problem for sage.
-dorian



On 6/11/07, David Joyner <[EMAIL PROTECTED]> wrote:
>
>
> Chevie is a GAP3 package, not GAP4. (Yes it matters.) To using
> Chevie in SAGE I think you must do the following:
>
> (1) install GAP3 into SAGEHOME/local/lib (which may or may not
> be possible on your machine - see Frank Luebeck's page for hints),
> (2) install Chevie in GAP3,
> (3) modify the gap.py pexpect module in the interfaces subdirectory
> to call gap3 instead of gap4,
> *or*
> (4) translate all of Chevie from GAP3 to GAP4.
>
> Unfortunately, both options are non-trivial.
>
> +++++++++++++++++++++++++++++++++++++++++++
>
> On 6/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> > I want to do some work with Braid groups. I see that there is a GAP
> > package called CHEVIE which implements braid elements.
> >
> > I tried installing the CHEVIE package in GAP4, but failed (I'm new to
> > GAP, so I can't really say what went wrong, but this package is
> > advertised as a GAP3 package. Does that matter? Also, CHEVIE is not in
> > the list of 'accepted packages' on the GAP webiste).
> >
> > I would like to be able to do my work with this in SAGE. Any advice on
> > getting this package to work with GAP in SAGE, or, perhaps, any
> > recommendation of another package supporting Braids would be
> > appreciated.
> >
> > Thanks,
> > -Dorian
> >
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to