- 現在との差分 を表示
- ソース を表示
- HomeBrew/install/MacOSX10.11.4ElCapitan へ行く。
1: 2016-04-21 (木) 01:11:48 nobuaki | |||
---|---|---|---|
Line 1: | Line 1: | ||
+ | *MacOS X 10.11.4 El Captitanにbrew環境を構築してみた [#gc1f3978] | ||
+ | **はじめに [#d4439113] | ||
+ | このドキュメントでは,パッケージ管理ツールのbrewを使って,MacOS X 10.11.4 El Capitan上にbrewのインストールとその他のツールのインストールを実行してみる.対象となるMacには,XCodeもインストールされていないが,Xcode Command Line Toolのインストールが行われる状態もログとして記録している. | ||
+ | なお,インストール先のマシンへは,SSHで接続してリモートインストールとなっている. | ||
+ | |||
+ | **rubyのインストールを確認 [#s364da32] | ||
+ | |||
+ | gaia:~ ujpadmin$ | ||
+ | gaia:~ ujpadmin$ file /usr/bin/ruby | ||
+ | /usr/bin/ruby: Mach-O universal binary with 2 architectures | ||
+ | /usr/bin/ruby (for architecture x86_64): Mach-O 64-bit executable x86_64 | ||
+ | /usr/bin/ruby (for architecture i386): Mach-O executable i386 | ||
+ | gaia:~ ujpadmin$ | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | **brewのインストール [#ue9a7bc8] | ||
+ | |||
+ | gaia:~ ujpadmin$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
+ | ==> This script will install: | ||
+ | /usr/local/bin/brew | ||
+ | /usr/local/Library/... | ||
+ | /usr/local/share/doc/homebrew | ||
+ | /usr/local/share/man/man1/brew.1 | ||
+ | /usr/local/share/zsh/site-functions/_brew | ||
+ | /usr/local/etc/bash_completion.d/brew | ||
+ | ==> The following directories will be made group writable: | ||
+ | /usr/local/. | ||
+ | ==> The following directories will have their owner set to ujpadmin: | ||
+ | /usr/local/. | ||
+ | ==> The following directories will have their group set to admin: | ||
+ | /usr/local/. | ||
+ | |||
+ | Press RETURN to continue or any other key to abort | ||
+ | |||
+ | RETURNキーを押して継続. | ||
+ | |||
+ | ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. | ||
+ | |||
+ | WARNING: Improper use of the sudo command could lead to data loss | ||
+ | or the deletion of important system files. Please double-check your | ||
+ | typing when using sudo. Type "man sudo" for more information. | ||
+ | |||
+ | To proceed, enter your password, or type Ctrl-C to abort. | ||
+ | |||
+ | Password: | ||
+ | |||
+ | sudoしているので自分のパスワードを入力.ログインユーザに管理者権限が必要. | ||
+ | |||
+ | ==> /usr/bin/sudo /usr/sbin/chown ujpadmin /usr/local/. | ||
+ | ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. | ||
+ | ==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew | ||
+ | ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew | ||
+ | ==> /usr/bin/sudo /usr/sbin/chown ujpadmin /Library/Caches/Homebrew | ||
+ | ==> Searching online for the Command Line Tools | ||
+ | ==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress | ||
+ | ==> Installing Command Line Tools (OS X 10.11) for Xcode-7.3 | ||
+ | ==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (OS\ X\ 10.11)\ for\ Xcode-7.3 | ||
+ | Software Update Tool | ||
+ | Copyright 2002-2015 Apple Inc. | ||
+ | |||
+ | |||
+ | Downloading Command Line Tools (OS X 10.11) for Xcode | ||
+ | |||
+ | |||
+ | **Xcode 7.3用のコマンドラインツールのインストール [#h98e6926] | ||
+ | |||
+ | Xcodeがインストールされてない状態でも,コマンドラインだったらダウンロードされる. | ||
+ | |||
+ | Downloaded Command Line Tools (OS X 10.11) for Xcode | ||
+ | Installing Command Line Tools (OS X 10.11) for Xcode | ||
+ | Done with Command Line Tools (OS X 10.11) for Xcode | ||
+ | Done. | ||
+ | ==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress | ||
+ | ==> Downloading and installing Homebrew... | ||
+ | remote: Counting objects: 462, done. | ||
+ | remote: Compressing objects: 100% (419/419), done. | ||
+ | remote: Total 462 (delta 26), reused 265 (delta 17), pack-reused 0 | ||
+ | Receiving objects: 100% (462/462), 744.58 KiB | 38.00 KiB/s, done. | ||
+ | Resolving deltas: 100% (26/26), done. | ||
+ | From https://github.com/Homebrew/brew | ||
+ | * [new branch] master -> origin/master | ||
+ | HEAD is now at b53f0c5 tests: expand help and help-related tests | ||
+ | ==> Tapping homebrew/core | ||
+ | Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'... | ||
+ | remote: Counting objects: 3668, done. | ||
+ | remote: Compressing objects: 100% (3553/3553), done. | ||
+ | remote: Total 3668 (delta 16), reused 453 (delta 3), pack-reused 0 | ||
+ | Receiving objects: 100% (3668/3668), 2.80 MiB | 35.00 KiB/s, done. | ||
+ | Resolving deltas: 100% (16/16), done. | ||
+ | Checking connectivity... done. | ||
+ | Tapped 3543 formulae (3,694 files, 8.7M) | ||
+ | ==> Installation successful! | ||
+ | ==> Next steps | ||
+ | Run `brew help` to get started | ||
+ | Further documentation: https://git.io/brew-docs | ||
+ | Anonymous aggregate user behaviour analytics documentation: https://git.io/brew-analytics | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | インストール完了. | ||
+ | |||
+ | **brewインストール後の確認 [#hc47e434] | ||
+ | |||
+ | ***brew doctorで環境が正常か確認する [#z3cca6c7] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew doctor | ||
+ | Your system is ready to brew. | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | 問題無い. | ||
+ | |||
+ | **brew --config [#b38b2abb] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew --config | ||
+ | HOMEBREW_VERSION: 0.9.9 | ||
+ | ORIGIN: https://github.com/Homebrew/brew | ||
+ | HEAD: b53f0c5ada753d5ded6f6fbe4f920a4a43696394 | ||
+ | Last commit: 4 hours ago | ||
+ | Core tap ORIGIN: https://github.com/Homebrew/homebrew-core | ||
+ | Core tap HEAD: fd8a8a08001ff1d47fb696dc2c78803cc7ac4feb | ||
+ | Core tap last commit: 2 hours ago | ||
+ | HOMEBREW_PREFIX: /usr/local | ||
+ | HOMEBREW_REPOSITORY: /usr/local | ||
+ | HOMEBREW_CELLAR: /usr/local/Cellar | ||
+ | HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com | ||
+ | CPU: quad-core 64-bit sandybridge | ||
+ | OS X: 10.11.4-x86_64 | ||
+ | Xcode: N/A | ||
+ | CLT: 7.3.0.0.1.1457485338 | ||
+ | Clang: 7.3 build 703 | ||
+ | X11: N/A | ||
+ | System Ruby: 2.0.0-p648 | ||
+ | Perl: /usr/bin/perl | ||
+ | Python: /usr/bin/python | ||
+ | Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby | ||
+ | Java: N/A | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | 2日前の最新. | ||
+ | |||
+ | ***現在インストールされているパッケージを確認 [#c61be8ef] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew list | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | ***brewパッケージリストのアップデート [#p8f88fe0] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew update | ||
+ | Already up-to-date. | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | **treeコマンドのインストール [#p09b1425] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew install tree | ||
+ | ==> Downloading https://homebrew.bintray.com/bottles/tree-1.7.0.el_capitan.bottle.1.tar.gz | ||
+ | ######################################################################## 100.0% | ||
+ | ==> Pouring tree-1.7.0.el_capitan.bottle.1.tar.gz | ||
+ | 🍺 /usr/local/Cellar/tree/1.7.0: 7 files, 113.1K | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | **wgetコマンドのインストール [#ufd4e819] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew install wget | ||
+ | ==> Installing dependencies for wget: openssl | ||
+ | ==> Installing wget dependency: openssl | ||
+ | ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2g.el_capitan.bottle.tar.gz | ||
+ | ######################################################################## 100.0% | ||
+ | ==> Pouring openssl-1.0.2g.el_capitan.bottle.tar.gz | ||
+ | ==> Caveats | ||
+ | A CA file has been bootstrapped using certificates from the system | ||
+ | keychain. To add additional certificates, place .pem files in | ||
+ | /usr/local/etc/openssl/certs | ||
+ | |||
+ | and run | ||
+ | /usr/local/opt/openssl/bin/c_rehash | ||
+ | |||
+ | This formula is keg-only, which means it was not symlinked into /usr/local. | ||
+ | |||
+ | Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries | ||
+ | |||
+ | Generally there are no consequences of this for you. If you build your | ||
+ | own software and it requires this formula, you'll need to add to your | ||
+ | build variables: | ||
+ | |||
+ | LDFLAGS: -L/usr/local/opt/openssl/lib | ||
+ | CPPFLAGS: -I/usr/local/opt/openssl/include | ||
+ | |||
+ | ==> Summary | ||
+ | 🍺 /usr/local/Cellar/openssl/1.0.2g: 1,678 files, 12.0M | ||
+ | ==> Installing wget | ||
+ | ==> Downloading https://homebrew.bintray.com/bottles/wget-1.17.1.el_capitan.bottle.1.tar.gz | ||
+ | ######################################################################## 100.0% | ||
+ | ==> Pouring wget-1.17.1.el_capitan.bottle.1.tar.gz | ||
+ | 🍺 /usr/local/Cellar/wget/1.17.1: 9 files, 1.5M | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | ***listを確認 [#u9ba623b] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew list | ||
+ | openssl tree wget | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | **caskをインストール [#bbead455] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew install cask | ||
+ | ==> Installing dependencies for cask: emacs | ||
+ | ==> Installing cask dependency: emacs | ||
+ | ==> Downloading https://homebrew.bintray.com/bottles/emacs-24.5.el_capitan.bottle.2.tar.gz | ||
+ | ######################################################################## 100.0% | ||
+ | ==> Pouring emacs-24.5.el_capitan.bottle.2.tar.gz | ||
+ | ==> Caveats | ||
+ | To have launchd start emacs at login: | ||
+ | ln -sfv /usr/local/opt/emacs/*.plist ~/Library/LaunchAgents | ||
+ | Then to load emacs now: | ||
+ | launchctl load ~/Library/LaunchAgents/homebrew.mxcl.emacs.plist | ||
+ | Or, if you don't want/need launchctl, you can just run: | ||
+ | emacs start | ||
+ | ==> Summary | ||
+ | 🍺 /usr/local/Cellar/emacs/24.5: 3,916 files, 99.6M | ||
+ | ==> Installing cask | ||
+ | ==> Downloading https://github.com/cask/cask/archive/v0.7.4.tar.gz | ||
+ | ==> Downloading from https://codeload.github.com/cask/cask/tar.gz/v0.7.4 | ||
+ | ######################################################################## 100.0% | ||
+ | ==> Caveats | ||
+ | Emacs Lisp files have been installed to: | ||
+ | /usr/local/share/emacs/site-lisp/cask | ||
+ | ==> Summary | ||
+ | 🍺 /usr/local/Cellar/cask/0.7.4: 13 files, 162.8K, built in 14 seconds | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | ***caskでvirtualboxをインストール [#l2ba9838] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew cask install virtualbox | ||
+ | ==> Tapping caskroom/cask | ||
+ | Cloning into '/usr/local/Library/Taps/caskroom/homebrew-cask'... | ||
+ | remote: Counting objects: 3584, done. | ||
+ | remote: Compressing objects: 100% (3527/3527), done. | ||
+ | remote: Total 3584 (delta 57), reused 778 (delta 35), pack-reused 0 | ||
+ | Receiving objects: 100% (3584/3584), 5.94 MiB | 57.00 KiB/s, done. | ||
+ | Resolving deltas: 100% (57/57), done. | ||
+ | Checking connectivity... done. | ||
+ | Checking out files: 100% (3529/3529), done. | ||
+ | Tapped 1 formula (3,552 files, 13.6M) | ||
+ | ==> We need to make Caskroom for the first time at /opt/homebrew-cask/Caskroom | ||
+ | ==> We'll set permissions properly so we won't need sudo in the future | ||
+ | Password: | ||
+ | ==> Downloading http://download.virtualbox.org/virtualbox/5.0.18/VirtualBox-5.0.18-106667-OSX.dmg | ||
+ | ######################################################################## 100.0% | ||
+ | ==> Verifying checksum for Cask virtualbox | ||
+ | ==> Running installer for virtualbox; your password may be necessary. | ||
+ | ==> Package installers may write to any location; options such as --appdir are ignored. | ||
+ | ==> installer: Package name is Oracle VM VirtualBox | ||
+ | ==> installer: Installing at base path / | ||
+ | ==> installer: The install was successful. | ||
+ | 🍺 virtualbox staged at '/opt/homebrew-cask/Caskroom/virtualbox/5.0.18-106667' (4 files, 86M) | ||
+ | gaia:~ ujpadmin$ | ||
+ | |||
+ | ***caskでvirtualbox-extension-packをインストール [#fcc80087] | ||
+ | |||
+ | gaia:~ ujpadmin$ brew cask install virtualbox-extension-pack | ||
+ | ==> Satisfying dependencies | ||
+ | ==> Installing Cask dependencies: virtualbox | ||
+ | virtualbox ... | ||
+ | already installed | ||
+ | complete | ||
+ | ==> Downloading http://download.virtualbox.org/virtualbox/5.0.18/Oracle_VM_VirtualBox_Extension_Pack-5.0.18-10666 | ||
+ | ######################################################################## 100.0% | ||
+ | ==> Verifying checksum for Cask virtualbox-extension-pack | ||
+ | 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% | ||
+ | Successfully installed "Oracle VM VirtualBox Extension Pack". | ||
+ | 🍺 virtualbox-extension-pack staged at '/opt/homebrew-cask/Caskroom/virtualbox-extension-pack/5.0.18-106667' (16M) | ||
+ | gaia:~ ujpadmin$ |
- HomeBrew/install/MacOSX10.11.4ElCapitan のバックアップ一覧
- HomeBrew/install/MacOSX10.11.4ElCapitan のバックアップ差分(No. All)
- 1: 2016-04-21 (木) 01:11:48 nobuaki
- 現: 2016-04-21 (木) 01:11:48 shinnai(shinnai)
- Rewound to 2 ages ago. at 2017-12-04 (月) 23:21:55
Counter: 1280,
today: 1,
yesterday: 0