Compile and install Emacs23 in Ubuntu

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.