I'm a tree and wating for the spring!

【原创】MacOS10.10使用brew安装wine

★作者:桐星豆博客   |  ★类别: MacOS   |  ★发布时间: 2015-07-29 22:34   |  ★更新时间: 2015-08-09 17:24   |  ★浏览次数:3746   |  ★ 评论(0)

1、Homebrew的安装教程请点击这里

2、Homebrew自检:

brew doctor

运行过程如下:


localhost:~ Star$ brew doctor

Your system is ready to brew.


3、安装wine

brew install wine

运行过程如下:


StardeMacBook-Pro:~ Star$ brew install wine

wine: XQuartz is required to install this formula.

You can install with Homebrew Cask:

  brew install Caskroom/cask/xquartz


You can download from:

  https://xquartz.macosforge.org

Error: An unsatisfied requirement failed this build.


好吧,出错了,我们根据提示,运行命令:

brew install Caskroom/cask/xquartz


运行过程如下:


StardeMacBook-Pro:~ Star$ brew install Caskroom/cask/xquartz

==> brew cask install Caskroom/cask/xquartz

==> Downloading https://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.7.dmg

######################################################################## 100.0%

==> Running installer for xquartz; your password may be necessary.

==> Package installers may write to any location; options such as --appdir are i

Password:


==> installer: Package name is XQuartz 2.7.7

==> installer: Installing at base path /

==> installer: The install was successful.

  xquartz staged at '/opt/homebrew-cask/Caskroom/xquartz/2.7.7' (64M)



再次安装wine

brew install wine


安装的时间比较长,过程如下:


StardeMacBook-Pro:~ Star$ brew install wine

==> Installing dependencies for wine: xz, libpng, freetype, jpeg, pkg-con

==> Installing wine dependency: xz

==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.1.yosemite.bottle.ta

######################################################################## 100.0%

==> Pouring xz-5.2.1.yosemite.bottle.tar.gz

  /usr/local/Cellar/xz/5.2.1: 59 files, 1.7M

==> Installing wine dependency: libpng

==> Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1

######################################################################## 100.0%

==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libpng/1.6.18

==> make

==> make test

==> make install

  /usr/local/Cellar/libpng/1.6.18: 17 files, 1.7M, built in 111 seconds

==> Installing wine dependency: freetype

==> Downloading https://downloads.sf.net/project/freetype/freetype2/2.6/freetype

==> Downloading from http://jaist.dl.sourceforge.net/project/freetype/freetype2/

######################################################################## 100.0%

==> Downloading https://gist.githubusercontent.com/anonymous/b47d77c41a6801879fd

######################################################################## 100.0%

==> Patching

patching file builds/unix/ftconfig.in

patching file include/config/ftconfig.h

patching file include/internal/ftobjs.h

patching file src/autofit/afwarp.h

==> ./configure --prefix=/usr/local/Cellar/freetype/2.6_1 --without-harfbuzz

==> make

==> make install

  /usr/local/Cellar/freetype/2.6_1: 60 files, 3.7M, built in 39 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

  /usr/local/Cellar/jpeg/8d: 18 files, 1.3M, built in 24 seconds

==> Installing wine dependency: pkg-config

==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.28.yosemite.bo

######################################################################## 100.0%

==> Pouring pkg-config-0.28.yosemite.bottle.2.tar.gz

  /usr/local/Cellar/pkg-config/0.28: 10 files, 612K

==> Installing wine dependency: libtool

==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz

==> Downloading from http://mirrors.ustc.edu.cn/gnu/libtool/libtool-2.4.6.tar.xz

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.6 --program-prefix=g --en

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

==> Summary

  /usr/local/Cellar/libtool/2.4.6: 69 files, 3.9M, built in 26 seconds

==> Installing wine dependency: libusb

==> Downloading https://downloads.sourceforge.net/project/libusb/libusb-1.0/libu

==> Downloading from http://nchc.dl.sourceforge.net/project/libusb/libusb-1.0/li

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/libusb/1.0.19

