GAP根路径:找不到任何文件(GAP Root Paths: Cannot find any files)

编程入门 行业动态 更新时间:2024-10-26 18:28:18
GAP根路径:找不到任何文件(GAP Root Paths: Cannot find any files)

我正在尝试在我的电脑上安装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 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?

最满意答案

请使用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.

更多推荐

本文发布于:2023-08-04 09:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415090.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   路径   文件   GAP   files

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!