安装wine
1、brew update 执行失败,提示安装如下
2、git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
3、git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
3、brew update
4、brew install --cask --no-quarantine wine-stable
5、wine 安装完成会有图标
6、点击图标进入命令行,执行 wine XXX.exe 安装或者是运行
7、cd ~/.wine/
ls -lh drive_c/Program\ Files/MetaTrader\ 5/
8、运行:wine drive_c/Program\ Files/MetaTrader\ 5/terminal64.exe
9、解决乱码问题
下载 MicrosoftYaHeiMono.tgz ,解压后拷贝到drive_c/windows/Fonts/
创建:touch MicrosoftYaHeiMono.reg
粘贴:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"@Microsoft YaHei Mono (TrueType)"="MicrosoftYaHeiMono.ttf"
"Microsoft YaHei Mono (TrueType)"="MicrosoftYaHeiMono.ttf"
"@SimSun (TrueType)"="simsun.ttc"
"SimSun (TrueType)"="simsun.ttc"
"@宋体 (TrueType)"="simsun.ttc"
"宋体 (TrueType)"="simsun.ttc"
"@NSimSun (TrueType)"="simsun.ttc"
"NSimSun (TrueType)"="simsun.ttc"
"@新宋体 (TrueType)"="simsun.ttc"
"新宋体 (TrueType)"="simsun.ttc"
"@SimSun-ExtB (TrueType)"="simsunb.ttf"
"SimSun-ExtB (TrueType)"="simsunb.ttf"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Fonts]
"@Microsoft YaHei Mono (TrueType)"="MicrosoftYaHeiMono.ttf"
"Microsoft YaHei Mono (TrueType)"="MicrosoftYaHeiMono.ttf"
"@SimSun (TrueType)"="simsun.ttc"
"SimSun (TrueType)"="simsun.ttc"
"@宋体 (TrueType)"="simsun.ttc"
"宋体 (TrueType)"="simsun.ttc"
"@NSimSun (TrueType)"="simsun.ttc"
"NSimSun (TrueType)"="simsun.ttc"
"@新宋体 (TrueType)"="simsun.ttc"
"新宋体 (TrueType)"="simsun.ttc"
"@SimSun-ExtB (TrueType)"="simsunb.ttf"
"SimSun-ExtB (TrueType)"="simsunb.ttf"
链接: https://pan.baidu.com/s/140oxyVycI4xzjioM7TRM4A?pwd=sga4 提取码: sga4 复制这段内容后打开百度网盘手机App,操作更方便哦
10、执行配置文件更新
wine regedit MicrosoftYaHeiMono.reg
11、Mac的系统设置也要改成中文