本文介绍了Snap Web框架和OSX路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
前言:OSX开发的新手.
preface: new to OSX development.
cabal安装快照-可以正常工作.
cabal install snap --this works fine.
当我在终端中输入snap时,什么也没有发生.如何将快照路径导出到OSX中的$ PATH?
When I type snap into the terminal nothing happens. How do I export my snap path to my $PATH in OSX?
happstack和yesod发生了相同的事情.它们也都安装了
same thing happens with happstack and yesod.... those are both installed as well
推荐答案
(在终端中)简单地做:
Simply do (in the terminal):
export PATH="$HOME/.cabal/bin:$PATH"
要使其永久存在,请将该行添加到主目录中隐藏的.profile
文件中,然后重新登录.您可以使用open ~/.profile
编辑~/.profile
.也可以使用终端中的以下行来完成此操作:
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
这篇关于Snap Web框架和OSX路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!