Configure Command Line for Racket - racket/racket GitHub Wiki
Configure Command Line for Racket by setting your PATH
environment variable so you can use racket
, raco
and other Racket command line functions.
You can set PATH
a number of ways depending on your platform.
On macOS:
-
Open DrRacket, click on Help then Configure Command Line for Racket…: This will configure your
$path
environment variable properly. -
Configure
/etc/paths.d/racket
from the command line:-
If you have a single installation of Racket (the default), just type:
sudo sh -c 'echo "/Applications/Racket v8.0/bin" > /etc/paths.d/racket'
-
If you have multiple installations of Racket (unusual), type instead:
sudo sh -c 'echo "/Applications/Racket v8.0/bin" >> /etc/paths.d/racket'
but you may wish to edit the file/etc/paths.d/racket
to remove obsolete paths.
-
Note: If there is a signing problem, sudo xattr -r -d com.apple.quarantine /Applications/Racket v8.0/
might help fixing the problem.
Note: If you have installed Racket via homebrew, you shouldn't have anything to do. Homebrew should already configure Racket for you.
On Windows 10:
-
Open DrRacket, click on Help then Configure Command Line for Racket…: This will configure your
PATH
environment variable properly. -
Racket 8.0 or earlier: Add the location of the racket folder to your
%Path%
environment variable. The location is probablyC:\Program Files\Racket\
. If you don't know how to do that, follow these steps.
On Linux:
-
Ubuntu/Debian: If you chose a Unix-style distribution, or you have installed Racket via
apt
or the Software Center, you shouldn't have anything to do. -
Otherwise, on Ubuntu, follow these instructions.
-
For other Linux users, you probably know what to do.