-->

Snap web framework and OSX Path

2019-06-01 04:24发布

问题:

preface: new to OSX development.

cabal install snap --this works fine.

When I type snap into the terminal nothing happens. How do I export my snap path to my $PATH in OSX?

same thing happens with happstack and yesod.... those are both installed as well

回答1:

Simply do (in the terminal):

export PATH="$HOME/.cabal/bin:$PATH"

To make it permanent, add that line to the hidden .profile file in your home directory and re-login. You can edit ~/.profile using open ~/.profile. This can also be done with this line in the terminal:

echo 'export PATH="$HOME/.cabal/bin:$PATH"' >> ~/.profile