「OS X El Capitan」にしたら元々インストールしていた、
homebrewで更新しようとしたらエラーが出たのでメモとして。
$ brew update
warning: unable to unlink CONTRIBUTING.md: Permission denied
warning: unable to unlink SUPPORTERS.md: Permission denied
fatal: cannot create directory at '.github': Permission denied
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master |
$ brew update
warning: unable to unlink CONTRIBUTING.md: Permission denied
warning: unable to unlink SUPPORTERS.md: Permission denied
fatal: cannot create directory at '.github': Permission denied
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
$ sudo chown -R $USER:admin /usr/local
$ cd /usr/local/
$ git reset --hard origin/master
HEAD is now at 53c5089 CoreTap#install: fix clone target setting |
$ sudo chown -R $USER:admin /usr/local
$ cd /usr/local/
$ git reset --hard origin/master
HEAD is now at 53c5089 CoreTap#install: fix clone target setting
$ brew update
remote: Counting objects: 456, done.
remote: Compressing objects: 100% (413/413), done.
remote: Total 456 (delta 26), reused 335 (delta 17), pack-reused 0
Receiving objects: 100% (456/456), 706.29 KiB | 276.00 KiB/s, done.
Resolving deltas: 100% (26/26), done.
From https://github.com/Homebrew/brew
+ 53c5089...d7aa0c0 master -> origin/master (forced update)
HEAD is now at d7aa0c0 scm/git: prevent exec bomb with 'env :userpaths'
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3656, done.
remote: Compressing objects: 100% (3539/3539), done.
remote: Total 3656 (delta 14), reused 1569 (delta 5), pack-reused 0
Receiving objects: 100% (3656/3656), 2.70 MiB | 431.00 KiB/s, done.
Resolving deltas: 100% (14/14), done.
Checking connectivity... done.
Tapped 3531 formulae (3,682 files, 8.5M)
Updated 1 tap (homebrew/dupes).
==> Updated Formulae
homebrew/dupes/ed homebrew/dupes/gzip homebrew/dupes/nano homebrew/dupes/openssh
homebrew/dupes/file-formula homebrew/dupes/krb5 homebrew/dupes/ncurses homebrew/dupes/rsync
homebrew/dupes/grep homebrew/dupes/lapack homebrew/dupes/openldap homebrew/dupes/whois
==> Deleted Formulae
homebrew/dupes/gdb |
$ brew update
remote: Counting objects: 456, done.
remote: Compressing objects: 100% (413/413), done.
remote: Total 456 (delta 26), reused 335 (delta 17), pack-reused 0
Receiving objects: 100% (456/456), 706.29 KiB | 276.00 KiB/s, done.
Resolving deltas: 100% (26/26), done.
From https://github.com/Homebrew/brew
+ 53c5089...d7aa0c0 master -> origin/master (forced update)
HEAD is now at d7aa0c0 scm/git: prevent exec bomb with 'env :userpaths'
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3656, done.
remote: Compressing objects: 100% (3539/3539), done.
remote: Total 3656 (delta 14), reused 1569 (delta 5), pack-reused 0
Receiving objects: 100% (3656/3656), 2.70 MiB | 431.00 KiB/s, done.
Resolving deltas: 100% (14/14), done.
Checking connectivity... done.
Tapped 3531 formulae (3,682 files, 8.5M)
Updated 1 tap (homebrew/dupes).
==> Updated Formulae
homebrew/dupes/ed homebrew/dupes/gzip homebrew/dupes/nano homebrew/dupes/openssh
homebrew/dupes/file-formula homebrew/dupes/krb5 homebrew/dupes/ncurses homebrew/dupes/rsync
homebrew/dupes/grep homebrew/dupes/lapack homebrew/dupes/openldap homebrew/dupes/whois
==> Deleted Formulae
homebrew/dupes/gdb
ついでにAnsibleが古かったので更新しておく。
$ brew upgrade ansible
==> Upgrading 1 outdated package, with result:
ansible 2.0.1.0
==> Upgrading ansible
==> Installing dependencies for ansible: libyaml, openssl
==> Installing ansible dependency: libyaml
==> Downloading https://homebrew.bintray.com/bottles/libyaml-0.1.6_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libyaml-0.1.6_1.el_capitan.bottle.tar.gz
🍺 /usr/local/Cellar/libyaml/0.1.6_1: 8 files, 312.8K
==> Installing ansible 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 ansible
==> Downloading https://homebrew.bintray.com/bottles/ansible-2.0.1.0.el_capitan.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring ansible-2.0.1.0.el_capitan.bottle.2.tar.gz
==> Caveats
Homebrew writes wrapper scripts that set PYTHONPATH in ansible's
execution environment, which is inherited by Python scripts invoked
by ansible. If this causes problems, you can modify your playbooks
to invoke python with -E, which causes python to ignore PYTHONPATH.
==> Summary
🍺 /usr/local/Cellar/ansible/2.0.1.0: 8,167 files, 84.8M |
$ brew upgrade ansible
==> Upgrading 1 outdated package, with result:
ansible 2.0.1.0
==> Upgrading ansible
==> Installing dependencies for ansible: libyaml, openssl
==> Installing ansible dependency: libyaml
==> Downloading https://homebrew.bintray.com/bottles/libyaml-0.1.6_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libyaml-0.1.6_1.el_capitan.bottle.tar.gz
🍺 /usr/local/Cellar/libyaml/0.1.6_1: 8 files, 312.8K
==> Installing ansible 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 ansible
==> Downloading https://homebrew.bintray.com/bottles/ansible-2.0.1.0.el_capitan.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring ansible-2.0.1.0.el_capitan.bottle.2.tar.gz
==> Caveats
Homebrew writes wrapper scripts that set PYTHONPATH in ansible's
execution environment, which is inherited by Python scripts invoked
by ansible. If this causes problems, you can modify your playbooks
to invoke python with -E, which causes python to ignore PYTHONPATH.
==> Summary
🍺 /usr/local/Cellar/ansible/2.0.1.0: 8,167 files, 84.8M