在Ubuntu上安装wine1.94版本的操作

下载

进入wine官网下载最新的版本,
https://www.winehq.org/announce/1.9.8
里面有这么一段话:

The Wine development release 1.9.8 is now available.

What's new in this release (see below for details):
  - More work towards the WineD3D command stream.
  - Bug fix update of the Mono engine.
  - More WebServices reader support.
  - Still more Shader Model 5 support.
  - Support for gradients in metafiles.
  - Improved table formatting in WinHelp.
  - Various bug fixes.

The source is available from the following locations:

  http://dl.winehq.org/wine/source/1.9/wine-1.9.8.tar.bz2
  http://mirrors.ibiblio.org/wine/source/1.9/wine-1.9.8.tar.bz2

对于开源的项目,源码是免费的可以自己编译,二进制的版本只是试用,所以还是下载源码版的!

解压源码并编译

解压这个tar.bz2文件,打开解压后的文件夹,找到文件README文件,这里面有安装的说明,全是英文,英文不好,只看懂几个:

2. QUICK START

Whenever you compile from source, it is recommended to use the Wine
Installer to build and install Wine.  From the top-level directory
of the Wine source (which contains this file), run:

./tools/wineinstall

Run programs as "wine program".  For more information and problem
resolution, read the rest of this file, the Wine man page, and
especially the wealth of information found at http://www.winehq.org.

以及:

4. COMPILATION

In case you chose to not use wineinstall, run the following commands
to build Wine:

./configure
make

This will build the program "wine" and numerous support libraries/binaries.
The program "wine" will load and run Windows executables.
The library "libwine" ("Winelib") can be used to compile and link
Windows source code under Unix.

To see compile configuration options, do ./configure --help.

5. SETUP

Once Wine has been built correctly, you can do "make install"; this
will install the wine executable and libraries, the Wine man page, and
other needed files.

Don't forget to uninstall any conflicting previous Wine installation
first.  Try either "dpkg -r wine" or "rpm -e wine" or "make uninstall"
before installing.

Once installed, you can run the "winecfg" configuration tool. See the
Support area at http://www.winehq.org/ for configuration hints.

也就是说,先执行命令:

./tools/wineinstall

不过由于版本问题,可能会有问题,所以先执行:

./configure --without-freetype --without-x

后执行:

./tools/wineinstall
meke

看我的命令:

  144  ./tools/wineinstall 
  145  ./configure --without 
  146  ./configure --without-x
  147  sudo apt-get search lib32-devel
  148  sudo apt-get install lib32-devel
  149  sudo apt-get install lib32
  150  apt-get check lib32-devel
  151  sudo apt-get check lib32-devel
  152  sudo apt-get installlib32-devel
  153  sudo apt-get install lib32-devel
  154  ./configure --without-x
  155  ./configure --without-freetype
  156  ./configure --without-freetype -x
  157  ./configure --without-freetype x
  158  ./configure --without-freetype --without-x
  159  make
  160 ./tools/wineinstall
  161  wine
  162  wine --version

也是尝试了多次,才成功的!所以记录一下,以便下次使用!
我的当前版本:

$ wine --version
wine-1.9.4

附加命令

sudo apt-get install libx11-dev:i386^C

如果不需要图形,则使用该命令:

./configure --enable-win64 --without-x --without-freetype
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值