How can I install emacs22.0.50.1 on ubuntu9.10?

Source: Internet
Author: User
How can I install emacs22.0.50.1 on ubuntu9.10? -- Linux general technology-Linux technology and application information. For details, refer to the following section. I did this.
Certificate ------------------------------------------------------------------------------------------------------------------------------------

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!

Certificate ---------------------------------------------------------------------------------------------------------------------------------------------------
But I can't find the two files. Is the directory structure of different linux distributions different? How can I find and operate exec-shield and randomize_va_space in ubuntu?

The following system prompts are provided:
**************************************** **********
Warning: Your system has a gap between BSS and
Heap (14197980 byte). This usually means that exec-shield
Or something similar is in effect. The dump may
Fail because of this. See the section about
Exec-shield in etc/PROBLEMS for more information.
**************************************** **********
Segmentation fault
Make [1]: *** [emacs] Error 139
Make [1]: Leaving directory '/home/book/emacs/src'
Make: *** [src] Error 2

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.