简体   繁体   中英

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?

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).

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM