Just run:
sh ./ubuntu14.04-emacs-24.4-install.sh
This will install ncurses which is dependency of emacs24.4. It may requires another dependencies depending on your environment. Note that configure options in emacs installation are for disabling GUI features.