• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cnf/H03-May-2022-10,7949,060

doc/H03-May-2022-6,9035,367

examples/H03-May-2022-278231

htm/H03-May-2022-4,6014,587

lib/H03-May-2022-15,23112,982

src.x11/H03-May-2022-11,1137,261

CHANGESH A D03-May-20225.1 KiB154106

LICENSEH A D03-May-202215.3 KiB293246

Makefile.inH A D03-May-20221.5 KiB5419

PackageInfo.gH A D03-May-20222.7 KiB10084

READMEH A D03-May-20227.1 KiB188145

README.WindowsH A D03-May-20225 KiB10784

TODOH A D03-May-2022293 129

configureH A D03-May-2022116.7 KiB4,0933,382

configure.inH A D03-May-20223.1 KiB11096

init.gH A D03-May-20221.4 KiB4538

xgap.sh.inH A D03-May-20228.6 KiB26561

README

1The GAP 4 package 'XGAP'
2------------------------
3
4XGAP provides a graphical user interface for GAP based on the X Window system.
5
6
7%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8Installing XGAP
9
10Installing XGAP should be easy once you have installed GAP itself. We
11assume here that you want to install XGAP in its standard location,
12which is in the ``pkg'' subdirectory of the main GAP4 installation.
13
14%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15Overview
16
17You have to perform the following steps to install XGAP:
18
19-- Get the sources
20-- Unpack the sources
21-- Use the <configure> script to adjust everything to your specific system
22-- Compile the C part of XGAP
23-- Edit a certain startup script (if necessary) and install it in
24   an executable location in your system
25
26%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27What you need to install XGAP
28
29Being a graphical user interface to GAP, XGAP of course needs
30graphics. At the moment this means that you need the X window system in the
31Version 11 Release 5 or newer. On the other hand the type of Unix you use
32should not matter. Please file an issue report on
33  https://github.com/gap-packages/xgap/issues
34if you encounter problems with certain system configurations.
35Note that usage on
36a computer running Microsoft Windows is not officially supported.
37See the file `xgap/README.Windows' for a report how it could
38still work on Windows.
39
40Because XGAP contains a C-part you need a C compiler.
41
42%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43Getting and unpacking the sources
44
45In most cases, the XGAP package will already be included in the main
46distribution. However, you can also download the sources of the latest
47version from
48
49https://gap-packages.github.io/xgap/
50
51You need only one file with the name `xgap-4.30.tar.gz`
52which is in the subdirectory for the packages.
53You now change your current directory to the `pkg' subdirectory of the
54location where you installed
55GAP
56Now you extract the sources for the XGAP package:
57
58# tar xzvf xgap-4.30.tar.gz
59...
60
61The <tar> utility unpacks the files and stores them into the apropriate
62subdirectories. XGAP resides completely in the following subdirectory
63(assuming standard location):
64
65gap4r8/pkg/xgap
66
67%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
68Configuring and Compiling the C part
69
70You have to change your current working directory to the ``xgap''
71subdirectory. You do this by
72
73# cd xgap
74
75if your current working directory is the one, where you used
76<tar>. There you invoke the <configure> script by:
77
78# ./configure
79creating cache ./config.cache
80checking for make... make
81checking build system type... x86_64-unknown-linux-gnu
82checking host system type... x86_64-unknown-linux-gnu
83checking target system type... x86_64-unknown-linux-gnu
84checking for gcc... gcc
85checking whether the C compiler (gcc  ) works... yes
86checking whether the C compiler (gcc  ) is a cross-compiler... no
87checking whether we are using GNU C... yes
88...
89updating cache ./config.cache
90creating ./config.status
91creating Makefile
92creating xgap.sh
93
94$\ldots$ indicate omissions.
95This script tries to determine, which kind of operating system and
96libraries you have installed and configures the source
97accordingly. Normally this should produce some output but no error
98messages.
99
100Note that you can add ``CONFIGNAME=default64'' after the <./configure>
101command (with ``default64'' replaced by a configuration name you used
102to compile GAP with) to compile for a different than the standard
103configuration.
104
105The last step of the script produces some makefiles which are
106used to compile the code. You do this by typing
107
108# make
109mkdir -p bin/x86_64-unknown-linux-gnu-gcc
110cp cnf/configure.out bin/x86_64-unknown-linux-gnu-gcc/configure
111( cd bin/x86_64-unknown-linux-gnu-gcc ; CC=gcc ./configure  )
112checking for gcc... gcc
113checking whether the C compiler works... yes
114...
115creating ./config.status
116creating Makefile
117creating config.h
118( cd bin/x86_64-unknown-linux-gnu-gcc ; make CC=gcc )
119make[1]: Entering directory
120`/scratch/neunhoef/4.0/pkg/xgap/bin/x86_64-unknown-linux-gnu-gcc'
121gcc -I. -g -O2   -o xcmds.o -c ../../src.x11/xcmds.c
122...
123make[1]: Leaving directory \                    # line broken for this manual!
124     `/usr/local/lib/gap4/pkg/xgap/bin/i686-unknown-linux2.0.34-gcc'
125
126(a few lines were broken for typesetting purposes in this manual, the
127position is marked by a backslash)
128
129Now all C sources are compiled and a binary executable is built. It is
130stored in a subdirectory of the ``bin'' subdirectory in your ``xgap''
131directory. The name of this location has something to do with your
132installation. It could for example be
133
134bin/x86_64-unknown-linux-gnu-gcc/xgap
135
136if you compile on a 64-bit Linux system using the GNU-C-Compiler.
137
138%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
139Installing the Startup Script
140
141To make the startup of XGAP more convenient there is a startup script
142which contains also some configuration information like the position of
143your GAP installation. It is in the ``xgap'' directory
144and is called ``xgap.sh''. This file is automatically generated
145by the `configure' script and normally you should *not* have to change
146anything in it. Just copy it to some location that people have in their
147``PATH'' environment variable, for example to ``/usr/local/bin''.
148This completes the installation.
149
150If you want to change anything in the installation, you
151can also edit the script until the line
152
153##  STOP EDITING HERE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
154
155You can specify the directory where GAP is installed (``GAP_DIR''), the
156name of the GAP-executable (``GAP_PRG'') and the name of the
157XGAP-executable (``XGAP_PRG''). The first three are exactly the same
158things that you could edit in the main GAP startup script. After that
159you have the possibility to control the behaviour of the XGAP startup
160script. You can specify whether XGAP goes into the background
161(``DAEMON'') and whether it prints out information about its parameters
162(``VERBOSE''). Note that it is possible to combine ``DAEMON=YES'' and
163``VERBOSE=YES'' because the script actually runs in the foreground and
164only the C program is put into the background.
165
166
167%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
168Installing in a different than the standard location
169
170It could happen that you do not want to install XGAP in its
171standard location, perhaps because you do not want to bother your
172system administrator and have no access to the GAP directory. In
173this case you can unpack XGAP in any other location within a
174``pkg'' directory with the <tar> command as described above. Let us
175call this directory ``pkg'' for the moment. You get an ``xgap''
176subdirectory with all the files of XGAP in it. You follow the
177standard procedure with one exception:
178
179In the ``./configure'' command, add the following option:
180
181./configure --with-gaproot=/usr/local/lib/gap4r8
182
183if ``/usr/local/lib/gap4r8'' is the location of the main GAP installation.
184
185You can find out where the main GAP4 installation is by starting
186GAP as usual and looking at the variable `GAPInfo.RootPaths'
187within GAP.
188

