Mavericksでbrew upgradeしたらハマった話

beer 開発ツール

最初に結論を書くと正しいトラブルシューティングが公式にあります
この通りにやればハマることはないと思います
そうでもなかったです、部分的に激ハマリです\(^o^)/

brew update — then try again.
brew doctor — the doctor diagnoses common issues.
Try using the old environment, e.g. brew install –env=std graphviz.
If you’re installing something Java-related, maybe you need the Java Developer Update?
Check that Xcode and/or the “Command Line Tools for Xcode” (CLT) are up to date*
If things fail with permissions errors you should check the permissions in /usr/local. If you’re unsure what to do, you can:

Troubleshooting · mxcl/homebrew Wiki · GitHub

Command Line Tools for Xcodeはここからダウンロード->インストールします
Sign in with your Apple ID – Apple Developer

さてハマった話です

brew updateでハマる

~~~
$ brew update

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

Error: Failure while executing: git checkout -q master
~~~

最初sudoでやんなきゃいけないのかな?って思いましたが違うみたいです

XcodeをAppstoreからアップデートしても、インストールはされていないので
一度起動->インストールします

Welcome to Xcodeが表示されたら再びbrew updateします

~~~
$ brew update
Updated Homebrew from 1a6f9110 to 7c6acdf0.
==> Updated Formulae
ettercap graphicsmagick imagemagick
~~~

これでupgradeする準備が出来ました

brew upgrade

~~~
$ brew upgrade
==> Upgrading 24 outdated packages, with result:
ack 2.10, automake 1.14, cairo 1.12.16, fontforge 20120731, gettext 0.18.3.1, git 1.8.4.1, git-ftp 0.8.4, glib 2.38.1, imagemagick 6.8.7-0, libffi 3.0.13, libtiff 4.0.3, neon 0.30.0, pango 1.36.0, pcre 8.33, pixman 0.30.2, postgresql 9.3.1, potrace 1.11, ruby 2.0.0-p247, serf 1.3.2, sqlite 3.8.0.2, subversion 1.8.3, the_silver_searcher 0.16, wget 1.14, z 1.8
==> Upgrading ack
==> Downloading http://beyondgrep.com/ack-2.10-single-file
######################################################################## 100.0%
==> pod2man /usr/local/Cellar/ack/2.10/bin/ack ack.1
/usr/local/Cellar/ack/2.10: 3 files, 184K, built in 3 seconds
==> Upgrading automake
==> Downloading http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/automake/1.14
==> make install
/usr/local/Cellar/automake/1.14: 127 files, 2.5M, built in 28 seconds
==> Upgrading cairo
==> Installing dependencies for cairo: xz, libpng, pixman, gettext, libffi, glib
==> Installing cairo dependency: xz
==> Downloading http://fossies.org/linux/misc/xz-5.0.5.tar.gz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/xz/5.0.5
==> make install
/usr/local/Cellar/xz/5.0.5: 58 files, 1.5M, built in 65 seconds
==> Installing cairo dependency: libpng
==> Downloading http://downloads.sf.net/project/libpng/libpng15/older-releases/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.0M, built in 30 seconds
==> Installing cairo dependency: pixman
==> Downloading http://cairographics.org/releases/pixman-0.30.2.tar.gz
######################################################################## 100.0%
==> ./configure –disable-gtk –prefix=/usr/local/Cellar/pixman/0.30.2 –disable-mmx
==> make install
/usr/local/Cellar/pixman/0.30.2: 11 files, 1.2M, built in 50 seconds
==> Installing cairo dependency: gettext
==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.18.3.1.tar.gz
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file gettext-tools/Makefile.in
Hunk #1 succeeded at 1551 (offset 51 lines).
==> ./configure –prefix=/usr/local/Cellar/gettext/0.18.3.1 –with-included-gettext –with-included-glib –with-includ
==> make
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

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/gettext/lib
CPPFLAGS: -I/usr/local/opt/gettext/include

==> Summary
/usr/local/Cellar/gettext/0.18.3.1: 374 files, 12M, built in 17.9 minutes
==> Installing cairo dependency: libffi
==> Downloading http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.13.tar.gz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/libffi/3.0.13
==> make install
==> Caveats
This formula is keg-only: so 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.

Some formulae require a newer version of libffi.

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/libffi/lib

