![b9a2281e464b52ba8473ea9b5c31d168.png](https://i-blog.csdnimg.cn/blog_migrate/9cff2e21edb372cab3a7e0f9f79e9646.jpeg)
-----------------------------------------------------------------------------------------------
解压:
tar xvJf ./wine-4.0.1.tar.xz
./configure
./configure --enable-win64
sudo make
sudo make install
说明:
./configure --enable-
安装的是32位wine ./configure --enable-wine
安装的是64位wine ./configure --enable-win64
如装64位的wine,安装完后需要增加一个链接,
sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine
安装完后,终端运行winecfg
winecfg运行的时候,窗口上的文字都是 ||(||!) ,要做下一步中文支持。
首先复制Windows下的simsun.ttc字体到~/.wine/drive-c/windows/fonts/目录下。
sudo cp simsun.ttc ~/.wine/drive_c/windows/Fonts/
然后新建一个zh.reg文件,然后打开它,输入以下内容。然后回答命令行,使用regedit zh.reg来导入到注册表。
![c4c81a259f145472743876e9d4c2336b.png](https://i-blog.csdnimg.cn/blog_migrate/af866ab10bde6f9cea4b9740b35b480a.jpeg)
zh.reg注册表文件内容:
REGEDIT4
[HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"
现在再运行winecfg正常。
-----------------------------------------------------------------------------------------------
在源编辑可能会出现的错误,我整理如下:
1、错误信息如下:
configure: error: no suitable flex found. Please install the 'flex' package.
解决:
sudo apt-get install flex
2、错误信息如下:
configure: error: no suitable flex found. Please install the 'bison' package.
解决:
sudo apt-get install bison
3、
![e8c2c7efd18fa41a288472ccb865af1a.png](https://i-blog.csdnimg.cn/blog_migrate/d141d96b12d120e7a9d853fb50588b84.jpeg)
4、错误信息如下:
![9c6995c497ad11c840fc0920374b345f.png](https://i-blog.csdnimg.cn/blog_migrate/641212a34796a61d642616f883cf3b7f.jpeg)
解决:
sudo apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev
5、错误信息如下:
![6b2d581363b63bab4cf1b31b60f1756e.png](https://i-blog.csdnimg.cn/blog_migrate/a265eecc342931b4f5e69938b8c7e637.jpeg)
解决:
sudo apt-get install libasound2-dev
sudo 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
需要字体文件,注册表文件可以留言。