Compiling MegaHAL on OSX
If you ever felt the urge to compile megahal in OSX, here is what you have to do:
- Get the MegaHAL source (—>over here on sourceforge)
- unzip it
- 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 ) - cd megahal-9.1.1
- rm -rf Megahal/
- make megahal