centos7安装wine1.8

Installing Wine 1.8 Using Source Code

Step 1: Installing Dependency Packages

We need to install ‘Development Tools‘ with some core development tools such gccflexbison,debuggers etc. these software’s are must required to compile and build new packages, install them using YUM command.

# yum -y groupinstall 'Development Tools'
# yum -y install libX11-devel libxml2-devel libxslt-devel freetype-devel flex bison

Note: On Fedora 22+ versions, yum package manager no longer in use, you should use dnf instead yum in the command below.

# dnf -y groupinstall 'Development Tools'
# dnf -y install libX11-devel libxml2-devel libxslt-devel freetype-devel flex bison

Read more about Learn dnf command with these 27 examples.

Step 2: Downloading Wine 1.8

Download the source file using Wget command under /tmp directory as a normal User.

$ cd /tmp
$ wget http://dl.winehq.org/wine/source/1.8/wine-1.8.tar.bz2
Step 3: Extracting Wine 1.8

Once the file is downloaded under /tmp directory, use the below commands to extract it.

$ tar -xvf wine-1.8.tar.bz2 -C /tmp/
Step 4: Installing Wine 1.8

It is recommended to compile and build Wine installer as a normal User. Run the following commands as normal user.

Note : The installer might take up-to 20-30 minutes and in the middle it will ask you to enter rootpassword.

$ cd wine-1.8/
$ ./tools/wineinstall

Install Wine Using EPEL Repository

Note: If you don’t want to mess with these all source code compilation and installation, there is an easy way using epel repository, but the available version of wine bit older.

Let’s first install and enable EPEL repository to install wine as shown:

# yum install epel-release
# yum install wine

Once the installation completes run the “winecfg” configuration tool from KDE or GNOME desktop to see the supported configuration. If you don’t have any of the desktop, you can install it by using the below command as root user.

# yum groupinstall "X Window System" "GNOME Desktop Environment"
OR
# yum groupinstall "X Window System" "KDE (K Desktop Environment)"

# yum groupinstall "GNOME Desktop"        [On CentOS 7]

# yum groupinstall "Server with GUI"      [On RHEL 7]

Once the X Window System installed, run the command as normal user to see wine configuration.

$ winecfg

Winecfg Configuration

Winecfg Configuration

Step 5: Running Wine 1.8

To run the Wine, you must specify the full path to the executable program or program name as shown in example below.

--------- On 32-bit Systems ---------
$ wine notepad
$ wine c:\\windows\\notepad.exe
--------- On 64-bit Systems ---------
$ wine64 notepad
$ wine64 c:\\windows\\notepad.exe

Wine Running Windows Programs on Linux

Wine Running Windows Programs on Linux

Wine is not perfect, because while using wine we see so many programs crashes. I think wine team will soon fix all bugs in their upcoming version and meanwhile do share your comments using our below form.


转载于:https://my.oschina.net/u/2279209/blog/606903

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值