[Haskell-cafe] cabal-install sandbox with happy and alex

Erik de Castro Lopo mle+hs at mega-nerd.com
Thu Oct 31 17:18:20 UTC 2013


Badi' Abdul-Wahid wrote:

> Hi
> 
> I've run into difficulty building happy and alex using the sandbox feature
> of cabal-install 1.18.0.2.
> Installation of dependencies succeeds but both happy and alex fail with:
> 
>     setup: The program happy is required but it could not be found
> 
> My workaround is to use the --only-dependencies flag, install the
> dependencies, and manually install the packages.
> 
> This is on Mac OS X 10.8.4 with GHC 7.6.3.

I've run into this problem myself on Linux. My solution is to install
ghc, happy, alex, hlint and cabal-install from debian packages and
everything else using cabal install (either with or without using
sandboxes).

I know this isn't a solution for people on OSX, but thought I'd add
it here for people on Linux.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Haskell-Cafe mailing list