ubuntu编译安装emacs
2013-04-27 02:08
477 查看
原文链接 http://blog.csdn.net/gexueyuan/article/details/6452459
用apt-get安装emacs的话,版本是23.1.1,版本太低,所以在GNU的网站下了一个GNU emacs来安装。
将在GNU的ftp下载的文件包解压到一目录,cd进入该目录,然后 ./configure进行配置生成make文件,但是运行完一阵子后报错如下
[c-sharp] view
plaincopy
You seem to be running X, but no X development libraries
were found. You should install the relevant development files for X
and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
--without-x
to configure.
原来是没有安装GTK的开发库,可以安装最新的gtk-3也可以安装gtk-2.0
[c-sharp] view
plaincopy
sudo apt-get install libgtk2.0-dev
或者选择用系统里的Synaptic管理器进行安装
再运行./configure ,没想到又报错了,如下:
[c-sharp] view
plaincopy
configure: error: The following required libraries were not found:
libXpm libjpeg libgif/libungif libtiff
Maybe some development libraries/packages are missing?
If you don't want to link with them give
--with-xpm=no --with-jpeg=no --with-gif=no --with-tiff=no
as options to configure
貌似是缺几个库:
libXpm libjpeg libgif/libungif libtiff
再进行安装
[c-sharp] view
plaincopy
sudo apt-get install libxpm-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff4-dev
然后再运行./configure ,这下终于可以正常地跑到结束了,看输出的信息,该生成的文件都生成了。于是,运行make ,再运行sudo make install ,经过一段时间后,编译结束,安装成功。
如果遇到编译错误。并且打开emacs后报错为“Cannot open termcap database file”, 少了个叫libncurses5-dev库,于是,运行:
[c-sharp] view plaincopysudo apt-get install libncurses5-dev
因为前面编译过,所以运行make clean
,make distclean
来清理一下,
再重新运行./configure
,make
,sudo make install
,这回就完全安装成功了
用apt-get安装emacs的话,版本是23.1.1,版本太低,所以在GNU的网站下了一个GNU emacs来安装。
将在GNU的ftp下载的文件包解压到一目录,cd进入该目录,然后 ./configure进行配置生成make文件,但是运行完一阵子后报错如下
[c-sharp] view
plaincopy
You seem to be running X, but no X development libraries
were found. You should install the relevant development files for X
and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
--without-x
to configure.
原来是没有安装GTK的开发库,可以安装最新的gtk-3也可以安装gtk-2.0
[c-sharp] view
plaincopy
sudo apt-get install libgtk2.0-dev
或者选择用系统里的Synaptic管理器进行安装
再运行./configure ,没想到又报错了,如下:
[c-sharp] view
plaincopy
configure: error: The following required libraries were not found:
libXpm libjpeg libgif/libungif libtiff
Maybe some development libraries/packages are missing?
If you don't want to link with them give
--with-xpm=no --with-jpeg=no --with-gif=no --with-tiff=no
as options to configure
貌似是缺几个库:
libXpm libjpeg libgif/libungif libtiff
再进行安装
[c-sharp] view
plaincopy
sudo apt-get install libxpm-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff4-dev
然后再运行./configure ,这下终于可以正常地跑到结束了,看输出的信息,该生成的文件都生成了。于是,运行make ,再运行sudo make install ,经过一段时间后,编译结束,安装成功。
如果遇到编译错误。并且打开emacs后报错为“Cannot open termcap database file”, 少了个叫libncurses5-dev库,于是,运行:
[c-sharp] view plaincopysudo apt-get install libncurses5-dev
因为前面编译过,所以运行make clean
,make distclean
来清理一下,
再重新运行./configure
,make
,sudo make install
,这回就完全安装成功了
相关文章推荐
- Emacs23.3在ubuntu10.10下的手动编译与安装
- Emacs23.3在ubuntu10.10下的手动编译与安装
- 在ubuntu下源码编译安装 emacs24
- ubuntu 11.10 编译安装 emacs-23.4
- Ubuntu下android-4.0.3_r1源码下载,阅读工具安装配置,源码编译详解
- ubuntu 下面libxml2的安装与使用--注意 -lxml2 不放置在最后编译会报错!
- UBuntu 编译安装Nginx服务
- 虚拟机ubuntu集群编译安装GROMACS(MPI版本)软件过程
- Ubuntu 编译安装php7时提示“freetype-config not found”
- UBuntu编译安装CppDB
- ubuntu 编译并安装resin3.1.12+nginx1.2.6
- RTEMS 最新基于ubuntu和RSB编译环境的安装配置
- Ubuntu16.04 交叉编译工具链的安装
- Ubuntu16.04安装配置嵌入式交叉编译工具链arm-linux-gcc
- ubuntu 10.04编译安装内核
- ubuntu server 14.04 编译安装xen4.4.2配置vtpm(一)——xen4.4.2源码编译安装
- Ubuntu14.04 caffe编译安装
- Ubuntu下DirectFB的编译安装,样例程序编译及运行体验
- Android介绍以及源码编译---Ubuntu安装