==> Summary
/usr/local/Cellar/libffi/3.0.13: 13 files, 388K, built in 31 seconds
==> Installing cairo dependency: glib
==> Downloading http://ftp.gnome.org/pub/gnome/sources/glib/2.38/glib-2.38.1.tar.xz
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file aclocal.m4
Hunk #1 succeeded at 1580 (offset 15 lines).
patching file config.h.in
patching file configure
Hunk #2 succeeded at 27731 (offset 35 lines).
patching file configure.ac
Hunk #1 succeeded at 2683 (offset 1 line).
patching file gio/gdbusprivate.c
patching file gio/xdgmime/xdgmime.c
patching file gio/Makefile.am
patching file gio/Makefile.in
patching file gio/gnextstepsettingsbackend.c
patching file gio/gnextstepsettingsbackend.m
==> ./configure –disable-maintainer-mode –disable-silent-rules –disable-dtrace –disable-modular-tests –disable-li
==> make
==> make install
/usr/local/Cellar/glib/2.38.1: 413 files, 16M, built in 5.4 minutes
==> Installing cairo
==> Downloading http://cairographics.org/releases/cairo-1.12.16.tar.xz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/cairo/1.12.16 –with-x –enable-gobject=yes
==> make install
/usr/local/Cellar/cairo/1.12.16: 105 files, 7.6M, built in 4.2 minutes
==> Upgrading fontforge
==> Installing dependencies for fontforge: libtiff, freetype, fontconfig
==> Installing fontforge 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-include-dir=/usr/local
==> make install
/usr/local/Cellar/libtiff/4.0.3: 254 files, 3.8M, built in 74 seconds
==> Installing fontforge dependency: freetype
==> Downloading http://downloads.sf.net/project/freetype/freetype2/2.5.0/freetype-2.5.0.1.tar.gz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/freetype/2.5.0.1
==> make
==> make install
/usr/local/Cellar/freetype/2.5.0.1: 59 files, 2.6M, built in 43 seconds
==> Installing fontforge dependency: fontconfig
==> Downloading http://fontconfig.org/release/fontconfig-2.10.95.tar.bz2
######################################################################## 100.0%
==> ./configure –with-add-fonts=/Library/Fonts,~/Library/Fonts –prefix=/usr/local/Cellar/fontconfig/2.10.95
==> make install
/usr/local/Cellar/fontconfig/2.10.95: 447 files, 5.1M, built in 4.9 minutes
==> Installing fontforge
==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20120731-b.tar.bz2
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file fontforge/startui.c
Hunk #1 succeeded at 50 with fuzz 2.
==> ./configure –prefix=/usr/local/Cellar/fontforge/20120731 –enable-double –without-freetype-bytecode –without-ca
==> make
==> make install
/usr/local/Cellar/fontforge/20120731: 362 files, 12M, built in 102 seconds
==> Upgrading git
==> Downloading http://git-core.googlecode.com/files/git-1.8.4.1.tar.gz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.8.4.1 sysconfdir=/usr/local/etc CC=cc CFLAGS= LDFLAGS= install
==> make CC=cc CFLAGS= LDFLAGS=
==> make clean
==> make CC=cc CFLAGS= LDFLAGS=
==> Downloading http://git-core.googlecode.com/files/git-manpages-1.8.4.1.tar.gz
######################################################################## 100.0%
==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.8.4.1.tar.gz
######################################################################## 100.0%
==> Caveats
The OS X keychain credential helper has been installed to:
/usr/local/bin/git-credential-osxkeychain

The ‘contrib’ directory has been installed to:
/usr/local/share/git-core/contrib

Bash completion has been installed to:
/usr/local/etc/bash_completion.d

zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
/usr/local/Cellar/git/1.8.4.1: 1341 files, 29M, built in 101 seconds
==> Upgrading git-ftp
==> Downloading https://github.com/git-ftp/git-ftp/archive/0.8.4.tar.gz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git-ftp/0.8.4 install
/usr/local/Cellar/git-ftp/0.8.4: 6 files, 84K, built in 5 seconds
==> Upgrading imagemagick
==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.8.7-0.tar.bz2
######################################################################## 100.0%
==> ./configure –disable-osx-universal-binary –prefix=/usr/local/Cellar/imagemagick/6.8.7-0 –enable-shared –disabl
==> make install
/usr/local/Cellar/imagemagick/6.8.7-0: 1437 files, 21M, built in 6.1 minutes
==> Upgrading neon
==> Downloading http://www.webdav.org/neon/neon-0.30.0.tar.gz
######################################################################## 100.0%
==> Patching
patching file configure
==> ./configure –prefix=/usr/local/Cellar/neon/0.30.0 –enable-shared –disable-static –disable-nls –with-ssl
==> make install
==> Caveats
This formula is keg-only: so 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.

