ユーザ用ツール

サイト用ツール


mac-os:wine

Wine のインストール

Homebrew をインストール

Homebrew をインストール

$ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...

Press enter to continue
==> /usr/bin/sudo /bin/mkdir /usr/local
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local
==> Downloading and Installing Homebrew...
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help

インストールのチェック

$ brew doctor
Your system is raring to brew.

Homebrew をアップデート

$ brew update
Initialized empty Git repository in /usr/local/.git/
remote: Counting objects: 72030, done.
remote: Compressing objects: 100% (35573/35573), done.
remote: Total 72030 (delta 48547), reused 56689 (delta 35654)
Receiving objects: 100% (72030/72030), 10.28 MiB | 2.17 MiB/s, done.
Resolving deltas: 100% (48547/48547), done.
From https://github.com/mxcl/homebrew
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      master     -> origin/master
HEAD is now at 470e83a smartmontools 5.43
Already up-to-date.

Homebrew 0.9.2 がインストールされた。(2012年7月12日)

$ brew --version
0.9.2

XQuartz をインストール

OSX 標準の X11 はバグがあるらしく、そのままではうまく動かないソフトがあるらしい。 XQuartz を OSX 標準の X11 の代わりに使うと良いらしい。OSX をバージョンアップすると再び OSX 標準の X11 が有効になることがあるので、OSX のバージョンアップを行ったら再インストールが必要な場合がある。

Wine をインストール

安定板の 1.4 よりも、開発版の 1.5.6 の方がおすすめらしいので、 –devel オプションを付けて開発版をインストール。

インストールされるバージョンを確認

$ brew info --devel wine
wine: stable 1.4, devel 1.5.6, HEAD
http://winehq.org/
Depends on: jpeg, libicns
Not installed
https://github.com/mxcl/homebrew/commits/master/Library/Formula/wine.rb

==> 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/

Wine をインストール

$ 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 21 seconds
==> Installing wine dependency: jasper
==> Downloading http://slackware.sukkology.net/packages/jasper/jasper-1.900.1.zi
######################################################################## 100.0%
==> Patching
patching file src/libjasper/jpc/jpc_dec.c
==> ./configure --disable-debug --enable-shared --prefix=/usr/local/Cellar/jaspe
==> make install
/usr/local/Cellar/jasper/1.900.1: 34 files, 936K, built in 28 seconds
==> Installing wine dependency: libicns
==> Downloading http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/libicns/0.8.1
==> make install
/usr/local/Cellar/libicns/0.8.1: 15 files, 420K, built in 10 seconds
==> Installing wine
==> Downloading http://downloads.sourceforge.net/project/wine/Source/wine-1.5.6.
######################################################################## 100.0%
==> Patching
patching file tools/winebuild/utils.c
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.6 --x-include=/opt/X11/inclu
==> make install
==> Downloading http://downloads.sourceforge.net/wine/wine_gecko-1.5-x86.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/
==> Summary
/usr/local/Cellar/wine/1.5.6: 1829 files, 125M, built in 7.3 minutes
$ wine --version
wine-1.5.6

WineTricks をインストール

Wine環境に対して自動でWindows向けソフトウェアをダウンロード/インストールしたりWineの設定を変更したりできる。

$ 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/Ce
==> make install
/usr/local/Cellar/cabextract/1.4: 7 files, 140K, built in 8 seconds
==> Installing winetricks
==> Downloading http://winetricks.googlecode.com/svn-history/r832/trunk/src/wine
######################################################################## 100.0%
==> Caveats
winetricks is a set of utilities for wine, which is installed separately:
  brew install wine
==> Summary
/usr/local/Cellar/winetricks/20120308-r832: 2 files, 604K, built in 2 seconds

後はフォントの追加をしないと。

mac-os/wine.txt · 最終更新: 2013/01/01 22:14 by admin