Running raco on Windows command line

I am trying to make a standalone Racket executable on Windows platform. How do I run raco from the Windows command line? I am not familiar with this.

If I am using the documentation and enter the following command in cmd.exe

:

raco exe --gui main.rkt

cmd.exe

tells me:

'raco' is not recognized as an internal or external command, operating program, or batch file.

Substitution in raco.exe

tells me the same thing.

I also tried entering:

'C: \ Program Files \ Racket \ raco.exe' exe --gui. \ Main.rkt

in powershell

, and it gave me an error Unexpected token 'exe' in expression or statement

.

+3


source to share


1 answer


For the first problem: you need to add the path to the executable file to the window '% PATH% (environment variable). For the second problem: check the correct command syntax exe

and / or the "-gui" modifier, they are not being used correctly. For example, try this after solving the first problem:

$ raco.exe exe main.rkt

      



The above will create an executable file main.exe

.

+3


source







All Articles