[Haskell-cafe] cabal-install sandbox with happy and alex
Badi' Abdul-Wahid
abdulwahidc at gmail.com
Thu Oct 31 15:59:16 UTC 2013
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 copied the steps demonstrating the problem on lpaste:
http://lpaste.net/95027
Summary to reproduce: cabal sandbox init; cabal install happy alex
Below is the script for my workaround.
[0 :)] badi at olorin /tmp/sb
~> cat sandbox-install.sh
#!/usr/bin/env bash
packages="$@"
cabal sandbox init
cabal install --only-dependencies $packages
for p in $packages; do
cabal unpack $p
pushd $p-*
cabal sandbox --sandbox ../.cabal-sandbox init
cabal configure
cabal build
runhaskell Setup.lhs install
popd
done
--
Badi' Abdul-Wahid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131031/d1691a21/attachment.html>
More information about the Haskell-Cafe
mailing list