Street walking cheetah with a heart full of napalm ([info]tritium) wrote,
@ 2007-10-23 18:35:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
(warning: boring computer post)
While attempting to build happy, the Haskell parser generator, for MacOS:


tritium:~/tmp/happy-1.17 dfisher$ ./Setup.lhs build
Preprocessing executables for happy-1.17...
Setup.lhs: The program happy is required but it could not be found


That's right, building happy requires happy. Now, bootstrapping compilers is a fascinating technique, but bootstrapping a parser generator seems a bit extreme. Plus, damned if I can find a precompiled binary to use; maybe I should ssh to a Unix machine and cross-compile? Damn.

Also, when I tried to find a solution for this, I come across this how-to from [info]catamorphism. I guess this is a known problem with GHC in general?


(Post a new comment)


[info]catamorphism
2007-10-23 10:53 pm UTC (link)
Also, when I tried to find a solution for this, I come across this how-to from catamorphism. I guess this is a known problem with GHC in general?

Haha, I'd almost forgotten I wrote that. It's less of a "how-to" than a "vulgarity-laced missive" anyway. Um, yeah, I really did quit using Mac OS X after writing that, because it was just too frustrating. The developers use various flavors of Linux (or Windows, but somehow that doesn't seem to result in GHC being any easier to build on Windows), so things work better on Linux.

Does this help? I can't tell if it's a source or a binary package. There's also a binary package for all of GHC linked from here, but I'm not sure whether that includes happy/alex or not. If all else fails, ask on the #haskell IRC channel; probably you can find someone with a Mac who can send you a binary.

(Reply to this)(Thread)


[info]tritium
2007-10-24 01:43 am UTC (link)
Actually, it doesn't include happy/alex, already tried that. And I really don't want to install a new ports system to my machine (especially since it turns out none is really necessary). Hmm, looks like I have to talk to the nerds!

(Reply to this)(Parent)(Thread)


[info]catamorphism
2007-10-24 07:43 am UTC (link)
Onoez, talking to the nerds! How will you cope? But yeah, post on glasgow-haskell-users or go on IRC, depending whether you want a quick reply or a super-quick reply.

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…