FreeStyleWiki

wineの設定

このエントリーをはてなブックマークに追加

[Linux]

Wineの設定

  wineで64bitアプリケーションを使う

手順

まず、wineが入っているディレクトリを新規作成する

$ mkdir ~/.wine64

winetricksを最新化しcronを設定しておく

$ cd "$(mktemp -d)"
$ cat > update_winetricks <<_EOF_SCRIPT
#!/bin/sh

cd "\$(mktemp -d)"
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion
chmod +x winetricks
su root sh -c 'mv winetricks /usr/bin ; mv winetricks.bash-completion /usr/share/bash-completion/completions/winetricks'
_EOF_SCRIPT

$ chmod +x update_winetricks
$ sudo -u root sh -c 'mv update_winetricks /usr/bin/'
$ sudo ln "/usr/bin/update_winetricks" "/etc/cron.weekly/update_winetricks"

フォントをインストール

$ WINEARCH=win64 WINEPREFIX=~/.wine64 winetricks allfonts
$ WINEARCH=win64 WINEPREFIX=~/.wine64 winetricks cjkfonts
$ WINEARCH=win64 WINEPREFIX=~/.wine64 winetricks fakejapanese_ipamona

  wineでDependency Walkerを使う

  • MFC42.dllをインストール
$ WINEARCH=win64 WINEPREFIX=~/.wine64 winetricks mfc42

  wineMinGWを使う

$ WINEARCH=win64 WINEPREFIX=~/.wine64 winetricks mingw
$ WINEARCH=win64 WINEPREFIX=~/.wine64 env LANG=ja_JP.UTF-8 wine "C:\MinGW\bin\mingw-get.exe"