2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

command line toolsのみインストールしたときのpathの設定

Last updated at Posted at 2012-05-22

command line toolsのみ入れてXcode入れないとき、brew doctorすると、以下のような警告が出ます。

$ brew doctor
Error: Your Xcode is configured with an invalid path.
You should change it to the correct path. Please note that there is no correct
path at this time if you have *only* installed the Command Line Tools for Xcode.
If your Xcode is pre-4.3 or you installed the whole of Xcode 4.3 then one of
these is (probably) what you want:

    sudo xcode-select -switch /Developer
    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

DO NOT SET / OR EVERYTHING BREAKS!

これまでdoctorの忠告は無視してたのですが、Homebrewでmacvimを入れようとしたとき、「xcodebuildが見つからない」エラーに直面したので、とりかかることに。

とりあえずこうしたら、doctorがOK出してくれた。

$ sudo xcode-select -switch /
$ brew doctor
Your system is raring to brew.

「あなたのシステムはbrewしたくてウズウズしている!」だってさ。
でも、これでいいのかちょっと微妙…(´・ω・`)

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?