M-78 星云 凹凸曼就是打这里出来的

7五/100

Ubuntu装Wine时小问题

2010年8月27日 修正两处笔误.

Ubuntu 10.0.4发布了一段时间了,Vmware 7.0.1也是。最近想再次安装Ubuntu试试,上次安装OpenSuse,我的体验不是很好,但是想到一辈子依赖Win系统也不行的,于是还是虚拟机里面弄个Ubuntu吧,以便不时之需...下面是新手的我的流程记录。

Ubuntu 安装很方便,只要连着网,过一会儿就好了...但是Ubuntu下面安装Wine我却遇到了一些小麻烦。
Wine还有个中文的问题,有些软件可能在不打中文补丁的情况下某些工作不正常,可以去Ubuntu 中文网的Wine区找找,我暂时没装,等需要的话,我再去试试,如果挺那啥的话,我再写篇日志...
我所使用的Wine是1.1.43版本的,安装已经编译好的Wine比较简单,使用如下命令即可:

sudo apt-get update //更新
sudo apt-get install wine //直接从网络安装wine

这样方便快捷,只是网络上都说,这种方式安装之后,兼容性不好,容易出问题。所以都推荐使用自己编译安装的方式进行安装,不过这个也有两个方式,第一种比较简单我没有尝试,貌似使用

sudo apt-get build-dep wine

得到编译包,然后再编译,有条件的同学可以试下,不过我是使用的第二种方式,即手动下载所有的缺失开发包
首先解压好wine后,因为我是新装的Ubuntu,所以我先执行了

sudo passwd root

给root添加个密码,然后执行

su

使用root权限
cd进入wine的文件夹“wine-1.1.43”
执行

sudo ./configure //这操作一定要在每次安装好开发包之后再次执行,直到没有任何错误提示才行

首先提示为:

configure: error: no suitable flex found. Please install the 'flex' package.

sudo apt-get install flex

然后提示为:

configure: error: no suitable flex found. Please install the 'bison' package.

sudo apt-get install bison

再次运行,可能会得到:

configure: libXxf86vm development files not found, XFree86 Vidmode won't be supported.
configure: libhal/libdbus development files not found, no dynamic device 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: liblcms development files not found, Color Management 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: 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.

这里缺失的都是些开发包,一般都是些以 xxxxxx-dev 命名的东西,直接用 sudo apt-get install xxx xxx xxx的方式安装下面这些开发包(这里对应上面的每一个错误)

libxxf86vm-dev
libhal-dev
libncurses5-dev
libsane-dev
libv4l-dev
libgphoto2-2-dev
liblcms-dev
libcapi20-dev
libcups2-dev
libtiff4-dev
libmpg123-dev
libopenal-dev
libldap2-dev

再次运行 sudo ./configure,可能还会得到如下的

configure: WARNING: libxslt development files not found, xslt won't be supported.
configure: WARNING: OpenGL development headers not found.
OpenGL and Direct3D won't be supported.
configure: libGLU development files not found, GLU won't be supported.
configure: libgsm development files not found, gsm 06.10 codec won't be supported.
configure: WARNING: OpenSSL development files not found, SSL won't be supported.

则用同样的方式安装:

libxslt1-dev
libgl1-mesa-dev
libGLU-dev
libgsm1-dev
libssl-dev

一般已经没有需要下载的开发包了,可能还需要libavcodec-dev(不确定,因为我早上安装是安装过,不过只是需要其中的某个组件而已,假如有同学知道,请告知,谢谢!)。
其实要是还有啥缺失的,可以去http://packages.ubuntu.com/以缺失的开发库名作为关键字搜索,一般都会有结果的
重复执行./configure,直到没有错误,并出现“Configure finished. DO ‘make’to compile Wine”
直接运行

make depend && make

经过一定时间的等待得到

Wine built successfully

然后直接

make install

安装Wine,如果一切顺利,即安装成功,自动退回到终端等待输入状态,然后即可
直接运行

winecfg

进行配置,这是必须的
配置啥的请看http://forum.ubuntu.org.cn/viewtopic.php?t=107816 很简单,只要选下系统 配置下声卡即可
纯净的wine也支持中文,可是不是很好,可以试试http://forum.ubuntu.org.cn/viewtopic.php?f=121&t=263443的方法
还是不行的话,只能安装补丁了,不过安装之后的不稳定,你也得自己来承受...

原创文章,转载请注明: 转载自M-78 星云

本文链接地址: Ubuntu装Wine时小问题

文章的脚注信息由WordPress的wp-posturl插件自动生成

评论 (0) 引用 (0)

还没有评论.


Leave a comment

(required)

还没有引用.