みそしりんぐ

現在進行形みそしる

アップデート祭り

たくさん久しぶりなことがあります.
まず休日です.久しぶりの休日です.学校がありません.実に1ヶ月以上ぶりな気がします.
久しぶりの休日で,久しぶりに風邪を引きました.久しぶりの休日ですから仕方ありません.
風邪も引いたので,パソコンで遊んでいました.久しぶりのアップデート祭りです.エラー祭りになりました.
これが今回の主題です.アップデート祭りがエラー祭りになった話.

ところで久しぶりすぎてはてな記法をわすれました.

目次

  1. Ruby
  2. Homebrew
    • Update & Upgrade
    • Doctor
      • 問題発生
      • 解決法

Ruby

RubyGems

$ sudo update_rubygems

Gem

問題発生
$ sudo gem update
ERROR:  Loading command: update (LoadError)
	dlopen(/Users/mssr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin13.0.2/openssl.bundle, 9): Symbol not found: _SSLv2_client_method
  Referenced from: /Users/mssr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin13.0.2/openssl.bundle
  Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
 in /Users/mssr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin13.0.2/openssl.bundle - /Users/mssr/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin13.0.2/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass
解決法

ぐぐった結果,Rubyのバージョンを上げると治りそうだということが判明しました.

$ rbenv install 2.1.2
$ rbenv global 2.1.2
$ gem update

Homebrew

Update & Upgrade

$ brew update
$ brew upgrade

Doctor

問題発生
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Some directories in /usr/local/share/locale aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

    /usr/local/share/locale/da
    /usr/local/share/locale/da/LC_MESSAGES
    /usr/local/share/locale/fi
    /usr/local/share/locale/fi/LC_MESSAGES
    /usr/local/share/locale/ga
    /usr/local/share/locale/ga/LC_MESSAGES
    /usr/local/share/locale/id
    /usr/local/share/locale/id/LC_MESSAGES
    /usr/local/share/locale/nl
    /usr/local/share/locale/nl/LC_MESSAGES
    /usr/local/share/locale/pt_BR
    /usr/local/share/locale/pt_BR/LC_MESSAGES
    /usr/local/share/locale/ro
    /usr/local/share/locale/ro/LC_MESSAGES
    /usr/local/share/locale/rw
    /usr/local/share/locale/rw/LC_MESSAGES
    /usr/local/share/locale/sv
    /usr/local/share/locale/sv/LC_MESSAGES
    /usr/local/share/locale/tr
    /usr/local/share/locale/tr/LC_MESSAGES

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

Unexpected header files:
    /usr/local/include/ansidecl.h
    /usr/local/include/bfd.h
    /usr/local/include/bfdlink.h
    /usr/local/include/dis-asm.h
    /usr/local/include/gdb/jit-reader.h
    /usr/local/include/symcat.h

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/libbfd.la
    /usr/local/lib/libopcodes.la

Warning: Unbrewed static libraries 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 static libraries:
    /usr/local/lib/libbfd.a
    /usr/local/lib/libopcodes.a

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

    brew install cairo glib gobject-introspection harfbuzz icu4c libffi libtool pango pixman

Run `brew missing` for more details.
解決法

アクセス権修復

$ sudo chown -R $USER:admin /usr/local/share

依存ツールファイルをインストール

$ brew install cairo glib gobject-introspection harfbuzz icu4c libffi libtool pango pixman

あとのはファイルを消せって書いてある気もしますが,よくわからないのでとりあえず放置で.