Centos7源码安装Emacs24.5

来源:互联网 发布:动能宝石永恒矩阵 编辑:程序博客网 时间:2024/06/08 19:26

1.emacs下载地址:http://ftp.gnu.org/gnu/emacs/
(选择emacs-24.5.tar.gz 2015-04-10 12:59 56M 下载)

2.解压emacs-24.5.tar.gz

3.进入解压的目录(我的是/root/emacs-mode/emacs-24.5/)

4../configure --prefix=/usr/local/emacs-24.3

提示:tputs was not found in any library
运行yum install ncurses-devel
然后./configure

提示:需要添加前缀,执行下面语句
./configure –prefix=/usr/local/emacs-24.3 –with-xpm –with-jpeg=no –with-tiff=no –with-gif=no`

5.make

6.make install

7.增加名字连接到/usr/local/bin中
因为我是将emacs安装到/usr/local/emacs-24.5下的,所以最后还需要在系统可以访问的路径里添加程序的名字连接:
cd /usr/local/bin
sudo ln -s /usr/local/emacs-24.5/bin/emacs

8.emacs看见界面

参考
http://my.oschina.net/u/1186777/blog/147253
http://stackoverflow.com/questions/19510522/in-centos-6-4-when-configure-emacs

0 0