当前位置: 亚洲城ca88 > 亚洲城 > 正文

编译安装Wine,Ubuntu安装Emacs出现到依赖问题及解

时间:2019-06-22 12:06来源:亚洲城
Ubuntu软件中心emacs的版本是23,自己在网上下了最新版24.3,通过编译安装到时候遇到来很多依赖问题,下面将这些问题整理了出来: Ubuntu 13.10编译安装Wine 1.7 1.执行./configure命令出现如下

Ubuntu软件中心emacs的版本是23,自己在网上下了最新版24.3,通过编译安装到时候遇到来很多依赖问题,下面将这些问题整理了出来:

Ubuntu 13.10 编译安装Wine 1.7

1.执行./configure命令出现如下错误:
 
configure: error: 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.
 
根据提示是缺少X windows系统的开发库。如果不想在图形界面下使用Emacs,可以使用--without-x选项进行编译(废话),那么只有把GTK 安装上才能通过configure了。
 
sudo apt-get install libgtk2.0-dev

先安装依赖的库:

2.在configure中增加编译选项,./configure --with-x-toolkit=gtk3,这次配置未提示上述错误,但又出现下面错误:
 
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
 
几个图像开发库也要装上
 
sudo apt-get install libxpm-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff4-dev

sudo apt-get install flex bison qt4-qmake
apt-get install libfreetype6-dev
apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev
apt-get install libxrender-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
apt-get install prelink
apt-get install libasound2-dev

3.利用apt-get install 将上述缺少的包及其开发包安装后,继续./configure,还有错误:
 
configure: error: The required function `tputs' was not found in any library.
 These libraries were tried: 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.
 
提示缺少必须的函数'tputs',有可能在libncurses-dev中,那么尝试安装这个包,再configure
 
4.因为前面编译过,所以运行make clean && make distclean来清理一下  

下载最新的源代码:

5.再通过./configure,终端有如下提示:
 
configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating lib/Makefile
 config.status: creating lib-src/Makefile
 config.status: creating oldXMenu/Makefile
 config.status: creating doc/emacs/Makefile
 config.status: creating doc/misc/Makefile
 config.status: creating doc/lispintro/Makefile
 config.status: creating doc/lispref/Makefile
 config.status: creating src/Makefile
 config.status: creating lwlib/Makefile
 config.status: creating lisp/Makefile
 config.status: creating leim/Makefile
 config.status: creating src/config.h
 config.status: executing depfiles commands
 config.status: executing mkdirs commands
 config.status: executing epaths commands
 creating src/epaths.h
 [ -r "/home/wkd/src/emacs-24.2/src/config.in" ] || ( cd /home/wkd/src/emacs-24.2 && autoheader )
 config.status: executing gdbinit commands
 
6.sudo make,sudo make install 安装成功
整个编译过程,主要是仔细查看configure的输出,看缺乏哪些库,只要把缺乏的库安装上,就能configure成功,这是关键。


为Emacs配置newLISP开发环境 http://www.linuxidc.com/Linux/2013-01/78463.htm

Wine 1.7.4 发布 http://www.linuxidc.com/Linux/2013-10/91343.htm

手把手教你学会 Emacs 主题配置 http://www.linuxidc.com/Linux/2012-10/72342.htm

解压源代码到当前用户目录下,进入目录:

Ubuntu下编译安装Emacs23  http://www.linuxidc.com/Linux/2009-08/21348.htm

tar jxvf wine-1.7.4.tar.bz2
cd wine-1.7.4

手把手教你学会 Emacs 定制 http://www.linuxidc.com/Linux/2012-10/72341.htm

./configure --enable-win64

如何在GNU Emacs环境下编译并运行C/C 程序? http://www.linuxidc.com/Linux/2012-08/68299.htm

creating Makefile rules... done
configure: creating ./config.status
config.status: creating Make.rules
config.status: creating Make.tmp
config.status: creating include/config.h
config.status: linking AUTHORS to dlls/shell32/AUTHORS
config.status: linking tools/winewrapper to wine
config.status: linking tools/winewrapper to wine64
config.status: executing include/stamp-h commands
config.status: executing dlls/gdi32/dibdrv commands
config.status: executing dlls/gdi32/enhmfdrv commands
config.status: executing dlls/gdi32/mfdrv commands
config.status: executing dlls/kernel32/nls commands
config.status: executing dlls/user32/resources commands
config.status: executing dlls/wineps.drv/data commands
config.status: executing include/wine commands
config.status: executing Makefile commands

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

configure: libxcursor development files not found, the Xcursor extension won't be supported.
configure: libxi development files not found, the Xinput extension won't be supported.
configure: libxrandr development files not found, XRandr won't be supported.
configure: libxinerama development files not found, multi-monitor setups won't be supported.
configure: libxcomposite development files not found, Xcomposite won't be supported.
configure: libOSMesa development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: OpenCL development files not found, OpenCL won't be supported.
configure: libdbus development files not found, no dynamic device support.
configure: libgnutls development files not found, no schannel support.
configure: lib(n)curses development files not found, curses won't be supported.
configure: libsane development files not found, scanners won't be supported.
configure: libv4l development files not found.
configure: libgphoto2 development files not found, digital cameras won't be supported.
configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.
configure: liblcms2 development files not found, Color Management won't be supported.
configure: gstreamer-0.10 base plugins development files not found, gstreamer support disabled
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi20 development files not found, ISDN won't be supported.
configure: libcups development files not found, CUPS won't be supported.
configure: fontconfig development files not found, fontconfig won't be supported.
configure: libgsm development files not found, gsm 06.10 codec won't be supported.
configure: libtiff development files not found, TIFF won't be supported.
configure: libmpg123 development files not found (or too old), mp3 codec won't be supported.
configure: libopenal development files not found (or too old), OpenAL won't be supported.
configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-08/104975.htm

configure: Finished.  Do 'make' to compile Wine.

图片 1

现在可以编译了。运行make,等待吧。一个小时候编译完成。然后运行make install

或者可以以非root用户的身份进入tools目录,运行:

./wineinstall

它会自动编译并安装程序,中间会提示输入管理员密码。

安装到了/usr/local/bin目录下

运行命令检查版本:

ine64 --version
wine-1.7.4

然后创建一个wine链接,否则很多程序不能用, 比如winecfg。

sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine

推荐阅读

Windows 7下硬盘安装Ubuntu 13.10图文教程 见 http://www.linuxidc.com/Linux/2013-10/91565.htm

Wine 1.6 发布,Windows 模拟器 http://www.linuxidc.com/Linux/2013-07/87557.htm

Linux支持运行Direct3D 9游戏,性能胜过Wine http://www.linuxidc.com/Linux/2013-07/87510.htm

Ubuntu 13.04里Wine QQ2012无法调用fcitx输入法问题解决 http://www.linuxidc.com/Linux/2013-06/86152.htm

 

Ubuntu 12.04 安装最新版Wine 1.5.10 教程 见 http://www.linuxidc.com/Linux/2012-08/67434.htm

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

图片 2

编辑:亚洲城 本文来源:编译安装Wine,Ubuntu安装Emacs出现到依赖问题及解

关键词: 亚洲城ca88