Install Emacs in Fedora

Source: Internet
Author: User
I don't need to talk about the power of Emacs. Well, who knows it? I always think that software that can be called Nb can make people who use it become Nb, undoubtedly, emacs can be called the classic Nb software. However, it took a long time to install it. The following describes some problems and solutions.

System: fedora6
Emacs version: 21.3

First download the stable version of Emacs.
Next, extract and install the package. During installation, switch to the root user.
$ CP emacs-21.3.tar.gz/OPT
$ CD/OPT
$ Tar-xvzf emacs-21.3.tar.gz
Decompress the directory that generates a emacs-21.3
$ Emacs-21.3 CD
Configuration
$./Configure
Compile
$ Make
This is the case!
Failed to compile, and a segment error (segfault) occurred ).

The problem is that the installation of emace conflicts with the security patch Exec-shield of Linux operating system 2.6 kernel. Exec-shield is a security patch for memory stack control, it can prevent memory leakage attacks and other problems. It is enabled by default. Now, you only need to temporarily disable it during installation.
The method for disabling is as follows:
$ Echo "0">/proc/sys/kernel/exec-shield
$ Echo "0">/proc/sys/kernel/randomize_va_space
(PS: After the installation is complete, change the "0" of the above two commands to "1" when you re-open Exec-field)

At this time, you can re-configure and compile.
First clear the original installation:
$ Make clean
$ Make distclean
Continue Installation
$./Configure
$ Make
$ Make install
Success!

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.