-
-
Notifications
You must be signed in to change notification settings - Fork 686
Configure Command Line for Racket
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
$pathenvironment variable properly. -
Configure
/etc/paths.d/racketfrom 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/racketto 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
PATHenvironment 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
aptor 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.
