Snap web framework and OSX Path

邮差的信 提交于 2019-12-23 02:02:38

问题


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


来源:https://stackoverflow.com/questions/11748148/snap-web-framework-and-osx-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!