3
votes

I am trying to make a stand-alone Racket executable on the Windows platform. How do I go about running raco from the windows command line? I'm not familiar with it.

If I use the documentation and enter the following command into cmd.exe:

raco exe --gui main.rkt

cmd.exe tells me:

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

Substituting in raco.exe tells me the same thing.

I also tried typing:

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

into powershell and it gave me an Unexpected token 'exe' in expression or statement error.

1
Oscar answered the question as you asked it, re using the command line. Just to mention something you probably already know (but someone else might not): Another way to make an executable is in DrRacket. From the Racket menu choose Create Executable. - Greg Hendershott

1 Answers

3
votes

For the first problem: you need to add to windows' %PATH% (an environment variable) the path to the executable. For the second problem: check the correct syntax for the exe command, and/or the "--gui" modifier, they're being misused. For instance, try this after solving the first problem:

$ raco.exe exe main.rkt

The above will create an executable main.exe file.