GAP Root Paths: Cannot find any files

时间:2017-11-08 22:06:12

标签: gap-system

I am trying to install GAP on my PC, but am not having much luck with the root directory. On my work computer, I can put a file "test.g" in C:\gap4r8\, call Read("test.g") and it will load. However, this does not work on my home PC; I get:

Error, file "test.g" must exist and be readable called from
<function "unknown">( <arguments> )

Specifying the full path (e.g. Read("C:/gap4r8/test.g"), however, works fine.

Calling GAPInfo.RootPaths I get:

[ "/cygdrive/c/Users/Mark/_gap/", "/proc/cygdrive/C/gap4r8/" ]

The first folder (presumably C:\Users\Mark\_gap\) does not exist on my system, but strangely if I put "test.g" into C:\Users\Mark\, it will run just fine from Read("test.g").

Running .g files from my own directory instead of from C:\gap4r8\ is fine, but ideally I would like to move these to some subdirectory (e.g. C:\Users\Mark\GAPscripts\). But since I cannot access the current GAPInfo.UserGapRoot directory (C:\Users\Mark\_gap\) because it doesn't exists, I cannot find gap.ini to edit this.


Things I have tried:

  • Uninstalling and reinstalling GAP (twice).
  • Explicitly calling the root folder by changing a line in gap.bat from

start "GAP" C:\gap4r8\bin\i686-pc-cygwin-gcc-default32\mintty.exe -s 120,40 /proc/cygdrive/C/gap4r8/bin/i686-pc-cygwin-gcc-default32/gap.exe -l /proc/cygdrive/C/gap4r8 %*

to

start "GAP" C:\gap4r8\bin\i686-pc-cygwin-gcc-default32\mintty.exe -s 120,40 /proc/cygdrive/C/gap4r8/bin/i686-pc-cygwin-gcc-default32/gap.exe -l "c:\gap4r8" %*

(this then correctly shows "c:\gap4r8" as one of the root paths, but test.g won't load).

Any ideas?

1 个答案:

答案 0 :(得分:3)

请使用WriteGapIniFile(),看看输出是什么。这将创建文件夹_gap,并在其中创建gap.ini(您可以编辑以自定义间隙)。

希望这有帮助。