我正在尝试在我的电脑上安装GAP,但根目录并没有太多运气。 在我的工作计算机上,我可以将文件“test.g”放在C:\gap4r8\ ,调用Read("test.g")并加载它。 但是,这在我的家用电脑上不起作用; 我明白了:
Error, file "test.g" must exist and be readable called from <function "unknown">( <arguments> )但是,指定完整路径(例如Read("C:/gap4r8/test.g" ))可以正常工作。
调用GAPInfo.RootPaths我得到:
[ "/cygdrive/c/Users/Mark/_gap/", "/proc/cygdrive/C/gap4r8/" ]第一个文件夹(可能是C:\Users\Mark\_gap\ )在我的系统上不存在,但奇怪的是如果我将“test.g”放入C:\Users\Mark\ ,它将从Read("test.g") 。
从我自己的目录而不是从C:\gap4r8\运行.g文件很好,但理想情况下我想将它们移动到某个子目录(例如C:\Users\Mark\GAPscripts\ )。 但由于我无法访问当前的GAPInfo.UserGapRoot目录( C:\Users\Mark\_gap\ ),因为它不存在,我找不到gap.ini来编辑它。
我尝试过的事情:
卸载并重新安装GAP(两次)。 通过更改gap.bat的一行来显式调用根文件夹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 %*
至
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" %*
(然后正确显示"c:\gap4r8"作为根路径之一,但test.g将不会加载)。
有任何想法吗?
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 fromstart "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?
最满意答案
请使用WriteGapIniFile()并查看输出是什么。 这将创建文件夹_gap并在其中创建一个gap.ini (您可以编辑以自定义间隙)。
希望这可以帮助。
Please, use WriteGapIniFile() and see what is the ouput. This will create the folder _gap and inside it a gap.ini (which you can edit to customize gap).
Hope this helps.
更多推荐
发布评论