Launching a racket from a terminal in OS X

In an attempt to configure the racket to run from the terminal, I created a symbolic link from / Applications / Racket \ v6.2.1 / bin / racket to / usr / local / bin / racket with the command

ln -s "/Applications/Racket\ v6.2.1/bin/racket" /usr/local/bin/racket

However, when I try to launch a racket from the terminal, I get the error "- bash: racket: command not found". I checked that / usr / local / bin is in my PATH. Where am I mistaken?

+4
source share
1 answer
pu@pumbair: ~  echo "/Applications/Racket\ v6.2.1/bin/racket"
/Applications/Racket\ v6.2.1/bin/racket

As you can see, this leaves a \ in the file name, which is incorrect.

Either quotation marks, or do not go out of space,

pu@pumbair: ~  echo "/Applications/Racket v6.2.1/bin/racket"
/Applications/Racket v6.2.1/bin/racket

or avoid the space and do not quote

pu@pumbair: ~  echo /Applications/Racket\ v6.2.1/bin/racket
/Applications/Racket v6.2.1/bin/racket

so i just

ln -sf /Applications/Racket\ v6.2.1/bin/racket /usr/local/bin/racket
+9
source

Source: https://habr.com/ru/post/1616616/


All Articles