Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away