LoginSignup
6
6

More than 5 years have passed since last update.

homebrew で zlib not found と言われたので xcode-select --install で command line developer tools をインストールしようとしたけどできなかったときの対応

Last updated at Posted at 2014-05-26

対応

XCode のメニューバーから。
Mac OSX Mavericks ではこうやるぽい。

Xcode - Open Developer Tool - More Developer Tools

 2014-05-27 00.47.31.png

developer.apple.com が開くので、 Command Line Tools for OS X Mavericks - April 2014 をダウンロードしてインストールした。

 2014-05-27 01.17.25.png

詳細

1. zlib がなくて httpd インストールできなかった

$ brew install httpd
     :
  zlib not found

そういえば Command Line Developer Tools をまだ入れてなかったことに気づく。
でも $ brew doctor では問題ないと言われているので、今までとなんか違う。

$ brew doctor
Your system is ready to brew.

以前はインストールされてないと、 Command Line Developer Tools がないよ みたいなこと言われた記憶がうっすらある。

2. xcode-select --install を試す

ググると最新の Command Line Developer Tools のインストール方法はこうやるぽいので試す。

$ xcode-select --install

ネットワークに問題があるため、インストールできない 」 みたいなことを言われる。

3. Command Line Developer Tools を直接ダウンロードしてインストール

"対応" の通り。

4. httpd のビルドが通るようになった

ビルドは通って無事 httpd はインストールできたものの、 Xcode 側のほうの挙動が違うので、これでいいのかどうかよくわからない。

Xcode の Downloads には Command Line Developer Tools が表示されないまま

 2014-05-27 01.23.19.png

xcode-select --install も利用できないまま

ネットワークに問題があるため みたいなエラーメッセージは出なくなったものの、利用できないというメッセージが代わりに出るようになっていた。

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

 2014-05-27 01.25.12.png

なんかわかったら教えて下さい

これでいいのかどうかよくわからないので、なんかわかったら教えて下さい。

6
6
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
6
6