下载emacs-23.1.tar.gz

      http://ftp.gnu.org/pub/gnu/emacs/emacs-23.1.tar.gz

     cd /opt
     //cp emacs-23.1.tar.gz /opt
     tar -xvzf emacs-23.1.tar.gz 
     cd emacs-23.1
    ./configure
     make
     make install

 

      -z 与-x联用时用gzip来压缩/解压缩文件,加上该选项后可以将档案文件进行压缩,但还原时       也一定要使用该选项进行解压缩 
    -x 从档案文件中释放文件
    -v 详细报告tar处理的文件信息.如无此选项,tar不报告文件信息
    -f 使用档案文件或设备,这个选项通常是必选的

 

    安装后验证是否成功:

    [root@localhost Sunrier]#emacs

 

   退出Emacs命令 :(Ctrl+x) + (Ctrl+c)

   如果没有GTK+,就会报错

  wKiom1hch8uRTz2OAAHdRPH5bW4359.png-wh_50