<div dir="ltr">Hi Brandon, thanks for the suggestion. Unfortunately, it didn't do the trick:<div><br></div><div><div>[0 :)] badi@olorin /private/tmp/sb</div><div>~> export PATH=/tmp/sb/.cabal-sandbox/bin:$PATH</div>

</div><div><br></div><div><div>[0 :)] badi@olorin /tmp/sb</div><div>~> cabal install happy alex</div><div>Resolving dependencies...</div><div>Notice: installing into a sandbox located at /private/tmp/sb/.cabal-sandbox</div>

<div>Configuring alex-3.1.0...</div><div>Configuring happy-1.19.0...</div><div>Building alex-3.1.0...</div><div>Building happy-1.19.0...</div><div>Failed to install happy-1.19.0</div><div>Last 10 lines of the build log ( /private/tmp/sb/.cabal-sandbox/logs/happy-1.19.0.log ):</div>

<div>Building happy-1.19.0...</div><div>Preprocessing executable 'happy' for happy-1.19.0...</div><div>setup: The program happy is required but it could not be found</div><div>Failed to install alex-3.1.0</div><div>

Last 10 lines of the build log ( /private/tmp/sb/.cabal-sandbox/logs/alex-3.1.0.log ):</div><div>Building alex-3.1.0...</div><div>Preprocessing executable 'alex' for alex-3.1.0...</div><div>setup: The program happy is required but it could not be found</div>

<div>cabal: Error: some packages failed to install:</div><div>alex-3.1.0 failed during the building phase. The exception was:</div><div>ExitFailure 1</div><div>happy-1.19.0 failed during the building phase. The exception was:</div>

<div>ExitFailure 1</div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 31, 2013 at 7:34 PM, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On Thu, Oct 31, 2013 at 1:18 PM, Erik de Castro Lopo <span dir="ltr"><<a href="mailto:mle+hs@mega-nerd.com" target="_blank">mle+hs@mega-nerd.com</a>></span> wrote:<br>

<div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div>Badi' Abdul-Wahid wrote:<br>
<br>> I've run into difficulty building happy and alex using the sandbox feature<br>
> of cabal-install 1.18.0.2.<br>
> Installation of dependencies succeeds but both happy and alex fail with:<br>
><br>
>     setup: The program happy is required but it could not be found<br>
><br>
> My workaround is to use the --only-dependencies flag, install the<br>
> dependencies, and manually install the packages.<br><br>
</div></div><div class="im">I've run into this problem myself on Linux. My solution is to install<br>
ghc, happy, alex, hlint and cabal-install from debian packages and<br>
everything else using cabal install (either with or without using<br>
sandboxes).<br></div></blockquote><div><br></div><div>At a guess, both of you need to find the bin directory created *in the sandbox* and add it to $PATH while working in the sandbox. Perhaps there is some better way for cabal sandboxes to handle this automatically.</div>

<span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>


<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><br>Badi' Abdul-Wahid
</div>