Compiling newer versions of Subversion on 10.6 require this newer neon.

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/neon/lib
CPPFLAGS: -I/usr/local/opt/neon/include

==> Summary
/usr/local/Cellar/neon/0.30.0: 178 files, 1.4M, built in 49 seconds
==> Upgrading pango
==> Installing dependencies for pango: icu4c, harfbuzz, gobject-introspection
==> Installing pango dependency: icu4c
==> Downloading http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/icu4c/52.1 –disable-samples –disable-tests –enable-static –with-library
==> make
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.

Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167

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/icu4c/lib
CPPFLAGS: -I/usr/local/opt/icu4c/include

==> Summary
/usr/local/Cellar/icu4c/52.1: 239 files, 60M, built in 4.8 minutes
==> Installing pango dependency: harfbuzz
==> Downloading http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.21.tar.bz2
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/harfbuzz/0.9.21 –with-icu
==> make install
/usr/local/Cellar/harfbuzz/0.9.21: 70 files, 2.8M, built in 45 seconds
==> Installing pango dependency: gobject-introspection
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.38/gobject-introspection-1.38.0.tar.xz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/gobject-introspection/1.38.0
==> make
==> make install
/usr/local/Cellar/gobject-introspection/1.38.0: 207 files, 9.9M, built in 87 seconds
==> Installing pango
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.0.tar.xz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/pango/1.36.0 –enable-man –with-html-dir=/usr/local/Cellar/pango/1.36.0/sh
==> make
==> make install
/usr/local/Cellar/pango/1.36.0: 130 files, 4.5M, built in 73 seconds
==> Upgrading pcre
==> Downloading ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.bz2
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/pcre/8.33 –enable-utf8 –enable-unicode-properties –enable-pcregrep-libz
==> make
==> make test
==> make install
/usr/local/Cellar/pcre/8.33: 140 files, 4.1M, built in 81 seconds
==> Upgrading postgresql
==> Downloading http://ftp.postgresql.org/pub/source/v9.3.1/postgresql-9.3.1.tar.bz2
######################################################################## 100.0%
==> Patching
patching file contrib/uuid-ossp/uuid-ossp.c
==> ./configure –prefix=/usr/local/Cellar/postgresql/9.3.1 –datadir=/usr/local/Cellar/postgresql/9.3.1/share/postgre
checking for POSIX signal interface… yes
checking for working memcmp… yes
checking for tclsh… /usr/bin/tclsh
checking for tclConfig.sh… no
configure: error: file ‘tclConfig.sh’ is required for Tcl

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
https://github.com/mxcl/homebrew/issues/23440
https://github.com/mxcl/homebrew/issues/23178

==> Upgrading potrace
==> Downloading http://potrace.sourceforge.net/download/potrace-1.11.tar.gz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/potrace/1.11 –mandir=/usr/local/Cellar/potrace/1.11/share/man –with-libpo
==> make install
/usr/local/Cellar/potrace/1.11: 14 files, 308K, built in 24 seconds
==> Upgrading ruby
==> Installing ruby dependency: openssl
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
######################################################################## 100.0%
==> perl ./Configure –prefix=/usr/local/Cellar/openssl/1.0.1e –openssldir=/usr/local/etc/openssl zlib-dynamic shared
==> make depend
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1e/share/man MANSUFFIX=ssl
==> security find-certificate -a -p /Library/Keychains/System.keychain > ‘/usr/local/etc/openssl/osx_cert.pem.tmp’
==> security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> ‘/usr/local/etc/opens
==> mv -f /usr/local/etc/openssl/osx_cert.pem.tmp /usr/local/etc/openssl/osx_cert.pem
==> Caveats
This formula is keg-only: so 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.

