[GAP Forum] Problems getting GAP to read my files
Marc Keilberg
keilberg at usc.edu
Sat Jun 20 06:56:54 BST 2020
Try putting the file in the bin subfolder. That's the folder the program
is executed from normally, so will be the base directory. Try
Read("./setup.g") if just "setup.g" doesn't work. Alternatively, once you
know that it starts in bin, you can direct it to the correct folder
accordingly, such as Read("../setup.g") to go up a level.
There's probably a way to change what the starting folder location is in an
ini file somewhere, but I haven't delved into the matter that heavily;
working out of /bin sufficed for me.
Marc
On Fri, Jun 19, 2020 at 5:45 PM Will Chen <oxeimon at gmail.com> wrote:
> Dear all,
>
> I've just installed gap 4.11.0 on a new macbook. Installation seems to gone
> smoothly. However I'm having trouble getting gap to read my files. It can't
> find them.
>
> The gap folder is at: "/Users/wchen/gap-4.11.0".
> Inside that folder, I put a document which I want it to read called
> "setup.g"
>
> However, when I enter:
>
> Read("setup.g");
>
> I get the error:
>
> Error, file "setup.g" must exist and be readable at
> /Users/wchen/gap-4.11.0/lib/files.gi:210 called from
>
> <function "Read string">( <arguments> )
>
> called from read-eval loop at *stdin*:5
>
> you can 'quit;' to quit to outer loop, or
>
> you can 'return;' to continue
>
> I find this confusing because ".../lib/files.gi" isn't even a folder. It's
> a file. I get the exact same error even if I use the full path
>
> "Read("Users/wchen/gap-4.11.0/setup.g");"
>
> or
>
> Read("/Users/wchen/gap-4.11.0/setup.g");
>
> I was also not able to find any documentation about this.
>
> I would very much appreciate some help.
>
> - Will
>
> --
>
> William Chen
> NSF Postdoctoral Fellow, Department of Mathematics
> Columbia University,
> New York, NY, 10025
> oxeimon at gmail.com
> _______________________________________________
> Forum mailing list
> Forum at gap-system.org
>
> https://urldefense.com/v3/__https://mail.gap-system.org/mailman/listinfo/forum__;!!LIr3w8kk_Xxm!_ip1LQV0vxK9iKsrOY9mMZrOAOdUaLbvCn17g5D5tk2GbuL3iklOdcxJxZQQmo8$
>
More information about the Forum
mailing list