I am following the instructions for installing the snap framework for Haskell:
http://janrain.com/blog/tutorial-building-a-sample-application-with-haskell-snap-postgresql-and-the-postgresql-simple-snaplet/
When executing
snap init
I obtain -bash: snap: command not found
(on Mac OSX), and I did open a new terminal window after installing snap. The binary is installed in
/Users/<USER NAME>/Library/Haskell/ghc-7.6.3/lib/snap-0.12.1/bin
and snap also works fine when snap init
is prefaced with this path. However, this ticket (for the windows cabal installer)
http://trac.haskell.org/haskell-platform/ticket/175
suggests that this should not happen. When cabal installs a new package, it should add the correct directories to the path environment. Running set | grep "snap"
set | grep "snap"
or set | grep "cabal"
set | grep "cabal"
returns nothing. Any ideas on how to (automatically) add the correct directory to the PATH environment for future installations?
I realize this was answered in the comments, but it would be nice to mark this question as answered. This question is answered in the FAQ on the Snap website.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.