使用源码安装wine。
使用git clone https://github.com/wine-mirror/wine.git 获取到最新的wine源码
安装步骤如下:
./configure
make
make install
在执行./configure时会出现
1.错误
checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
Configure failed, aborting install.
解决办法:
./configure --enable-win64
2.错误
configure: error: no suitable flex found. Please install the 'flex' package
解决办法:
sudo apt-get install flex
3.错误
configure: error: no suitable flex found. Please install the 'bison' package
解决办法:
sudo apt-get install bison
4.错误
configure: error: X 64-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 64-bit development packages of Xlib at the very least.
Use the --without-x option if you really want this.
解决办法:
sudo apt-get install xserver-xorg-dev
之后再使用./configure --enable-win64 命令
之后再使用make、make install