当我们配置wine的时候:
wget http://www.kegel.com/wine/winetricks
sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1 flash wenquanyi
出现如下错误:
wine cmd.exe /c echo '%ProgramFiles%' returned unexpanded string '%ProgramFiles%' ... can be caused a corrupt wineprefix, an old wine, or by not owning /home/user/.wine
这是由于wine的环境变量没有配置好,解决办法:
1、打开终端,新建文件
vi wine64fix.reg
2、添加内容
REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment]
"ProgramFiles"="C:\\Program Files"
"SystemDrive"="C:"
3、执行命令
wine regedit wine64fix.reg
OK~