2

I've installed ghcjs by the command

cabal install ./ghcjs ./ghcjs-prim

And I get something like

Updating documentation MyDir/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html

for my last line.

But when I tried this command

ghcjs-boot --dev

I got -bash: ghcjs-boot: command not found What's the problem?

Yiyue Wang
  • 152
  • 1
  • 12
  • 1
    Do you have ~/.cabal/bin in your PATH? – Michael Snoyman Apr 17 '15 at 05:30
  • @MichaelSnoyman Mmm... Sorry but how to check whether it's in my path? – Yiyue Wang Apr 17 '15 at 05:32
  • 1
    @YiyueWang `echo $PATH` in your terminal (it will print the content of your `PATH` variable - look if you can find the path to your `home-directory/.cabal/bin` in there) – Random Dev Apr 17 '15 at 05:46
  • @CarstenKönig Thank you very much! I've solved the problem now :) And do you know how I can close this question? – Yiyue Wang Apr 17 '15 at 05:53
  • as you found the answer yourself you might write your own answer here - then you have to wait a bit (no clue how long sorry) and then you can mark your own answer - or you can ask @MichaelSnoyman to write a short answer you can then accept instead if you want to give him some cudos – Random Dev Apr 17 '15 at 05:56
  • if you want I can flag it to close too but then 4 others have to do as well – Random Dev Apr 17 '15 at 05:57
  • @MichaelSnoyman Do you mind changing your comment to an answer so that I can mark it :) – Yiyue Wang Apr 17 '15 at 15:20

1 Answers1

2

Rewriting my comment as an answer by request:

Do you have ~/.cabal/bin in your PATH?

Michael Snoyman
  • 31,100
  • 3
  • 48
  • 77