install megamcommon first

in megam install