The OpenSSL provided by OS X is too old for some software.

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.1e: 429 files, 15M, built in 5.2 minutes
==> Installing ruby
==> Downloading http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.bz2
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/ruby/2.0.0-p247 –enable-shared –with-out-ext=tk –disable-install-doc –w
==> make
==> make install
==> Caveats
NOTE: By default, gem installed binaries will be placed into:
/usr/local/opt/ruby/bin

You may want to add this to your PATH.
==> Summary
/usr/local/Cellar/ruby/2.0.0-p247: 877 files, 19M, built in 7.2 minutes
==> Upgrading serf
==> Installing dependencies for serf: sqlite, scons
==> Installing serf dependency: sqlite
==> Downloading http://www.sqlite.org/2013/sqlite-autoconf-3080002.tar.gz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/sqlite/3.8.0.2 –enable-dynamic-extensions
==> make install
==> Caveats
This formula is keg-only: so 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.

OS X provides an older sqlite3.

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/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include

==> Summary
/usr/local/Cellar/sqlite/3.8.0.2: 9 files, 1.9M, built in 47 seconds
==> Installing serf dependency: scons
==> Downloading http://downloads.sourceforge.net/scons/scons-2.3.0.tar.gz
######################################################################## 100.0%
==> /usr/bin/python setup.py install –prefix=/usr/local/Cellar/scons/2.3.0 –standalone-lib –install-data=/usr/local
/usr/local/Cellar/scons/2.3.0: 395 files, 4.2M, built in 15 seconds
==> Installing serf
==> Downloading http://serf.googlecode.com/files/serf-1.3.2.tar.bz2
######################################################################## 100.0%
==> scons PREFIX=/usr/local/Cellar/serf/1.3.2 GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused
#include
^
1 error generated.
scons: *** [context.o] Error 1
scons: building terminated because of errors.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
https://github.com/mxcl/homebrew/pull/21449

==> Upgrading subversion
Warning: Could not link serf. Unlinking…
==> Upgrading the_silver_searcher
==> Downloading https://github.com/ggreer/the_silver_searcher/archive/0.16.tar.gz
######################################################################## 100.0%
==> aclocal -I /usr/local/share/aclocal
==> autoconf
==> autoheader
==> automake –add-missing
==> ./configure –prefix=/usr/local/Cellar/the_silver_searcher/0.16
==> make
==> make install
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/the_silver_searcher/0.16: 8 files, 100K, built in 15 seconds
==> Upgrading wget
==> Downloading http://ftpmirror.gnu.org/wget/wget-1.14.tar.gz
######################################################################## 100.0%
==> ./configure –prefix=/usr/local/Cellar/wget/1.14 –sysconfdir=/usr/local/etc –with-ssl=openssl –disable-iri
==> make install
/usr/local/Cellar/wget/1.14: 8 files, 688K, built in 7.7 minutes
==> Upgrading z
==> Downloading https://github.com/rupa/z/archive/v1.8.tar.gz
######################################################################## 100.0%
==> Caveats
For Bash or Zsh, put something like this in your $HOME/.bashrc or $HOME/.zshrc:
. `brew –prefix`/etc/profile.d/z.sh
==> Summary
/usr/local/Cellar/z/1.8: 4 files, 32K, built in 4 seconds
~~~

超長いですが、svn・postgressql・serfがこけたようです
他にもエラーは出ているような出ていないような・・・?
よくわからないのでbrew doctorします

brew doctor

~~~
$ brew doctor
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/bin/github

Warning: “config” scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following “config” scripts:

/Applications/Postgres.app/Contents/MacOS/bin/gdal-config
/Applications/Postgres.app/Contents/MacOS/bin/geos-config
/Applications/MAMP/bin/php/php5.3.6/bin/php-config

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

serf

Warning: You have uncommitted modifications to Homebrew
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
cd /usr/local/Library && git stash && git clean -d -f

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

ctags
erb
gem
git
git-cvsserver
git-receive-pack
git-shell
git-upload-archive
git-upload-pack
irb
rake
rdoc
ri
ruby
svn
svnadmin
svndumpfilter
svnlook
svnserve
svnsync
svnversion
testrb

Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo export PATH=”/usr/local/bin:$PATH” >> ~/.bash_profile
Error: Failed to import: frink
undefined method `create_spec’ for Frink:Class

Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link ` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.

Binaries provided by keg-only formulae may override system binaries
with other strange results.

You may wish to `brew unlink` these brews:

ossp-uuid
~~~

