I believe your library installation is not adequate or in other words is of a version that doesn't contain pieces that your existing version of MegaHAL expects it to have.
My suggestion would be for you to install newer version of the underlying libraries that MegaHAL depends on. Unfortunately, I haven't played with the module myself (in fact, this is the first time I heard about it :) and therefore can't render a precise solution. Yet, I did encounter similar 'error messages' with other modules that I had used before.