Ubuntu 13.10 编译安装Wine 1.7(转自http://blog.csdn.net/csfreebird/article/details/12872193)

先安装依赖的库:

[html]  view plain copy print ?
  1. sudo apt-get install flex bison qt4-qmake  
  2. apt-get install libfreetype6-dev  
  3. apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev   
  4. apt-get install libxrender-dev  
  5. sudo apt-get install libgl1-mesa-dev  
  6. sudo apt-get install libglu1-mesa-dev  
  7. sudo apt-get install freeglut3-dev  
  8. apt-get install prelink   
  9. apt-get install libasound2-dev  


下载最新的源代码:file:///home/dean/Downloads/wine-1.7.4.tar.bz2
解压源代码到当前用户目录下,进入目录:
[plain]  view plain copy print ?
  1. tar jxvf wine-1.7.4.tar.bz2   
  2. cd wine-1.7.4  
[plain]  view plain copy print ?
  1. ./configure --enable-win64  
[plain]  view plain copy print ?
  1. creating Makefile rules... done  
  2. configure: creating ./config.status  
  3. config.status: creating Make.rules  
  4. config.status: creating Make.tmp  
  5. config.status: creating include/config.h  
  6. config.status: linking AUTHORS to dlls/shell32/AUTHORS  
  7. config.status: linking tools/winewrapper to wine  
  8. config.status: linking tools/winewrapper to wine64  
  9. config.status: executing include/stamp-h commands  
  10. config.status: executing dlls/gdi32/dibdrv commands  
  11. config.status: executing dlls/gdi32/enhmfdrv commands  
  12. config.status: executing dlls/gdi32/mfdrv commands  
  13. config.status: executing dlls/kernel32/nls commands  
  14. config.status: executing dlls/user32/resources commands  
  15. config.status: executing dlls/wineps.drv/data commands  
  16. config.status: executing include/wine commands  
  17. config.status: executing Makefile commands  
  18.   
  19. configure: libxcursor development files not found, the Xcursor extension won't be supported.  
  20. configure: libxi development files not found, the Xinput extension won't be supported.  
  21. configure: libxrandr development files not found, XRandr won't be supported.  
  22. configure: libxinerama development files not found, multi-monitor setups won't be supported.  
  23. configure: libxcomposite development files not found, Xcomposite won't be supported.  
  24. configure: libOSMesa development files not found (or too old), OpenGL rendering in bitmaps won't be supported.  
  25. configure: OpenCL development files not found, OpenCL won't be supported.  
  26. configure: libdbus development files not found, no dynamic device support.  
  27. configure: libgnutls development files not found, no schannel support.  
  28. configure: lib(n)curses development files not found, curses won't be supported.  
  29. configure: libsane development files not found, scanners won't be supported.  
  30. configure: libv4l development files not found.  
  31. configure: libgphoto2 development files not found, digital cameras won't be supported.  
  32. configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.  
  33. configure: liblcms2 development files not found, Color Management won't be supported.  
  34. configure: gstreamer-0.10 base plugins development files not found, gstreamer support disabled  
  35. configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.  
  36. configure: libcapi20 development files not found, ISDN won't be supported.  
  37. configure: libcups development files not found, CUPS won't be supported.  
  38. configure: fontconfig development files not found, fontconfig won't be supported.  
  39. configure: libgsm development files not found, gsm 06.10 codec won't be supported.  
  40. configure: libtiff development files not found, TIFF won't be supported.  
  41. configure: libmpg123 development files not found (or too old), mp3 codec won't be supported.  
  42. configure: libopenal development files not found (or too old), OpenAL won't be supported.  
  43. configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.  
  44.   
  45. configure: Finished.  Do 'make' to compile Wine.  


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

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

[plain]  view plain copy print ?
  1. ./wineinstall  

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

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

运行命令检查版本:

[plain]  view plain copy print ?
  1. ine64 --version  
  2. wine-1.7.4  

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

[plain]  view plain copy print ?
  1. sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine  



参考:

http://wiki.winehq.org/Wine64

http://askubuntu.com/questions/114460/how-to-install-lfreetype-using-wine

对于经常遇到中文乱码的可以看看这个,还是有一定作用。

http://forum.ubuntu.org.cn/viewtopic.php?f=121&t=446923&sid=4040f5d466eb2d9d6d4322f88d47bfb6

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值