Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

path for installation binaries for cabal

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" or set | grep "cabal" returns nothing. Any ideas on how to (automatically) add the correct directory to the PATH environment for future installations?

like image 502
user2692274 Avatar asked Aug 17 '13 15:08

user2692274


Video Answer


1 Answers

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.

http://snapframework.com/faq#why-cant-i-install-snap

like image 175
mightybyte Avatar answered Nov 15 '22 07:11

mightybyte