CentOS安装emacs(包含错误处理)

安装前准备:

下载安装依赖软件

yum -y groupinstall "Development Tools"
yum -y install gtk+-devel gtk2-devel
yum -y install libXpm-devel
yum -y install libpng-devel
yum -y install giflib-devel
yum -y install libtiff-devel libjpeg-devel
yum -y install ncurses-devel
yum -y install gpm-devel dbus-devel dbus-glib-devel dbus-python
yum -y install GConf2-devel pkgconfig
yum -y install libXft-devel


安装emacs:

1. 下载emacs源码包

emacs-24.4


2.解压缩

tar zxvf emacs-24.4.tar.gz


3.配置及检查

./configure –prefix=/usr/local –with-x-toolkit=gtk

若出现下列错误进入4,否则跳转到5:

configure: error: The required function `tputs' was not found in any library.
The following libraries were tried (in order):
  libtinfo, libncurses, libterminfo, libtermcap, libcurses
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.


4.安装ncurses-devel

sudo yum install -y ncurses-devel


5.编译

make


6.安装

make install


进入emacs:

在屏幕直接输入emacs




你可能感兴趣的:(Linux)