==> make install

  /usr/local/Cellar/libusb/1.0.19: 11 files, 520K, built in 29 seconds

==> Installing wine dependency: libusb-compat

==> Downloading https://downloads.sourceforge.net/project/libusb/libusb-compat-0

==> Downloading from http://jaist.dl.sourceforge.net/project/libusb/libusb-compa

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/libusb-compat/0.1.5

==> make install

  /usr/local/Cellar/libusb-compat/0.1.5: 12 files, 172K, built in 27 seconds

==> Installing wine dependency: fontconfig

==> Downloading http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2

==> Downloading from http://www.freedesktop.org/software/fontconfig/release/font

######################################################################## 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,/L

==> 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 2.4 minutes

==> Installing wine dependency: libtiff

==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.4.tar.gz

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.4 --without-x --disable-l

==> make install

  /usr/local/Cellar/libtiff/4.0.4: 257 files, 5.6M, built in 52 seconds

==> Installing wine dependency: gd

==> Downloading https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.1.tar.x

==> Downloading from https://bbuseruploads.s3.amazonaws.com/libgd/gd-libgd/downl

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/gd/2.1.1 --with-png=/usr/local/opt/li

==> make install

  /usr/local/Cellar/gd/2.1.1: 34 files, 2.2M, built in 58 seconds

==> Installing wine dependency: libgphoto2

==> Downloading https://fossies.org/linux/privat/libgphoto2-2.5.8.tar.bz2

######################################################################## 100.0%

==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgphoto2/2.5

==> make install

  /usr/local/Cellar/libgphoto2/2.5.8: 164 files, 7.6M, built in 3.3 minutes

==> Installing wine dependency: little-cms2

==> Downloading https://downloads.sourceforge.net/project/lcms/lcms/2.7/lcms2-2.

==> Downloading from http://jaist.dl.sourceforge.net/project/lcms/lcms/2.7/lcms2

######################################################################## 100.0%

tar: copyfile unpack (lcms2-2.7/Projects/mac/LittleCMS/.DS_Store) failed: File exists

tar: copyfile unpack (lcms2-2.7/Projects/mac/.DS_Store) failed: File exists

==> ./configure --prefix=/usr/local/Cellar/little-cms2/2.7

==> make install

  /usr/local/Cellar/little-cms2/2.7: 16 files, 1.9M, built in 50 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 --mand

==> make install

  /usr/local/Cellar/jasper/1.900.1: 35 files, 1.6M, built in 55 seconds

==> Installing wine dependency: libicns

==> Downloading https://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar

==> Downloading from http://jaist.dl.sourceforge.net/project/icns/libicns-0.8.1.

######################################################################## 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 23 seconds

==> Installing wine dependency: makedepend

==> Downloading https://homebrew.bintray.com/bottles/makedepend-1.0.5.yosemite.b

######################################################################## 100.0%

==> Pouring makedepend-1.0.5.yosemite.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.2d.tar.gz

######################################################################## 100.0%

==> make clean

==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2d_1 --openssldir=/u

==> make depend

==> make

==> make test

==> make clean

==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2d_1 --openssldir=/u

==> make depend

==> make

==> make test

==> make install MANDIR=/usr/local/Cellar/openssl/1.0.2d_1/share/man MANSUFFIX=s

==> lipo -create build-i386/libcrypto.1.0.0.dylib build-x86_64/libcrypto.1.0.0.d

==> lipo -create build-i386/libcrypto.a build-x86_64/libcrypto.a -output /usr/lo

==> lipo -create build-i386/libssl.1.0.0.dylib build-x86_64/libssl.1.0.0.dylib -

==> lipo -create build-i386/libssl.a build-x86_64/libssl.a -output /usr/local/Ce

==> lipo -create build-i386/engines/lib4758cca.dylib build-x86_64/engines/lib475

==> lipo -create build-i386/engines/libaep.dylib build-x86_64/engines/libaep.dyl

==> lipo -create build-i386/engines/libatalla.dylib build-x86_64/engines/libatal

