Linux – How to install Emacs (Text editor) on ubuntu Linux

emacslinux

I have tried to install emacs from source that I downloaded from the internet.

For that first I have chosen a path like:

/home/anand/emac/emac-23.1 (where emac-23.1 is the extracted file)

Then I make it run like follows:

root@anand:/home/anand/softwares/emac/emacs-23.1# ./configure

But it displays:

checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

I also tried another way:

sudo apt-get install emacs

But it displays:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package emacs

All the above was done under an Admin Login, but I couldn't get it to work.

Best Answer

$ sudo apt-get install build-essential
$ sudo apt-get build-dep emacs

Will help you download all the dependencies

My ubuntu has emacs22, if that will work for you

$ sudo apt-get install emacs <==note you missed the s on the end when you tried before

Related Question