ubuntu12.04 命令行安装Wine1.7的方法

打开终端执行一下命令,在安装过程中会提示你是否同意协议,点击Enter:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get install wine1.5

Ubuntu 13.10 编译安装Wine 1.7

先安装依赖的库:

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

下载最新的源代码:

http://prdownloads.sourceforge.net/wine/wine-1.7.4.tar.bz2
http://mirrors.ibiblio.org/wine/source/1.7/wine-1.7.4.tar.bz2

Wine 1.7.4 发布

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

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

./configure --enable-win64

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

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.

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

现在可以编译了。运行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

(0)

相关推荐

  • Centos命令行安装和使用teamviewer方法

    Windows一般是在图形界面下安装Teamviewer,下面是如何在Linux上通过命令行静默的形式安装Teamviewer. 操作方法 01 获取Teamviewer的Centos版本,选择64位 ...

  • 使用命令行安装驱动程序的方法

    看了一下Celluar Emulator的内容,除了应用程序,还需要安装一个虚拟硬件的驱动,名为XPVCOM。安装完毕后,会出现一个XPVCOM port。这个虚拟硬件将接受Device Emulat ...

  • ubuntu16.04命令行模式和图形界面互相切换的两种解决办法

    在ubuntu中,我们可以有两种工作模式,一种是纯字符的命令行模式,这种界面没有那么好操作,而且对命令要求比较熟悉,比较适合专业人士使用,另一种模式就是图形化界面,这个相信大家都很熟悉了,我们常用的w ...

  • ubuntu16.04命令行模式和图形界面的切换

    在ubuntu中,我们可以有两种工作模式,一种是纯字符的命令行模式,这种界面没有那么好操作,而且对命令要求比较熟悉,比较适合专业人士使用,另一种模式就是图形化界面,这个相信大家都很熟悉了,我们常用的w ...

  • Ubuntu命令行中连接使用VPN方法

    代码如下: route add default dev ppp0 route add -net 192.168.2.0 netmask 255.255.255.0 ppp0 1)先安装VPN客户端 代 ...

  • MAC OS X 10.9.X下用命令行开启SSD trim的方法汇总

    网上搜的好多都是以前的老方法,并不支持10.9系统。我前两天升级了10.9.2,今天突然发现trim状态已经被重置为 否 了,上次从10.9到10.9.1是没有重置的。刚刚我在百度搜“trim 命令行 ...

  • Linux命令行与图形界面切换方法

    Linux命令行与图形界面切换方法

  • Win7命令行配置静态IP地址方法

    修改IP地址可以在系统自带的“网络和共享中心”实现。不过有些时候可能会因为种种原因而无法进入相应界面,比如Win10预览版10049等版本。但很多用户的确需要设置静态IP才能够实现正常的网络通讯,此时 ...

  • Win10命令行配置静态IP地址方法

    修改IP地址可以在系统自带的"网络和共享中心"实现.不过有些时候可能会因为种种原因而无法进入相应界面,比如Win10预览版10049等版本.但很多用户的确需要设置静态IP才能够实现 ...