==> lipo -create build-i386/engines/libcapi.dylib build-x86_64/engines/libcapi.d

==> lipo -create build-i386/engines/libchil.dylib build-x86_64/engines/libchil.d

==> lipo -create build-i386/engines/libcswift.dylib build-x86_64/engines/libcswi

==> lipo -create build-i386/engines/libgmp.dylib build-x86_64/engines/libgmp.dyl

==> lipo -create build-i386/engines/libgost.dylib build-x86_64/engines/libgost.d

==> lipo -create build-i386/engines/libnuron.dylib build-x86_64/engines/libnuron

==> lipo -create build-i386/engines/libpadlock.dylib build-x86_64/engines/libpad

==> lipo -create build-i386/engines/libsureware.dylib build-x86_64/engines/libsu

==> lipo -create build-i386/engines/libubsec.dylib build-x86_64/engines/libubsec

==> lipo -create build-i386/openssl build-x86_64/openssl -output /usr/local/Cell

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


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.2d_1: 464 files, 23M, built in 9.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 --localstatedi

==> make

==> make install

  /usr/local/Cellar/sane-backends/1.0.24_1: 337 files, 20M, built in 3.5 minutes

==> Installing wine

==> Downloading https://homebrew.bintray.com/bottles/wine-1.6.2.yosemite.bottle.

#########                                                                 13.3%

curl: (56) SSLRead() return error -9806

Error: Failed to download resource "wine"

Download failed: https://homebrew.bintray.com/bottles/wine-1.6.2.yosemite.bottle.tar.gz

Warning: Bottle installation failed: building from source.

==> Downloading https://downloads.sourceforge.net/project/wine/Source/wine-1.6.2

==> Downloading from http://jaist.dl.sourceforge.net/project/wine/Source/wine-1.

######################################################################## 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

==> Downloading from http://jaist.dl.sourceforge.net/project/wine/Wine%20Gecko/2

######################################################################## 100.0%

==> Downloading https://downloads.sourceforge.net/wine/wine-mono-0.0.8.msi

==> Downloading from http://jaist.dl.sourceforge.net/project/wine/Wine%20Mono/0.

######################################################################## 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:

  https://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:

  https://xquartz.macosforge.org/

==> Summary

  /usr/local/Cellar/wine/1.6.2: 2057 files, 196M, built in 14.0 minutes


请尊重他人的劳动果实,转载时务必注明出处! 请尊重他人的劳动果实,转载时务必注明出处!
转载请注明:文章转载自:桐星豆博客 [http://blog.txdou.com]
本文标题:【原创】MacOS10.10使用brew安装wine
本文地址:http://blog.txdou.com/article111
分享到QQ空间 分享到腾讯朋友

  • 注意:“桐星豆博客”只会以“回复”的身份出现,不会以“咨询”的身份出现在留言或评论中,凡是以“咨询”的身份出现的留言或评论均为他人盗用!
  • 本站用以回复网友评论的唯一名称是“桐星豆博客”,除此外均无效,网友不得用此名进行相应文章的评论或回复!
  • 用户言论只代表其个人观点,不代表桐星豆博客的观点或立场!
  • 非诚勿扰,请友好如实的评论,杜绝谩骂、人格攻击等一切伤人言论,请严格遵循中华人民共和国法律法规!
  • 桐星豆博客拥有最终解释权,如有网友违规,本站将有权删除或屏蔽违规评论,情节严重者账户加入黑名单、永久封IP并报司法部门严惩!
  • 您一旦参与评论本站则默认为您已经同意以上条款,否则“非诚勿扰”,谢谢合作!

您的姓名或昵称: 选填
您的E-Mail地址: ☆必填--仅站长可见
您个人网站地址: 选填 ( 如果填写,请务必加上 http:// 或 https:// 等等 )
留言内容:

验证码: 点击重新生成验证码  [ ctrl + enter ]

CopyRight © 2009-2020 by 桐星豆博客 All Rights Reserved.