haskellpathghccabalghcjs

how do I add ghcjs to path?


In order to install ghcjs I upgraded to Ubuntu 16.04

No problem with requirements. alex and happy where automitcally installed. Then:

$ git clone https://github.com/ghcjs/ghcjs.git
$ cabal install ./ghcjs

However, I cannot call ghcjs from terminal. Perhaps it's not in PATH?

$ ghcjs-boot --dev
ghcjs: command not found

How do I add to path?


Solution

  • cabal installs binaries in $HOME/.cabal/bin on Linux like systems. To add that to your path you can put

    PATH="$PATH:$HOME/.cabal/bin"
    

    in your shells configuration file (which would be ~/.bashrc if you're using Bash).