Snap web framework and OSX Path

2019-06-01 04:11发布

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条回答
SAY GOODBYE
2楼-- · 2019-06-01 04:59

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
查看更多
登录 后发表回答