README.Windows

1Dear Reader,
2
3generally, running XGAP under the Windows operating system is not
4supported by the authors. However, here is a report by a user who
5claims that this is indeed possible.
6
7We have not altered his description, so you probably have to
8update some URLs to the latest version of GAP and XGAP.
9
10  Max Neunhoeffer
11
12-----------------------------------------------------------------------
13
14Joe Bohanon <jbohanon2@gmail.com> wrote:
15
16Dear Saad and GAP Forum
17
18It took me a while to figure out how to install XGAP to run in XP, but
19yes, it is possible.  If you have access to a mac, I'd also recommend
20CocoaGAP.
21
22I helped one of my colleagues install it on her laptop a few years ago.
23Here's the e-mail I sent with a few updates.  If anyone has corrections
24or clarifications, I'd welcome them.
25
26Here's the long list of steps to get XGAP running.
27
281. Download Cygwin from http://www.cygwin.com/setup.exe.  Run the program
29and use all the default install locations.  Once you get to where you can
30choose a mirror, the one I've used is about half-way down,
31ftp://mirrors.rcn.net.  It's very fast downloads, unlike some of the other
32foreign servers listed.
33
342. Once you hit next it brings up a list of things to install.  Already
35checked should be everything critical to run Cygwin, but you need a few
36extra packages.  First, go down to X11 and select everything.  Then hit
37the "View" button, which will list all packages alphabetically.  Get
38"gcc", "gdb" and "make".  Hit next and it will start downloading, then
39installing.  This will probably take a while.  Once finished, run cygwin
40(it should've created a desktop icon or one in the start menu).  The
41commands are exactly the same as UNIX.  If you don't know UNIX, you really
42only need to know that CD changes directory, CD .., moves you one
43directory up, and ls lists the files and folders in the current directory.
44
453. Now, you need to get GAP downloaded and unpacked.  Get the .zoo file
46from ftp://ftp.gap-system.org/pub/gap/gap4/zoo/gap4r4p6.zoo and the unzoo
47utility from ftp://ftp.gap-system.org/pub/gap/gap4/util/unzoo.c.  Download
48both files into a convenient directory in the c:\cygwin folder and
49navigate to it.  Type "cc -o unzoo -DSYS_IS_UNIX unzoo.c" to get the unzoo
50program compiled.  Then once GAP finishes downloading, type unzoo -x
51gap4r4p6.zoo.  This take a while as well.  I'm pretty sure it will always
52unpack into the location /usr/local/lib/gap4r4.
53
544. Once GAP is finished installing, you can check to see if it will run by
55navigating to the folder above in the Cygwin shell, then going into /bin.
56You can try running ./gapw95.exe or ./gap.bat.  On mine, I have to use the extra option "-l .." with the first command.
57
585. Next, download xgap from
59ftp://ftp.gap-system.org/pub/gap/gap4/zoo/packages/xgap4r21.zoo and unpack
60it in the same way.  Move it to the pkg folder.
61
626. In the Cygwin shell, navigate to /pkg/xgap and type ./configure.  Once
63it finishes type make.  I forget exactly where, but at this point a file
64called "xgap.sh" has been created.  Type ls and if you don't see it, go
65into the "bin" folder and try again.  Anyway, you really want to edit this
66from the Windows interface anyway.  Right-click and choose to open the
67file with wordpad (notepad apparently does not read some of the line break
68characters making it near impossible to edit).  Now scroll down and input
69the following value:
70For GAP_DIR, /usr/local/lib/gap4r4
71For XGAP_PRG, you need to look in the XGAP/bin folder.  The exectuable is
72in a folder that is called something like i686-pc-cygwin-gcc, but it may
73vary.  Then you input something like i686-pc-cygwin-gcc/xgap.exe.
74Save and close the file.
75
767. Go back to the cygwin shell and navigate to /usr/local/bin, then type
77ln -s /usr/local/lib/gap4r4/pkg/xgap/bin/xgap.sh xgap.  This makes it so
78you don't have to navigate through a ton of folders.
79
808. Now you need to get X-windows running.  Supposedly there are 3 commands
81to do so, but I've only gotten one to work.  The two that don't (which you
82should try just in case) are xwin.exe and startxwin.bat.  The second one
83does open a shell, but not the graphical thing that the first does.  I
84have gotten xinit to work every time.
85
869. Type xgap, and it should start running GAP. In X-Windows, the enter
87key isn't bound right. To get commands to execute, you have to hit
88enter, then Ctrl-J (this is something I'd appreciate if someone found a
89work-around for).
90
9110. I also use a program called fvwm. I forget exactly how I installed
92it, but the instructions were straightforward. When you get it installed
93go into X-Windows, and type fvwm (you might have to create a link to
94that program, I don't remember). Then left click in the blank space and
95click "XTERM". Now you have the shell you want. Incidentally, you'll
96also probably want select the option "All Paging Off" from the "Simple
97Config Ops" menu that shows up when you left-click.
98
99There are also examples here:
100http://www-gap.mcs.st-and.ac.uk/Manuals/pkg/xgap/htm/CHAP004.htm
101These are good in case you don't want to draw a full lattice.
102
103Let me know if you can get this working.  If you have trouble I'd be happy
104to try to help.
105
106Joe
107