LoginSignup
4
3

More than 5 years have passed since last update.

Yosemiteにアップデートで出たエラー達

Last updated at Posted at 2014-10-30

Yosemiteにアップデートしたら周知の通りエラーが山ほど出たのでその対処法をいくつか抜粋して記載。

brewまわり

エラー1
brew doctorで出た。

エラー
Error: Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14
対処法
sudo rm -rf /Library/Ruby/Gems/*
sudo gem update –system

エラー2
brew doctorで出た。

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

    brew install icu4c

Run `brew missing` for more details.
対処法
brew install icu4c

エラー3
brew doctorで出た。

エラー
Warning: Your Xcode (6.0) is outdated
Please update to Xcode 6.1.
Xcode can be updated from the App Store.

これに関してはXcodeをアップデートすればよい。

エラー4

apacheが動かない。
というかhttpd以下が消えていたのでインストールし直した。
せっかくなのでapache2.4をいれる。

対処法
brew tap homebrew/dupes
brew tap homebrew/apache
brew install httpd24

gruntまわり

エラー1

grunt-contrib-compassでビルド時にエラーが出る。
これはgrunt-contrib-compassに限らずgemがうまく動いていないよう。

エラー
Warning: Command failed: /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'compass' (>= 0) among 4 total gem(s) (Gem::LoadError)
    from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:309:in `to_spec'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
    from /usr/bin/compass:22:in `<main>'

/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'compass' (>= 0) among 4 total gem(s) (Gem::LoadError)
    from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:309:in `to_spec'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
    from /usr/bin/compass:22:in `<main>'
Warning: ↑

rbenvを使っていれば以下のようにしてrubyを入れなおす。
rubyのバージョンは多分任意。

対処法
RUBY_CONFIGURE_OPTS="--without-gcc --disable-install-rdoc" rbenv install 2.1.3
rbenv global 2.1.3
gem install compass
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3