how to install new Gap package in sage

53 views
Skip to first unread message

A.A

unread,
Jun 28, 2010, 1:58:00 PM6/28/10
to sage-support
Hello ,
I am looking for tutorial about how one can install new Gap package in
sage if this possible .

thanks .

Simon King

unread,
Jun 28, 2010, 2:23:10 PM6/28/10
to sage-support
Hi!

On Jun 28, 6:58 pm, "A.A" <aliaj...@gmail.com> wrote:
> I am looking for tutorial about how one can install new Gap package in
> sage  if this possible  .

In a nutshell: A GAP package should be possible to install just as
usual, with the only exception that you need to perform the
installation in a Sage shell.

So, the following should work:

1. In a terminal session, open the sage shell with the command
sage -sh
in your Unix/Linux shell.
Inside this shell, the command "gap" refers to the GAP program that
belongs to Sage.

2. Install your package just as you would usually do. Often, GAP
packages simply need to be unpacked in GAP's pkg directory. You will
find it at $SAGE_ROOT/local/lib/gap-4.4.12/pkg/ (SAGE_ROOT is an
environment variable that yields the directory in which Sage is
installed).

3. Leave the sage shell (by exit or by Ctrl-d). Start Sage; it might
then be needed to launch the command
sage: gap_reset_workspace()
in your Sage session.

4. Now, the package should work.

Cheers,
Simon

A.A

unread,
Jun 30, 2010, 9:47:10 AM6/30/10
to sage-support
thank you so much .
Reply all
Reply to author
Forward
0 new messages