GAP のインストール

目次へ

GAP - Groups, Algorithms, Programming -
a System for Computational Discrete Algebra

http://www.gap-system.org/gap.html

Ubuntu 14.04 への GAP のインストール

GAP 4.7 INSTALLATION INSTRUCTIONS

http://www.gap-system.org/Releases/index.html

ダウンロードして展開して作られた次のdirectoryで実行してインストールに成功した。

$ cd gap4r7
$ ./configure
$ make
ubuntu:~$ gap
 ┌───────┐   GAP, Version 4.7.7 of 13-Feb-2015 (free software, GPL)
 │  GAP  │   http://www.gap-system.org
 └───────┘   Architecture: x86_64-unknown-linux-gnu-gcc-default64
 Libs used:  gmp
 Loading the library and packages ...
 Components: trans 1.0, prim 2.1, small* 1.0, id* 1.0
 Packages:   AClib 1.2, Alnuth 3.0.0, AtlasRep 1.5.0, AutPGrp 1.6, 
             CRISP 1.3.8, Cryst 4.1.12, CrystCat 1.1.6, CTblLib 1.2.2, 
             FactInt 1.5.3, FGA 1.2.0, GAPDoc 1.5.1, IRREDSOL 1.2.4, 
             LAGUNA 3.7.0, Polenta 1.3.2, Polycyclic 2.11, RadiRoot 2.7, 
             ResClasses 3.4.0, Sophus 1.23, SpinSym 1.5, TomLib 1.2.5
 Try '?help' for help. See also  '?copyright' and  '?authors'
gap>  quit;
ubuntu:~$

どの directory からでも起動できるように設定する。(訂正 July 2015)

$ sudo ln -s /home/satouy/gap/gap4r7/bin/gap-default64.sh /usr/local/bin/gap

Mac OS X Maverick への GAP のインストール

Macの場合、同様にインストールして実行するとエラーが発生する。検索するが解決法がわからない。

$ gap
 ┌───────┐   GAP, Version 4.7.7 of 13-Feb-2015 (free software, GPL)
 │  GAP  │   http://www.gap-system.org
 └───────┘   Architecture: x86_64-apple-darwin13.4.0-gcc-default64
 Libs used:  gmp
 Loading the library and packages ...
Error,  must not contain '\' or ':' called from
func( C[i] ) called from
List( GAPInfo.DirectoriesSystemPrograms, Directory ) called from
<function "DirectoriesSystemPrograms">(  )
 called from read-eval loop at line
10 of /Users/satouy/GAP/gap4r7/pkg/Alnuth-3.0.0/defs.g
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk> quit;
$

Mac OS X Maverick への GAP のインストールに成功( 2 May 2015 )

この問題の解決法が分からないので support@gap-system.org に問い合わせたところ Alexander Konovalov 氏より丁寧な返事が送られてきた。原因は Sublime Text のパスの設定だった。教えていただいた次のページを参考にして設定を修正したところ無事成功した。

http://apple.stackexchange.com/questions/94679/how-do-cope-with-a-space-when-setting-the-path

To resolve it I made a simlink in

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/sublime/bin/subl 

I added it to my path by using vi on ~/.bash_profile and delete a previous setting on Subline Text.

# Sublime text This makes a problem for GAP. 
# export PATH="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin":$PATH 
# alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl' 
# 
# Sublime text 2 May-2015 # 
export PATH="/usr/local/sublime/bin/":$PATH

After reboot GAP works successfuly.

$ gap
 ┌───────┐   GAP, Version 4.7.7 of 13-Feb-2015 (free software, GPL)
 │  GAP  │   http://www.gap-system.org
 └───────┘   Architecture: x86_64-apple-darwin13.4.0-gcc-default64
 Libs used:  gmp
 Loading the library and packages ...
 Components: trans 1.0, prim 2.1, small* 1.0, id* 1.0
 Packages:   AClib 1.2, Alnuth 3.0.0, AtlasRep 1.5.0, AutPGrp 1.6, CRISP 1.3.8,
             Cryst 4.1.12, CrystCat 1.1.6, CTblLib 1.2.2, FactInt 1.5.3, FGA 1.2.0,
             GAPDoc 1.5.1, IRREDSOL 1.2.4, LAGUNA 3.7.0, Polenta 1.3.2, Polycyclic 2.11,
             RadiRoot 2.7, ResClasses 3.4.0, Sophus 1.23, SpinSym 1.5, TomLib 1.2.5
 Try '?help' for help. See also  '?copyright' and  '?authors'
gap>

備忘録: Sublime Text: OS X Command Line

Sublime Text: OS X Command Line

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
export EDITOR='subl -w'

目次へ(15パズルをMathematicaで解く)

目次へ(GAP)