何を思ったか、突然インストールしたくなった。
ちょこっと検索して、公式サイトからコマンドをコピーしてターミナルで実行。
MacBookAir:~ $ ruby -e “$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)”
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/.
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/.
Password:
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 189449, done.
remote: Compressing objects: 100% (51786/51786), done.
remote: Total 189449 (delta 136580), reused 189328 (delta 136490)
Receiving objects: 100% (189449/189449), 37.91 MiB | 1.23 MiB/s, done.
Resolving deltas: 100% (136580/136580), done.
From https://github.com/Homebrew/homebrew
* [new branch] master -> origin/master
HEAD is now at 6a54db0 plt-racket: update 6.1 bottle.
==> Installation successful!
==> Next steps
Run `brew doctor` before you install anything
Run `brew help` to get started
MacBookAir:~ $
successfulと表示されたので上手く行った模様。
続いてメッセージに表示されているように、`brew doctor`を実行する。
MacBookAir:~ seidai$ 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: You have leftover files from an older version of Xcode.
You should delete them using:
/Developer/Library/uninstall-developer-folder
なんか変なのが出た。
別のコマンドを実行しろ、みたい。
sudo付きで`/Developer/Library/uninstall-developer-folder`を実行する。
MacBookAir:~ $ sudo /Developer/Library/uninstall-developer-folder
Password:
Start time: 2014年 8月 3日 日曜日 16時00分20秒 JST
Analyzing devtools package: 'com.apple.pkg.ApplicationLoaderLeo'...
Analyzing devtools package: 'com.apple.pkg.DashcodeLeo'...
Analyzing devtools package: 'com.apple.pkg.DevDocumentationLeo'...
Analyzing devtools package: 'com.apple.pkg.DevSamplesLeo'...
Analyzing devtools package: 'com.apple.pkg.DevToolsDocumentationLeo'...
Analyzing devtools package: 'com.apple.pkg.DeveloperDiskImage4_3'...
Analyzing devtools package: 'com.apple.pkg.DeveloperDiskImageReleased'...
Analyzing devtools package: 'com.apple.pkg.DeveloperToolsCLILeo'...
Analyzing devtools package: 'com.apple.pkg.DeveloperToolsLeo'...
Analyzing devtools package: 'com.apple.pkg.MacOSX10.6Leo'...
Analyzing devtools package: 'com.apple.pkg.MacOSX10.7Leo'...
Analyzing devtools package: 'com.apple.pkg.OpenGLAppsLeo'...
Analyzing devtools package: 'com.apple.pkg.OtherDevDocumentationLeo'...
Analyzing devtools package: 'com.apple.pkg.SourceControlLeo'...
Analyzing devtools package: 'com.apple.pkg.X11DocumentationLeo'...
Analyzing devtools package: 'com.apple.pkg.XcodeToolsLeo'...
Analyzing devtools package: 'com.apple.pkg.XcodeiPhonePluginsLeo'...
Analyzing devtools package: 'com.apple.pkg.clangLeo'...
Analyzing devtools package: 'com.apple.pkg.gcc4.2Leo'...
Analyzing devtools package: 'com.apple.pkg.iPhoneDocumentation'...
Analyzing devtools package: 'com.apple.pkg.iPhoneHostSideTools'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK3_0'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK3_1'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK3_1_2'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK3_1_3'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK3_2'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK4_0'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK4_1'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK4_2'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDK4_3'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDKSnowLeopardExtras'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSDKTools'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSimulatorSDK4_3'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSimulatorSDK4_3Patch1'...
Analyzing devtools package: 'com.apple.pkg.iPhoneSimulatorSDKTools'...
Analyzing devtools package: 'com.apple.pkg.llvm-gcc4.2Leo'...
Removing devtools files...
Removing generated files...
Removing Xcode Caches...
find: /var/folders/4m/xp125vkx4fzgcypv4zhb_6j00000gn/C/com.apple.DeveloperTools: No such file or directory
find: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools: No such file or directory
Removing Xcode Documentation...
Removing empty devtools directories...
Finish time: 2014年 8月 3日 日曜日 16時00分46秒 JST
MacBookAir:~ $
で、再度`brew doctor`を実行する。
MacBookAir:~ $ brew doctor
Your system is ready to brew.
MacBookAir:~ $
よし、成功!
ついでに、ディスク容量が5Gほど減った!