ubuntu 安装wine ubuntu系统安装软件

如何在Ubuntu系统中安装Wine

基于其友好的工作界面和安全的账户管理方式,Ubuntu系统被越来越多的用户接受并投入使用,占据了操作系统市场的一席之地。但是伴随而来的兼容性问题却阻碍了系统普及的脚步,许多程序仅支持微软Windows系统,不能在Ubuntu系统中安装使用。幸运的是,一款名为Wine的程序运用API转换技术做出Linux和Windows相对应的函数来调用DLL以运行Windows程序,可以完美地解决兼容性差的问题。此外,这款Wine程序是完全免费合法的,所以请放心使用。

安装Wine

打开软件中心。这是Ubuntu系统的程序包管理程序,也是下载安装稳定版Wine程序最简便的方法。你需要连接到可用网络来下载安装Wine程序。你也可以从Wine程序开发者处下载最新发布的、非稳定版的Wine程序,但是我们不建议您这么做。因为非稳定版程序可能会带来许多严重的系统故障等问题。

在软件中心中搜索“wine”。官方的Wine程序会出现在搜索结果列表中的第一位。

点击“安装”按钮来安装Wine软件。安装过程可能需要花费几分钟。

完成安装后,打开终端。使用软件前,你需要在终端中对Wine进行必需的配置操作。你可以从应用程序→附件→终端或按下 Ctrl+ Alt+ T组合键打开终端。

输入.并按下回车键。这将在计算机中创建类似于Windows系统“C:”盘驱动器的文件夹,该文件夹允许你运行非兼容的程序。该文件夹被标记为,并被隐藏在路径中。

设置Windows模拟配置选项。创建“C:”盘后,会打开配置窗口,允许你对模拟的Windows系统版本等选项设置进行调整。其中,不同的选项卡对应不同的设置。“应用程序”-该选项允许你设置安装的每个应用程序的Windows版本。“默认设置”是加载不带有特定操作系统设置的Windows版本。“函数库”-这允许你设置对应不同Windows模拟版本的DLL文件。大部分用户不需要更改此设置,但是有时候你可能需要进行部分调整才能正确运行某些程序。“显卡”-这允许你调整屏幕大小、鼠标捕捉、分辨率等相关选项。且每个选项对应不同的“应用程序”,所以在配置时需要链接到“应用程序”选项卡进行设置、调整。“驱动程序”-这允许你将电脑中的驱动器和文件夹匹配到Wine的虚拟驱动中。想要查找磁盘驱动器路径,你需要右键点击桌面上图标。你也可以点击“自动检测”按钮,来让Wine自动检测你安装的驱动程序。“桌面整合”-允许你调整模拟应用程序的主题和外观。“音频”-允许你调节Wine程序的音频设置。大部分用户都保留默认设置,Wine会自行使用你的Linux音频设置。

安装并运行Wine应用程序

下载Windows应用程序,或者插入安装盘。如果你使用的是Windows系统,那么你可以安装任何支持Windows的应用程序。如果你下载程序的安装文件,那么把文件保存在你记得住的路径中。

打开终端,访问安装文件所在路径。如果你是从安装盘进行安装,那么跳过此步。

输入.命令运行安装程序。例如,如果你下载了名为“itunes_installer.exe”的安装文件,那么你需要输入命令,然后按下回车键。接着,界面就会像使用Windows系统一样运行该程序。如果你从安装盘中安装程序,确保安装盘中具有Wine指定的驱动器证书。然后输入以下命令:。将文件名更改为实际文件名称。

按照安装提示操作来安装程序。整个安装过程和在Windows系统中安装程序一样。如果系统询问你设置安装路径,选择即可。

在你的Ubuntu应用程序菜单或桌面上找到安装的应用程序。许多Windows应用程序会在安装时在桌面上创建一个快捷图标,以方便你的访问。双击图标即可运行程序。

如果你找不到快捷方式图标,那么从终端中运行程序。如果你安装的程序没有创建快捷方式图标,那么你需要使用终端来运行程序。定位到程序可执行文件的保存路径,如:.输入,按下回车键来打开程序。如:

创建Wine程序的快捷方式。如果你不想每次都从终端处输入命令打开Wine,那么你可以在桌面上创建快捷方式图标。右键点击你的桌面,选择“创建启动器”。选择列表中的图标,或添加自定义图标。在“命令”一栏,输入。该路径就是特定程序的可执行文件所在的路径。如:.不要勾选“在终端中运行”对话框。

Ubuntu如何安装wine命令

方法一:

Wine(“Wine Is Not an Emulator”的首字母缩写)是一个能够在多种 POSIX-compliant操作系统(诸如 Linux,Mac OSX及 BSD等)上运行 Windows应用的兼容层。 Wine不是像虚拟机或者模拟器一样模仿内部的 Windows逻辑,而是将 Windows API调用翻译成为动态的 POSIX调用,免除了性能和其他一些行为的内存占用,让你能够干净地集合 Windows应用到你的桌面。

下面跟大家分享如何在Ubuntu 14.04上安装Wine

1.添加PPA

sudo add-apt-repository ppa:ubuntu-wine/ppa

2.更新列表

sudo apt-get update

3.安装Wine

sudo apt-get install wine1.7 winetricks

为了避免错误大家可以使用以下命令

sudo apt-get update

方法二:

打开终端执行一下命令,在安装过程中会提示你是否同意协议,点击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

下载最新的源代码:

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

如何在ubuntu下安装wine

1

先得添加ubuntu-wine/ppa这个官方的源地址

指令是:sudo add-apt-repository ppa:ubuntu-wine/ppa

当然,你如果直接开始安装也是可以的,但是不能获取到最新的wine哦!建议以上的操作。

2

执行后

需要输入密码验证,如果您是第一次使用ubuntu,那么输入密码的时候是不会显示任何数据的,你只管按完密码然后按enter回车就可。

3

然后我们再更新安装包

安装包的更新指令是:sudo apt-get update。

按enter执行!

4

更新过程会根据你的网络状况发生变化

如果你网速比较快,自然很快就能从源更新完成,不然会等很久,那么我们等待它更新完成后。

执行:sudo apt-get install wine1.7,然后按enter确定。

5

注意

如果你的系统是 i386即32位版本,那么就执行在1.7后面加上【-i386】。

否则可能安装不上wine的哦。

6

如果你想安装其它版本的wine。

那么可以在敲sudo apt-get install wine的时候,暂时不敲后面的版本。

按Tab键补全,在补全的介绍页面会出现很多版本的wine,选择一个,敲完剩下的部分命令执行就可以啦!

7

等待安装完成后配置

安装过程其实差不多算是一个下载过程,需要耐心等待,这个包貌似不在国内的服务器上。

等待安装完成后,我们就可以对它进行配置啦。

配置wine的指令是【winecfg】

阅读剩余
THE END