linux安装emacs

emacs24.4为例

  1. 更新软件依赖库,防止找不到makefile
yum update
yum install gcc* glib* gtk* ncurses* libXpm* giflib* libjpeg* libtiff* libpng* -y
  1. 下载emacs
wget http://mirrors.ustc.edu.cn/gnu/emacs/emacs-24.4.tar.gz
  1. 解压文件
tar -zxvf emacs-24.4.tar.gz
  1. 切换到解压目录下生成makefile(cd emacs-24.4)
./configure
  1. 编译并安装
make && make install
  1. 配置环境变量,在 /etc/profile最后加上如下代码
PATH=$PATH:/usr/local/bin 
export PATH
  1. 使配置立即生效
source /etc/profile
  1. 验证是否安装成功
emacs --version

GNU Emacs 24.4.1
Copyright © 2014 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

你可能感兴趣的:(开发工具)