FROM THE OLD SITE

旧WordPressで公開していた記事を、当時の内容を尊重して再掲載しています。

PAST ARTICLE · OS X

Homebrew と Bitcasa

OS X Mountain Lion にアップデートしてから、Homebrew アップデートしてなかったのと、tmux、git、emacs の最新版を使うために、Homebrew をアップデートしたら問題が発生しましたw

brew update 前に、念のため brew doctor をしてみたら下記のようなエラーメッセージが表示されました。

BASH
$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libmacfuse_i32.2.dylib
    /usr/local/lib/libmacfuse_i64.2.dylib
    /usr/local/lib/libosxfuse_i32.2.dylib
    /usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libosxfuse_i32.la
    /usr/local/lib/libosxfuse_i64.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/osxfuse.pc
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew.

Homebrew の対応としては、Warning が表示されているファイルを削除すると、brew doctor のエラーはなくなりましたが、Bitcasa の起動時にエラーが発生したので、Bitcasa が使用しているファイルだった模様・・・あと、brew update も動作しなくなってしまいました。

まずは、Homebrew(brew cleanup)と Bitcasa(Appcleanerなど)をアンインストールして、念のため再起動してから、Homebrew → Bitcasa の順でインストールしました。

Homebrew で tmux、git、emacs をインストール後、brew doctor すると下記にように Warning が表示されますが、brew install **** brew update も特に問題ありませんでした。

BASH
$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libmacfuse_i32.2.dylib
    /usr/local/lib/libmacfuse_i64.2.dylib
    /usr/local/lib/libosxfuse_i32.2.dylib
    /usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libosxfuse_i32.la
    /usr/local/lib/libosxfuse_i64.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/osxfuse.pc
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:

    emacs
    emacsclient
    etags
    git
    git-cvsserver
    git-receive-pack
    git-shell
    git-upload-archive
    git-upload-pack
    gitk

Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.

tmux、git、emacs の各バージョンは下記です。

BASH
$ tmux -V
tmux 1.7
$ git --version
git version 1.8.1.3
$ emacs --version
GNU Emacs 24.2.1
Copyright (C) 2012 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

ただし、1週間前から OS X、Windows から Bitcasa のドライブがマウントできない問題が発生しており、Windows でも発生していることから、Bitcasa 側の問題だと思われます。Bitcasa にチケット発行済みなので、いずれ対応されるかと思われます。