MADlib installation is documented here:
The instructions I follow to install MADlib are listed below:
If I am fast and diligent I can work my way through those instructions in about 25 minutes.
If I am in a hurry, I just download a VirtualBox instance which has MADlib already installed.
The password of the above instance is: 'a'
Be patient, maybe do this at home before class; this is a large file: 4GB.