OSXでそのアプリを起動して見たくなりました。
0. はじめに
MacBook ProでWindowsのソフトを動かすには、
- bootcampでやる
- 商用の仮想化ソフトを使う
- フリーの仮想化ソフトを使う
と3種類から選べます。
商用だと、vmware fusion、ParallelsやCrossOver Macなどですね。
フリーだと、VirtualBox、wineでしょうか。
自分はbootcamp、vmware fusion、Parallelsは、今まで試したことがありましたので、
今回はwineにチャレンジです。
wineのインストールですが、OSXでは以下の方法が選べます。
その他にもいくつかありますが、
今回は上記の内、「brewによるインストール」を試してみます。
続きは
1. 最初のトライアル
まずは、何も考えずにTerminal.appからinstallしてみました。
結果は、失敗に・・・
% brew install wine
==> Installing dependencies for wine: pkg-config, xz, libpng, freetype, j
==> Installing wine dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-
######################################################################## 100.0%
==> Pouring pkg-config-0.28.mavericks.bottle.2.tar.gz
/usr/local/Cellar/pkg-config/0.28: 10 files, 604K
==> Installing wine dependency: xz
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/xz-5.0.7.ma
######################################################################## 100.0%
==> Pouring xz-5.0.7.mavericks.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/lzma
/usr/local/include is not writable.
You can try again using:
brew link xz
==> Summary
/usr/local/Cellar/xz/5.0.7: 58 files, 1.5M
==> Installing wine dependency: libpng
==> Downloading https://downloads.sf.net/project/libpng/libpng16/1.6.13/libpng-1
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libpng/1.6.13
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/libpng16
/usr/local/include is not writable.
You can try again using:
brew link libpng
==> Summary
/usr/local/Cellar/libpng/1.6.13: 17 files, 1.7M, built in 41 seconds
==> Installing wine dependency: freetype
==> Downloading https://downloads.sf.net/project/freetype/freetype2/2.5.3/freetype-2.5.3.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/freetype/2.5.3_1 --without-harfbuzz
==> make
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/freetype2
/usr/local/include is not writable.
You can try again using:
brew link freetype
==> Summary
/usr/local/Cellar/freetype/2.5.3_1: 60 files, 3.6M, built in 54 seconds
==> 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
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/jconfig.h
/usr/local/include is not writable.
You can try again using:
brew link jpeg
==> Summary
/usr/local/Cellar/jpeg/8d: 18 files, 1.3M, built in 45 seconds
==> Installing wine dependency: libtool
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
######################################################################## 100.0%
==> Patching
patching file libltdl/config/ltmain.sh
patching file configure
patching file libltdl/configure
patching file libltdl/m4/libtool.m4
==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.2 --program-prefix=g --enable-ltdl-install
==> make install
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/libltdl
/usr/local/include is not writable.
You can try again using:
brew link libtool
==> Summary
/usr/local/Cellar/libtool/2.4.2: 69 files, 2.6M, built in 101 seconds
==> Installing wine dependency: libusb
==> Downloading https://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.19/libusb-1
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libusb/1.0.19
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/libusb-1.0
/usr/local/include is not writable.
You can try again using:
brew link libusb
==> Summary
/usr/local/Cellar/libusb/1.0.19: 11 files, 584K, built in 38 seconds
==> Installing wine dependency: libusb-compat
==> Downloading https://downloads.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-0
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libusb-compat/0.1.5
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/usb.h
/usr/local/include is not writable.
You can try again using:
brew link libusb-compat
==> Summary
/usr/local/Cellar/libusb-compat/0.1.5: 12 files, 172K, built in 29 seconds
==> Installing wine dependency: fontconfig
==> Downloading http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2
######################################################################## 100.0%
==> Patching
patching file fc-cache/fc-cache.c
patching file fontconfig/fontconfig.h
patching file src/fccache.c
patching file src/fcdir.c
patching file src/fcfs.c
patching file src/fcint.h
patching file src/fcpat.c
==> ./configure --disable-silent-rules --with-add-fonts=/System/Library/Fonts,/Library/Fonts,~/Lib
==> make install RUN_FC_CACHE_TEST=false
make[3]: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644 10-autohint.conf 10-no-sub-pixel.conf 10-scale-bitmap-fonts.conf 10-sub-pixel-bgr.conf 10-sub-pixel-rgb.conf 10-sub-pixel-vbgr.conf 10-sub-pixel-vrgb.conf 10-unhinted.conf 11-lcdfilter-default.conf 11-lcdfilter-legacy.conf 11-lcdfilter-light.conf 20-unhint-small-vera.conf 25-unhint-nonlatin.conf 30-urw-aliases.conf 30-metric-aliases.conf 40-nonlatin.conf 45-latin.conf 49-sansserif.conf 50-user.conf 51-local.conf 60-latin.conf 65-fonts-persian.conf 65-khmer.conf 65-nonlatin.conf 69-unifont.conf 70-no-bitmaps.conf 70-yes-bitmaps.conf 80-delicious.conf 90-synthetic.conf '/usr/local/Cellar/fontconfig/2.11.1/share/fontconfig/conf.avail'
make[2]: *** [install-am] Error 2
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
%
2. やり直しと事前準備
あらためて、sudoでインストール。
% brew uninstall wine
Error: No such keg: /usr/local/Cellar/wine
[macbookpro:~] chamarnkahn% sudo brew install wine
Password:
Error: You must `brew link xz libpng freetype jpeg libtool libusb libusb-compat' before wine can be installed
%
すると、インストール前に「brew link ・・・を実行せよ」
とのことなので、まずは、linkを実行します。
% sudo brew link xz libpng freetype jpeg libtool libusb libusb-compat
Linking /usr/local/Cellar/xz/5.0.7... 53 symlinks created
Linking /usr/local/Cellar/libpng/1.6.13... 18 symlinks created
Linking /usr/local/Cellar/freetype/2.5.3_1... 8 symlinks created
Linking /usr/local/Cellar/jpeg/8d... 17 symlinks created
Linking /usr/local/Cellar/libtool/2.4.2... 20 symlinks created
Linking /usr/local/Cellar/libusb/1.0.19... 5 symlinks created
Linking /usr/local/Cellar/libusb-compat/0.1.5... 6 symlinks created
%
以上が事前準備。
いよいよ、wine本体のインストールです。
3. 再度インストール実行
今度は、忘れずにsudoでインストールしました。
ちなみに、インストール時間は意外と長め。
ちゃんと計測しておりませんでしたが、1時間くらいはかかったと思います。
終わるまでコーヒーブレイクでも・・・
( *´∇`)_旦~~
長かった・・・・
ソフトのインストールは、また今度にしましょ。
ここまでの手順が面倒だな〜
という方は、以下のソフトを使えば苦無く実現可能ですね・・・(,, ゚Д゚)
% sudo brew install wine
==> Installing dependencies for wine: fontconfig, libtiff, gd, libgphoto2, little-cms2, jas
==> Installing wine dependency: fontconfig
==> Downloading http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2
Already downloaded: /Library/Caches/Homebrew/fontconfig-2.11.1.tar.bz2
==> Patching
patching file fc-cache/fc-cache.c
patching file fontconfig/fontconfig.h
patching file src/fccache.c
patching file src/fcdir.c
patching file src/fcfs.c
patching file src/fcint.h
patching file src/fcpat.c
==> ./configure --disable-silent-rules --with-add-fonts=/System/Library/Fonts,/Library/Fonts,~/Lib
==> make install RUN_FC_CACHE_TEST=false
==> /usr/local/Cellar/fontconfig/2.11.1/bin/fc-cache -frv
/usr/local/Cellar/fontconfig/2.11.1: 448 files, 4.0M, built in 3.9 minutes
==> Installing wine dependency: libtiff
==> Downloading ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-lzma --with-jpeg-in
==> make install
/usr/local/Cellar/libtiff/4.0.3: 254 files, 5.5M, built in 110 seconds
==> Installing wine dependency: gd
==> Downloading https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gd/2.1.0_2 --with-png=/usr/local/opt/libpng --with-font
==> make install
/usr/local/Cellar/gd/2.1.0_2: 33 files, 2.3M, built in 64 seconds
==> Installing wine dependency: libgphoto2
==> Downloading https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.5/libgphoto2-2.5.5.
######################################################################## 100.0%
==> Downloading http://sourceforge.net/p/gphoto/bugs/_discuss/thread/e52254c4/a5b3/attachment/xx.p
######################################################################## 100.0%
==> Patching
patching file libgphoto2_port/gphoto2/gphoto2-port-log.h
==> ./configure --prefix=/usr/local/Cellar/libgphoto2/2.5.5 CFLAGS=-D_DARWIN_C_SOURCE
==> make install
/usr/local/Cellar/libgphoto2/2.5.5: 165 files, 7.5M, built in 4.1 minutes
==> Installing wine dependency: little-cms2
==> Downloading https://downloads.sourceforge.net/project/lcms/lcms/2.6/lcms2-2.6.tar.gz
######################################################################## 100.0%
tar: copyfile unpack (lcms2-2.6/Projects/mac/LittleCMS/.DS_Store) failed: File exists
tar: copyfile unpack (lcms2-2.6/Projects/mac/.DS_Store) failed: File exists
==> ./configure --prefix=/usr/local/Cellar/little-cms2/2.6
==> make install
/usr/local/Cellar/little-cms2/2.6: 16 files, 1.9M, built in 91 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/Cell
==> make install
/usr/local/Cellar/jasper/1.900.1: 35 files, 1.6M, built in 2.7 minutes
==> Installing wine dependency: libicns
==> Downloading https://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1_1
==> make install
/usr/local/Cellar/libicns/0.8.1_1: 17 files, 464K, built in 57 seconds
==> Installing wine dependency: makedepend
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/makedepend-1.0.5.mavericks.bo
######################################################################## 100.0%
==> Pouring makedepend-1.0.5.mavericks.bottle.tar.gz
/usr/local/Cellar/makedepend/1.0.5: 7 files, 92K
==> Installing wine dependency: openssl
==> Downloading https://www.openssl.org/source/openssl-1.0.1j.tar.gz
######################################################################## 100.0%
==> make clean
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1j --openssldir=/usr/local/etc/openssl
==> make depend
==> make
==> make test
==> make clean
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1j --openssldir=/usr/local/etc/openssl
==> make depend
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1j/share/man MANSUFFIX=ssl
==> lipo -create build-i386/libcrypto.1.0.0.dylib build-x86_64/libcrypto.1.0.0.dylib -output /usr/
==> lipo -create build-i386/libcrypto.a build-x86_64/libcrypto.a -output /usr/local/Cellar/openssl
==> lipo -create build-i386/libssl.1.0.0.dylib build-x86_64/libssl.1.0.0.dylib -output /usr/local/
==> lipo -create build-i386/libssl.a build-x86_64/libssl.a -output /usr/local/Cellar/openssl/1.0.1
==> lipo -create build-i386/engines/lib4758cca.dylib build-x86_64/engines/lib4758cca.dylib -output
==> lipo -create build-i386/engines/libaep.dylib build-x86_64/engines/libaep.dylib -output /usr/lo
==> lipo -create build-i386/engines/libatalla.dylib build-x86_64/engines/libatalla.dylib -output /
==> lipo -create build-i386/engines/libcapi.dylib build-x86_64/engines/libcapi.dylib -output /usr/
==> lipo -create build-i386/engines/libchil.dylib build-x86_64/engines/libchil.dylib -output /usr/
==> lipo -create build-i386/engines/libcswift.dylib build-x86_64/engines/libcswift.dylib -output /
==> lipo -create build-i386/engines/libgmp.dylib build-x86_64/engines/libgmp.dylib -output /usr/lo
==> lipo -create build-i386/engines/libgost.dylib build-x86_64/engines/libgost.dylib -output /usr/
==> lipo -create build-i386/engines/libnuron.dylib build-x86_64/engines/libnuron.dylib -output /us
==> lipo -create build-i386/engines/libpadlock.dylib build-x86_64/engines/libpadlock.dylib -output
==> lipo -create build-i386/engines/libsureware.dylib build-x86_64/engines/libsureware.dylib -outp
==> lipo -create build-i386/engines/libubsec.dylib build-x86_64/engines/libubsec.dylib -output /us
==> lipo -create build-i386/openssl build-x86_64/openssl -output /usr/local/Cellar/openssl/1.0.1j/
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
==> Summary
/usr/local/Cellar/openssl/1.0.1j: 431 files, 20M, built in 13.2 minutes
==> Installing wine dependency: sane-backends
==> Downloading http://fossies.org/linux/misc/sane-backends-1.0.24.tar.gz
######################################################################## 100.0%
==> Patching
patching file include/sane/sane.h
==> ./configure --prefix=/usr/local/Cellar/sane-backends/1.0.24_1 --localstatedir=/usr/local/var -
==> make
==> make install
/usr/local/Cellar/sane-backends/1.0.24_1: 337 files, 20M, built in 8.7 minutes
==> Installing wine
==> Downloading https://downloads.sourceforge.net/project/wine/Source/wine-1.6.2.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/wine/1.6.2 --without-mpg123
==> make install
==> Downloading https://downloads.sourceforge.net/wine/wine_gecko-2.21-x86.msi
######################################################################## 100.0%
==> Downloading https://downloads.sourceforge.net/wine/wine-mono-0.0.8.msi
######################################################################## 100.0%
==> Caveats
You may want to get winetricks:
brew install winetricks
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". See:
http://bugs.winehq.org/show_bug.cgi?id=31374
By default Wine uses a native Mac driver. To switch to the X11 driver, use
regedit to set the "graphics" key under "HKCUSoftwareWineDrivers" to
"x11" (or use winetricks).
For best results with X11, install the latest version of XQuartz:
http://xquartz.macosforge.org/
==> Summary
/usr/local/Cellar/wine/1.6.2: 2057 files, 196M, built in 20.7 minutes
%
%
ソフトのインストールは、また今度にしましょ。
ここまでの手順が面倒だな〜
という方は、以下のソフトを使えば苦無く実現可能ですね・・・(,, ゚Д゚)
0 件のコメント:
コメントを投稿