関係ありそうなのがserfが書いてあるところぐらいなのかな?って感じですがとりあえず1個ずつ解決していきましょう

brew prune

これは無効なリンクを消すってだけみたいです

~~~
$ brew prune
Pruned 0 dead formula
Pruned 1 symbolic links and 21 directories from /usr/local
~~~

config

brewと関係ないとこのconfigが参照されてますよーって感じなのかな?
postgresqlはPostgres.app | the easiest way to run PostgreSQL on the Macを使っているのでこの際brewからは消しちゃいます
phpはとりあえずMAMPを使っているのでそのまま

~~~
$ brew remove postgresql
Uninstalling /usr/local/Cellar/postgresql/9.2.2…
~~~

brew link

パッケージを有効化しなさいってことなのかな?

~~~
$ brew link serf
Error: serf has multiple installed versions
~~~

複数入っているって怒られました
確認します

~~~
$ ll /usr/local/Cellar/serf
total 0
drwxr-xr-x 4 username 136 10 23 14:42 .
drwxr-xr-x 51 username 1734 10 23 14:42 ..
drwxr-xr-x 9 username 306 4 30 16:14 1.1.1
drwxr-xr-x 9 username 306 4 30 16:21 1.2.0
~~~

よくわからんので1回全部消します
~~~
$ brew remove –force serf
Uninstalling serf…
~~~

再度doctorするとinstallしろって言われます

~~~
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:

brew install serf

Run `brew missing` for more details.
~~~

インストールしますが失敗\(^o^)/

~~~
$ brew install serf
==> Downloading http://serf.googlecode.com/files/serf-1.3.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/serf-1.3.2.tar.bz2
==> scons PREFIX=/usr/local/Cellar/serf/1.3.2 GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused
#include
^
1 error generated.
scons: *** [context.o] Error 1
scons: building terminated because of errors.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
https://github.com/mxcl/homebrew/pull/21449
~~~

ここでREAD THISをちゃんと読んでまたコマンドラインツールが必要なのかーってなりインストールしました

再びbrew upgrade

serfは入ったけどsubversionのmakeが終わらないですよ・・・
subversion使ってないのですけど、git svn用に必要なんだろうか・・・まぁ放置ですね(´Д`)

~~~
$ brew upgrade svn
==> Upgrading 1 outdated package, with result:
subversion 1.8.3
==> Upgrading subversion
==> Installing subversion dependency: serf
==> Downloading http://serf.googlecode.com/files/serf-1.3.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/serf-1.3.2.tar.bz2
==> scons PREFIX=/usr/local/Cellar/serf/1.3.2 GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused
==> scons install
/usr/local/Cellar/serf/1.3.2: 11 files, 392K, built in 29 seconds
==> Installing subversion
==> Downloading http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.3.tar.bz2
==> Best Mirror http://ftp.kddilabs.jp/infosystems/apache/subversion/subversion-1.8.3.tar.bz2
######################################################################## 100.0%
==> Patching
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
patching file Makefile.in
==> ./configure –prefix=/usr/local/Cellar/subversion/1.8.3 –with-apr=/usr/local/Library/ENV/4.3 –with-zlib=/usr –w
==> make
~~~

追記

git svnがこけました・・・解決方法を探し中(´Д`)
~~~
$ git svn –version
Can’t locate SVN/Core.pm in @INC (@INC contains: /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/5.16.2/darwin-thread-multi-2level /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/5.16.2 /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
BEGIN failed–compilation aborted at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
Compilation failed in require at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN.pm line 26.
BEGIN failed–compilation aborted at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN.pm line 33.
Compilation failed in require at /usr/local/Cellar/git/1.8.4.1/libexec/git-core/git-svn line 25.
BEGIN failed–compilation aborted at /usr/local/Cellar/git/1.8.4.1/libexec/git-core/git-svn line 25.
~~~

追記2

imagickも動かなくなってるようです
~~~
[25-Oct-2013 12:00:16] PHP Warning: PHP Startup: Unable to load dynamic library ‘/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/imagick.so’ – dlopen(/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/imagick.so, 9): Library not loaded: /usr/local/lib/libMagickWand.5.dylib
Referenced from: /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/imagick.so
Reason: image not found in Unknown on line 0
~~~

→ sudo pecl upgrade imagick で解決!

コメント

タイトルとURLをコピーしました