Re: sh: 1: /media/mycomputer/Seagate: not found
- Posted by irv Jan 30, 2021
- 1529 views
$ p -c hello.exw sh: 1: /media/mycomputer/Seagate: not found It compiles but does not also run.To be sure we understand:
- In interpreted mode, p "compiles" to memory, and runs it from there, no problem.
- In -c mode, it "compiles", saves to disk, writes a shell script, and then calls bash to run it, one could guess, based on the sh in the error line.
Is the newly-compiled program executable actually saved on the Seagate? If so, can you run it from a terminal? If that works, then....
- The message above makes no mention of a program name, so perhaps bash first tries to cd to /media/mycomputer/Seagate and fails.
- Alternately, perhaps the script line is supposed to contain the path plus the filename, but the filename is being left off by Phix.
- Or, bash doesn't have the priviledges to run programs from an external drive (but don't ask me how that can happen)
To find out, perhaps you could write your own bash script to change to the Seagate and run the compiled program. If that doesn't work either, it's probably permissions.
I would try running sudo p -c hello.exw and see if that makes a difference.