Emacs23 compilation and installation in Ubuntu: 1. preparations (1) install CVS, SSHsudoapt-getinstallsshcvs (2) install texinfo (to compile the man package) sudoapt-getinstalltexinfo (3) install the support packages required for compilation, depending on the Environment sudoapt-getbuild-depemacs21sudoapt-getinstalllib
Emacs23 compilation and installation in Ubuntu:
1. Preparations
(1) install CVS and SSH
Sudo apt-get install ssh cvs
(2) install texinfo (to compile the man package)
Sudo apt-get install texinfo
(3) install the required support packages for compilation, depending on the environment
Sudo apt-get build-dep emacs21
Sudo apt-get install libgtk2.0-dev
Sudo apt-get install xserver-xorg-dev
Sudo apt-get install xorg-dev
Sudo apt-get install libncurses5 libncurses5-dev
Sudo apt-get install libidl. dev
2. cvs latest emacs source code
Cvs-z3-d: pserver: anonymous@cvs.savannah.gnu.org:/sources/emacs co-r emacs-unicode-2 emacs
3. Compile and install
Create directory:/usr/local/emacs23. Install emacs here.
Sudo mkdir/usr/local/emacs23
Note: It is best to specify an installation directory. Otherwise, the compiled binary files will be divided into different places in bulk.
Cd ~ /Emacs
./Configure -- prefix =/usr/local/emacs23 -- enable-font-backend -- with-xft -- with-freetype -- with-x-toolkit = gtk
Parameter description:
-Prefix =/usr/local/emacs23 specifies the emacs installation directory. The default value is/usr/local.
-Enable-font-backend: enable emacs to support the font.
-With-freetype supports freetype Fonts
-With-x-toolkit = gtk: Specify the environment as gtk.
If no error exists, continue:
Make bootstrap
Make info
After compilation, run src/emacs-q to install it:
Sudo make install
Clear:
Make clean
4. Add your installation path
After installation, you need to make a link in/usr/local/bin (because/usr/local/emacs23/bin is not in the PATH variable)
Cd/usr/local/bin
Ln-s/usr/local/emacs23/bin /*./
After the link is established, enter emacs in the terminal to start emacs.