This is my first time using Ubuntu and I dont know how I should install a program on it. I tried using cd the directory where it is and then ./configure it but it is not working!
Consider using Damien Cassou's PPA:
To add this PPA:
Or, for emacs24 (i.e. 24.3, stable):
Hence, use this to add the PPA:
Ref: Emacs guide
You'll probably be better off using the version of emacs already built, tested, and packaged by Ubuntu rather than building it on your own, unless you need specific features that are only available in 24.3.
In a terminal:
Building it from source is not bad because you can choose the version that you need and Emacs will work even faster, the trouble is finding and installing dependencies.
Commands to install Emacs 24.5 w/ dependencies:
I'm using Ubuntu 14 LTS - x64 and following command works for me ;
For Daily Emacs build installation ;
Reference : Emacs Guide