haskellcabalghcibnfc

BNFC install error


I am trying to install BNFC on my Mac (Running OS Sierra). I have already installed the Haskell Platform for Mac (v.8.0.1) I have installed cabal then used that to install alex (v 3.2.1) and happy (v 1.19.5). I then ran the cabal install bnfc and that installs properly. The problem is as soon as I type bnfc or try using any bnfc commands I get:

-bash: bnfc: command not found

Is there something I am missing here? When I try installing BNFC again I get:

All the requested packages are already installed: BNFC-2.8.1

Any ideas? Thanks!


Solution

  • Ended up copying across the files (alex, bnfc and happy) from

    /Users/username/Library/Haskell/bin

    to

    /usr/local/bin/

    and all working now