If you ever felt the urge to compile megahal in OSX, here is what you have to do:

  1. Get the MegaHAL source (—>over here on sourceforge)
  2. unzip it
  3. replace every include of malloc.h with the full path (easy: perl -pi -w -e ‘s/\#include /\#include <\/usr\/include\/malloc\/malloc.h>/g;' megahal-9.1.1/*.c )
  4. cd megahal-9.1.1
  5. rm -rf Megahal/
  6. make megahal
And you're done :)

Comments