Usage
Starting with MEGA7-7.0.25 MEGA requires X11, even for command line execution. To execute it in headless environment on HiPerGator use Xvfb by placing the following code, which fakes a display, into your job script above the mega call:
DISPLAY_ID=$RANDOM
export DISPLAY=:${DISPLAY_ID}
Xvfb :${DISPLAY_ID} -screen 0 1024x768x16 &