Windowsではテキストエディタに「Mery」を利用しているので、Macにもインストールしてみる。
省略...
brew update
homebrewでwineをインストールしようとしたら、以下のエラーが出力された。
$ brew install --devel wine
Unsatisfied dependency: XQuartz
Homebrew dose not package XQuartz. Installers may be found at:
https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.
要約すると、wineはXQuartzに依存しているけど、homebrweにパッケージが無いから以下のURLからインストールしてくれ、という事です。
表示されたURLにアクセスし、dmgファイルXQuartz-2.7.4.dmg
をダウンロードしインストールする。
以下のページを参照。
http://wakabamac.blog95.fc2.com/blog-entry-841.html
MacOS標準のX11にはバグが有るらしく、それの代わりとなるXウィンドウシステムだそうだ。
インストール後、XServerを実行するには再ログインしてくださいというメッセージが表示されるので、ログアウト→ログインをする。
$ brew install --devel wine
==> Installing wine dependency: jpeg
==> Downloading http://www.ijg.org/files/jpegsrc.v8d.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/jpeg/8d
==> make install
🍺 /usr/local/Cellar/jpeg/8d: 18 files, 1.3M, built in 25 seconds
==> Installing wine dependency: jasper
==> Downloading http://download.osgeo.org/gdal/jasper-1.900.1.uuid.tar.gz
######################################################################## 100.0%
==> Patching
patching file src/libjasper/jpc/jpc_dec.c
==> ./configure --enable-shared --prefix=/usr/local/Cellar/jasper/1.900.1 --mandir=/usr/local/Cellar/j
==> make install
🍺 /usr/local/Cellar/jasper/1.900.1: 35 files, 1.6M, built in 40 seconds
==> Installing wine dependency: libpng
==> Downloading http://downloads.sf.net/project/libpng/libpng15/1.5.14/libpng-1.5.14.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libpng/1.5.14
==> make install
🍺 /usr/local/Cellar/libpng/1.5.14: 15 files, 1.3M, built in 13 seconds
==> Installing wine dependency: libicns
==> Downloading http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1
==> make install
🍺 /usr/local/Cellar/libicns/0.8.1: 17 files, 280K, built in 11 seconds
==> Installing wine dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-lzma
==> make install
🍺 /usr/local/Cellar/libtiff/4.0.3: 254 files, 5.2M, built in 37 seconds
==> Installing wine dependency: little-cms
==> Downloading http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/little-cms/1.19
==> make install
🍺 /usr/local/Cellar/little-cms/1.19: 22 files, 840K, built in 22 seconds
==> Installing wine
==> Downloading http://downloads.sourceforge.net/project/wine/Source/wine-1.5.26.tar.bz2
######################################################################## 100.0%
Warning: Clang currently miscompiles some parts of Wine. If you have gcc, you
can get a more stable build with:
brew install wine --use-gcc
==> ./configure --prefix=/usr/local/Cellar/wine/1.5.26 --with-coreaudio --with-opengl --with-x --x-inc
==> make install
==> Downloading http://downloads.sourceforge.net/wine/wine_gecko-1.9-x86.msi
######################################################################## 100.0%
==> Downloading http://downloads.sourceforge.net/wine/wine-mono-0.0.8.msi
######################################################################## 100.0%
==> Caveats
For best results, you will want to install the latest version of XQuartz:
http://xquartz.macosforge.org/
You may also want to get winetricks:
brew install winetricks
Or check out:
http://code.google.com/p/osxwinebuilder/
The current version of Wine contains a partial implementation of dwrite.dll
which may cause text rendering issues in applications such as Steam.
We recommend that you run winecfg, add an override for dwrite in the
Libraries tab, and edit the override mode to "disable".
Starting with wine 1.5.22 the new experimental Mac driver by CodeWeavers has
been included in the main distribution. This allows wine to run without X11
on MacOS X. To enable it execute the following command in your wine prefix:
wine regedit /usr/local/Cellar/wine/1.5.26/winemac.key
To disable it execute:
wine regedit /D 'HKEY_CURRENT_USER\Software\Wine\Drivers'
==> Summary
🍺 /usr/local/Cellar/wine/1.5.26: 1912 files, 183M, built in 9.5 minutes
wineのDLLなどをインストールしたりする、homebrewみたいなもの。
$ brew install winetricks
==> Installing winetricks dependency: cabextract
==> Downloading http://www.cabextract.org.uk/cabextract-1.4.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/cabextract/1.4 --mandir=/usr/local/Cellar/cabextract/1.4/sh
==> make install
🍺 /usr/local/Cellar/cabextract/1.4: 9 files, 152K, built in 13 seconds
==> Installing winetricks
==> Downloading http://winetricks.googlecode.com/svn-history/r913/trunk/src/winetricks
######################################################################## 100.0%
==> Caveats
winetricks is a set of utilities for wine, which is installed separately:
brew install wine
==> Summary
🍺 /usr/local/Cellar/winetricks/20120912-r913: 2 files, 604K, built in 2 seconds