★★(大分類F) 新しいMac Book Pro

PHP系統

【Mac】phpenvからanyenvに乗り換えたので導入から切り替えまで
mi-rai.co.jp

(1) anyenvのパスを通す

$ vim .bashrc

if [ -d $HOME/.anyenv ] ; then
export PATH="$HOME/.anyenv/bin:$PATH"
eval "$(anyenv init -)"
for D in `\ls $HOME/.anyenv/envs`
do
export PATH="$HOME/.anyenv/envs/$D/shims:$PATH"
done
fi

(2) パスが通っているか確認する

$ which anyenv
/usr/local/bin/anyenv

(3) phpenvのインストール

# phpenvのインストール
$ anyenv install phpenv


# インストールが完了がしたら入っているか確認します。
# (インストール済みの各envのバージョン一覧が表示される)
$ anyenv versions

nodenv:
  system
  12.14.1
* 16.4.2 (set by /Users/[User]/.anyenv/envs/nodenv/version)
phpenv:
* system (set by /Users/[User]/.anyenv/envs/phpenv/version)

(4)まず、インストールできるバージョンの一覧を表示

$ phpenv install -l

Available versions:
  5.2.17
  5.3.10
  5.3.11
  5.3.12
  5.3.13
  5.3.14
  5.3.15
  5.3.16
  5.3.17
  5.3.18
  5.3.19
  5.3.20
  5.3.21
  5.3.22
  5.3.23
  5.3.24
  5.3.25
  5.3.26
  5.3.27
  5.3.28
  5.3.29
  5.3.2
  5.3.3
  5.3.6
  5.3.8
  5.3.9
  5.4.0
  5.4.10
  5.4.11
  5.4.12
  5.4.13
  5.4.14
  5.4.15
  5.4.16
  5.4.17
  5.4.18
  5.4.19
  5.4.1
  5.4.20
  5.4.21
  5.4.22
  5.4.23
  5.4.24
  5.4.25
  5.4.26
  5.4.27
  5.4.28
  5.4.29
  5.4.2
  5.4.30
  5.4.31
  5.4.32
  5.4.33
  5.4.34
  5.4.35
  5.4.36
  5.4.37
  5.4.38
  5.4.39
  5.4.3
  5.4.40
  5.4.41
  5.4.42
  5.4.43
  5.4.44
  5.4.45
  5.4.4
  5.4.5
  5.4.6
  5.4.7
  5.4.8
  5.4.9
  5.4snapshot
  5.5.0
  5.5.10
  5.5.11
  5.5.12
  5.5.13
  5.5.14
  5.5.15
  5.5.16
  5.5.17
  5.5.18
  5.5.19
  5.5.1
  5.5.20
  5.5.21
  5.5.22
  5.5.23
  5.5.24
  5.5.25
  5.5.26
  5.5.27
  5.5.28
  5.5.29
  5.5.2
  5.5.30
  5.5.31
  5.5.32
  5.5.33
  5.5.34
  5.5.35
  5.5.36
  5.5.37
  5.5.38
  5.5.3
  5.5.4
  5.5.5
  5.5.6
  5.5.7
  5.5.8
  5.5.9
  5.5snapshot
  5.6.0
  5.6.10
  5.6.11
  5.6.12
  5.6.13
  5.6.14
  5.6.15
  5.6.16
  5.6.17
  5.6.18
  5.6.19
  5.6.1
  5.6.20
  5.6.21
  5.6.22
  5.6.23
  5.6.24
  5.6.25
  5.6.26
  5.6.27
  5.6.28
  5.6.29
  5.6.2
  5.6.30
  5.6.31
  5.6.32
  5.6.33
  5.6.34
  5.6.35
  5.6.36
  5.6.37
  5.6.38
  5.6.39
  5.6.3
  5.6.40
  5.6.4
  5.6.5
  5.6.6
  5.6.7
  5.6.8
  5.6.9
  5.6snapshot
  7.0.0
  7.0.10
  7.0.11
  7.0.12
  7.0.13
  7.0.14
  7.0.15
  7.0.16
  7.0.17
  7.0.18
  7.0.19
  7.0.1
  7.0.20
  7.0.21
  7.0.22
  7.0.23
  7.0.24
  7.0.25
  7.0.26
  7.0.27
  7.0.28
  7.0.29
  7.0.2
  7.0.30
  7.0.31
  7.0.32
  7.0.33
  7.0.3
  7.0.4
  7.0.5
  7.0.6
  7.0.7
  7.0.8
  7.0.9
  7.0snapshot
  7.1.0
  7.1.10
  7.1.11
  7.1.12
  7.1.13
  7.1.14
  7.1.15
  7.1.16
  7.1.17
  7.1.18
  7.1.19
  7.1.1
  7.1.20
  7.1.21
  7.1.22
  7.1.23
  7.1.24
  7.1.25
  7.1.26
  7.1.27
  7.1.28
  7.1.29
  7.1.2
  7.1.30
  7.1.31
  7.1.32
  7.1.33
  7.1.3
  7.1.4
  7.1.5
  7.1.6
  7.1.7
  7.1.8
  7.1.9
  7.1snapshot
  7.2.0
  7.2.10
  7.2.11
  7.2.12
  7.2.13
  7.2.14
  7.2.15
  7.2.16
  7.2.17
  7.2.18
  7.2.19
  7.2.1
  7.2.20
  7.2.21
  7.2.22
  7.2.23
  7.2.24
  7.2.25
  7.2.26
  7.2.27
  7.2.28
  7.2.29
  7.2.2
  7.2.30
  7.2.31
  7.2.32
  7.2.33
  7.2.34
  7.2.3
  7.2.4
  7.2.5
  7.2.6
  7.2.7
  7.2.8
  7.2.9
  7.2snapshot
  7.3.0
  7.3.10
  7.3.11
  7.3.12
  7.3.13
  7.3.14
  7.3.15
  7.3.16
  7.3.17
  7.3.18
  7.3.19
  7.3.1
  7.3.20
  7.3.21
  7.3.22
  7.3.23
  7.3.24
  7.3.25
  7.3.26
  7.3.27
  7.3.28
  7.3.29
  7.3.2
  7.3.30
  7.3.3
  7.3.4
  7.3.5
  7.3.6
  7.3.7
  7.3.8
  7.3.9
  7.3snapshot
  7.4.0
  7.4.10
  7.4.11
  7.4.12
  7.4.13
  7.4.14
  7.4.15
  7.4.16
  7.4.18
  7.4.19
  7.4.1
  7.4.20
  7.4.21
  7.4.22
  7.4.23
  7.4.2
  7.4.3
  7.4.4
  7.4.5
  7.4.6
  7.4.7
  7.4.8
  7.4.9
  7.4snapshot
  8.0.0
  8.0.10
  8.0.1
  8.0.2
  8.0.3
  8.0.5
  8.0.6
  8.0.7
  8.0.8
  8.0.9
  8.0snapshot
  8.1snapshot

(5) macOSに8系で失敗

phpenv install 8.0.9

 $ phpenv install 8.0.9
[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 8.0.9 into /Users/[User]/.anyenv/envs/phpenv/versions/8.0.9
[Downloading]: https://secure.php.net/distributions/php-8.0.9.tar.bz2
[Preparing]: /var/tmp/php-build/source/8.0.9

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
configure: error: Please reinstall the BZip2 distribution
-----------------------------------------

The full Log is available at '/tmp/php-build.8.0.9.20210916180222.log'.
[Warn]: Aborting build.

qiita.com

$ brew install autoconf bzip2 icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip oniguruma openssl@1.1 pkg-config tidy-html5

Warning: autoconf 2.71 is already installed and up-to-date.
To reinstall 2.71, run:
  brew reinstall autoconf
Warning: bzip2 1.0.8 is already installed and up-to-date.
To reinstall 1.0.8, run:
  brew reinstall bzip2
Warning: icu4c 69.1 is already installed and up-to-date.
To reinstall 69.1, run:
  brew reinstall icu4c
Warning: libiconv 1.16 is already installed and up-to-date.
To reinstall 1.16, run:
  brew reinstall libiconv
Warning: jpeg 9d is already installed and up-to-date.
To reinstall 9d, run:
  brew reinstall jpeg
Warning: libpng 1.6.37 is already installed and up-to-date.
To reinstall 1.6.37, run:
  brew reinstall libpng
Warning: oniguruma 6.9.7.1 is already installed and up-to-date.
To reinstall 6.9.7.1, run:
  brew reinstall oniguruma
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
  brew reinstall pkg-config


==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1l
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:ff8b2a965c680b4d9baccd60e799d0989e7dc562d2ba81696a9996bab
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ff8b2a965c680b4d9baccd60e799d0989e7dc562d2ba81
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/manifests/1.19.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/blobs/sha256:6ae8cffb08f9cba4842a21fc92618e22403a474fbd6d05820c3755401d55688d
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:6ae8cffb08f9cba4842a21fc92618e22403a474fbd6d05
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libedit/manifests/20210714-3.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libedit/blobs/sha256:75d0b470e0478010fbaa2708db5eefba895d71d32efe79bc3eee389e26375
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:75d0b470e0478010fbaa2708db5eefba895d71d32efe79
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxml2/manifests/2.9.12
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxml2/blobs/sha256:fbc422ede343b2bd4047ccdf2f697430da636b66fc550697a2f921b97cebe
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:fbc422ede343b2bd4047ccdf2f697430da636b66fc5506
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libzip/manifests/1.8.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libzip/blobs/sha256:f5b0d74305b2f249a8389bbee71ab51e446fcc824c950b2a954860d21e4d61
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f5b0d74305b2f249a8389bbee71ab51e446fcc824c950b
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1l
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/7cb540b15662ae88caf307947df0254e5c64c04933630f7e9543cb018107ecbe--openssl@1.1-1.1.1l.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:ff8b2a965c680b4d9baccd60e799d0989e7dc562d2ba81696a9996bab
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/b6c57e7f9acfe19e13efdfa925e9d77bbc52f6965e0f48326f64f73d18ef9c81--openssl@1.1--1.1.1l.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/tidy-html5/manifests/5.8.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/tidy-html5/blobs/sha256:9127cf10347816285db70f0ec794a08433e44426f9f4320d5fecedbdcf
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9127cf10347816285db70f0ec794a08433e44426f9f432
######################################################################## 100.0%
==> Installing dependencies for krb5: openssl@1.1
==> Installing krb5 dependency: openssl@1.1
==> Pouring openssl@1.1--1.1.1l.big_sur.bottle.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
🍺  /usr/local/Cellar/openssl@1.1/1.1.1l: 8,073 files, 18.5MB

==> Installing krb5
==> Pouring krb5--1.19.2.big_sur.bottle.tar.gz
==> Caveats
krb5 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have krb5 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/krb5/bin:$PATH"' >> /Users/[User]/.bash_profile
  echo 'export PATH="/usr/local/opt/krb5/sbin:$PATH"' >> /Users/[User]/.bash_profile

For compilers to find krb5 you may need to set:
  export LDFLAGS="-L/usr/local/opt/krb5/lib"
  export CPPFLAGS="-I/usr/local/opt/krb5/include"

For pkg-config to find krb5 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/krb5/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/krb5/1.19.2: 162 files, 5.2MB
==> Pouring libedit--20210714-3.1.big_sur.bottle.tar.gz
==> Caveats
libedit is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

For compilers to find libedit you may need to set:
  export LDFLAGS="-L/usr/local/opt/libedit/lib"
  export CPPFLAGS="-I/usr/local/opt/libedit/include"

For pkg-config to find libedit you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libedit/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/libedit/20210714-3.1: 53 files, 542.5KB
==> Pouring libxml2--2.9.12.big_sur.bottle.tar.gz
==> Caveats
libxml2 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have libxml2 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/libxml2/bin:$PATH"' >> /Users/[USER]/.bash_profile

For compilers to find libxml2 you may need to set:
  export LDFLAGS="-L/usr/local/opt/libxml2/lib"
  export CPPFLAGS="-I/usr/local/opt/libxml2/include"

For pkg-config to find libxml2 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/libxml2/2.9.12: 280 files, 10.7MB
==> Pouring libzip--1.8.0.big_sur.bottle.tar.gz
Error: Failed to read Mach-O binary: /usr/local/Cellar/libzip/1.8.0/share/man/man3/zip_file_replace.3
🍺  /usr/local/Cellar/libzip/1.8.0: 144 files, 771KB
Removing: /usr/local/Cellar/openssl@1.1/1.1.1k... (8,071 files, 18.5MB)
==> Pouring tidy-html5--5.8.0.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/tidy-html5/5.8.0: 14 files, 2.9MB
==> Upgrading 8 dependents:
node 16.7.0 -> 16.9.1, node-build 4.9.42 -> 4.9.55, python@3.9 3.9.5 -> 3.9.7, glib 2.68.2 -> 2.68.4, gobject-introspection 1.68.0 -> 1.68.0_1, harfbuzz 2.8.1 -> 2.9.1, pango 1.48.5 -> 1.48.10, wget 1.21.1 -> 1.21.2
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.21.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:7a8e6512e0890076b9ebc4f8db6165d70b4bd05e04dfc0491519ba3c91a5c21e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:7a8e6512e0890076b9ebc4f8db6165d70b4bd05e04dfc0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/m4/manifests/1.4.19
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/m4/blobs/sha256:b22472f659112cf12163bba770d891618b3ada5aaf5baa01516d80fef6214617
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:b22472f659112cf12163bba770d891618b3ada5aaf5baa
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/node-build/manifests/4.9.55
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/node-build/blobs/sha256:a7fc375fec6101ee743e2a1b088a8e7afbabdc9dd078abcb21cc42aaf7
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a7fc375fec6101ee743e2a1b088a8e7afbabdc9dd078ab
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.20
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:ea88ce09e934407b1c7dfcc1b74e2d4f1b409f8264b4475b816369a129c6cd25
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ea88ce09e934407b1c7dfcc1b74e2d4f1b409f8264b447
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.36.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:2c9c5f05c16c1fa972fc49c4b2705d7877b99640b6bb0b3908333e17f63dd7
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:2c9c5f05c16c1fa972fc49c4b2705d7877b99640b6bb0b
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.7
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc366bd63589e6df
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc36
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/manifests/8.45
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/blobs/sha256:fb2fefbe1232706a603a6b385fc37253e5aafaf3536cb68b828ad1940b95e601
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:fb2fefbe1232706a603a6b385fc37253e5aafaf3536cb6
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.20
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27d8af232565f7f16e912a20505b0d5ff83f6782835b9492840213cbf5fa5d2--gdbm-1.20.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:ea88ce09e934407b1c7dfcc1b74e2d4f1b409f8264b4475b816369a129c6cd25
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/039ddb2682e5b93b3cd0ad30e130b5eab5bdb193e9e8d0239c9556958ccd992b--gdbm--1.20.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.36.0
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/f624e7fc68307d01f25a03c15c0a84ff3b65d4d984d85616e4181a685efd0548--sqlite-3.36.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:2c9c5f05c16c1fa972fc49c4b2705d7877b99640b6bb0b3908333e17f63dd7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27cd6f405f31a0171c05374d0dc9c4281f577e1822b52f5914cb2f40b647a7b--sqlite--3.36.0.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/4f570a18a1f2293b20b50278454402c7503a213c057fd9f8cae6db39a5add57b--python@3.9-3.9.7.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc366bd63589e6df
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/e6ddb56e9530666763b94a93220ee1f14bb07fd166ae3fe660ee606f8bcec07d--python@3.9--3.9.7.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.68.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:ad356cbc8651147276eff312f762a05fabe846d598886858d4960e6935795823
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ad356cbc8651147276eff312f762a05fabe846d5988868
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/manifests/2.11.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/blobs/sha256:4e85cc5a025f1d8d9fedcb49775cfff4e1d2959bfda468445cecfc76c40e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:4e85cc5a025f1d8d9fedcb49775cfff4e1d2959bfda468
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/manifests/8.45
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/4a3bba0e8d1899c13ac3442d2c49df6c1999948bdc0943f2f179693257d82545--pcre-8.45.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/blobs/sha256:fb2fefbe1232706a603a6b385fc37253e5aafaf3536cb68b828ad1940b95e601
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/36d8eda3485a3534637f69cd7daf30332ff4a5622746550092948587ccee36f3--pcre--8.45.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.20
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27d8af232565f7f16e912a20505b0d5ff83f6782835b9492840213cbf5fa5d2--gdbm-1.20.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:ea88ce09e934407b1c7dfcc1b74e2d4f1b409f8264b4475b816369a129c6cd25
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/039ddb2682e5b93b3cd0ad30e130b5eab5bdb193e9e8d0239c9556958ccd992b--gdbm--1.20.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.36.0
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/f624e7fc68307d01f25a03c15c0a84ff3b65d4d984d85616e4181a685efd0548--sqlite-3.36.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:2c9c5f05c16c1fa972fc49c4b2705d7877b99640b6bb0b3908333e17f63dd7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27cd6f405f31a0171c05374d0dc9c4281f577e1822b52f5914cb2f40b647a7b--sqlite--3.36.0.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/4f570a18a1f2293b20b50278454402c7503a213c057fd9f8cae6db39a5add57b--python@3.9-3.9.7.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc366bd63589e6df
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/e6ddb56e9530666763b94a93220ee1f14bb07fd166ae3fe660ee606f8bcec07d--python@3.9--3.9.7.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.68.4
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/9e01c46a0a9318a9a59ce03a84fd75f4feac88efee8bf8ae7eca17eb4ee7d5dd--glib-2.68.4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:ad356cbc8651147276eff312f762a05fabe846d598886858d4960e6935795823
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/24c75f00cf9fe3b37c61bf3725aa5555bbc80707dcdd45f3f09d3f9ff5bea731--glib--2.68.4.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.7.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/blobs/sha256:7aee5576a2669a20c9c0421a5afdce633130aeebe3f610c646f15dd5fe299f
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:7aee5576a2669a20c9c0421a5afdce633130aeebe3f610
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/manifests/1.68.0_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/blobs/sha256:f2838a38fcc1c1fd675d9fb25d7076875498cf1374b9f4d
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f2838a38fcc1c1fd675d9fb25d7076875498cf1374b9f4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/manifests/2.11.0
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/6fc9daabfd87e1ebb1707b1edfc1d3cb1ac44c91a6af0bdbd3a4e9ea0d01c9af--freetype-2.11.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/blobs/sha256:4e85cc5a025f1d8d9fedcb49775cfff4e1d2959bfda468445cecfc76c40e
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/a411d1e978db0388eded70c0d4f4524a01f1832e8e2f6fff687eba47fec4cbc3--freetype--2.11.0.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/manifests/8.45
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/4a3bba0e8d1899c13ac3442d2c49df6c1999948bdc0943f2f179693257d82545--pcre-8.45.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/blobs/sha256:fb2fefbe1232706a603a6b385fc37253e5aafaf3536cb68b828ad1940b95e601
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/36d8eda3485a3534637f69cd7daf30332ff4a5622746550092948587ccee36f3--pcre--8.45.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.20
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27d8af232565f7f16e912a20505b0d5ff83f6782835b9492840213cbf5fa5d2--gdbm-1.20.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:ea88ce09e934407b1c7dfcc1b74e2d4f1b409f8264b4475b816369a129c6cd25
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/039ddb2682e5b93b3cd0ad30e130b5eab5bdb193e9e8d0239c9556958ccd992b--gdbm--1.20.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.36.0
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/f624e7fc68307d01f25a03c15c0a84ff3b65d4d984d85616e4181a685efd0548--sqlite-3.36.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:2c9c5f05c16c1fa972fc49c4b2705d7877b99640b6bb0b3908333e17f63dd7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27cd6f405f31a0171c05374d0dc9c4281f577e1822b52f5914cb2f40b647a7b--sqlite--3.36.0.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/4f570a18a1f2293b20b50278454402c7503a213c057fd9f8cae6db39a5add57b--python@3.9-3.9.7.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc366bd63589e6df
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/e6ddb56e9530666763b94a93220ee1f14bb07fd166ae3fe660ee606f8bcec07d--python@3.9--3.9.7.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.68.4
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/9e01c46a0a9318a9a59ce03a84fd75f4feac88efee8bf8ae7eca17eb4ee7d5dd--glib-2.68.4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:ad356cbc8651147276eff312f762a05fabe846d598886858d4960e6935795823
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/24c75f00cf9fe3b37c61bf3725aa5555bbc80707dcdd45f3f09d3f9ff5bea731--glib--2.68.4.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.7.2
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/226f97cf7b3069e54ea53c2b2b557264eb2da1132dd85cb8f1e0c93c7981d09c--libx11-1.7.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/blobs/sha256:7aee5576a2669a20c9c0421a5afdce633130aeebe3f610c646f15dd5fe299f
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/3cb12f4681c15d58e30a024d2ed1d9b3935d62c09709ef8bfd79c8beb84e7d18--libx11--1.7.2.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/manifests/1.68.0_1
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/bfec537e74be15e54d105a19c8c2140bcaea906dd07958cfa078997235659cde--gobject-introspection-1.68.0_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/blobs/sha256:f2838a38fcc1c1fd675d9fb25d7076875498cf1374b9f4d
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/d31f989db0a3ba0cca0befe2aa01b5a2437db774dac47874562432f5cccb2571--gobject-introspection--1.68.0_1.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/2.9.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/blobs/sha256:991c547aad91d318700252b2b63dc33a8a203779c9e4e68154d772e24a2f
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:991c547aad91d318700252b2b63dc33a8a203779c9e4e6
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/manifests/2.11.0
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/6fc9daabfd87e1ebb1707b1edfc1d3cb1ac44c91a6af0bdbd3a4e9ea0d01c9af--freetype-2.11.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/freetype/blobs/sha256:4e85cc5a025f1d8d9fedcb49775cfff4e1d2959bfda468445cecfc76c40e
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/a411d1e978db0388eded70c0d4f4524a01f1832e8e2f6fff687eba47fec4cbc3--freetype--2.11.0.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/manifests/8.45
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/4a3bba0e8d1899c13ac3442d2c49df6c1999948bdc0943f2f179693257d82545--pcre-8.45.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/blobs/sha256:fb2fefbe1232706a603a6b385fc37253e5aafaf3536cb68b828ad1940b95e601
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/36d8eda3485a3534637f69cd7daf30332ff4a5622746550092948587ccee36f3--pcre--8.45.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.20
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27d8af232565f7f16e912a20505b0d5ff83f6782835b9492840213cbf5fa5d2--gdbm-1.20.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:ea88ce09e934407b1c7dfcc1b74e2d4f1b409f8264b4475b816369a129c6cd25
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/039ddb2682e5b93b3cd0ad30e130b5eab5bdb193e9e8d0239c9556958ccd992b--gdbm--1.20.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.36.0
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/f624e7fc68307d01f25a03c15c0a84ff3b65d4d984d85616e4181a685efd0548--sqlite-3.36.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:2c9c5f05c16c1fa972fc49c4b2705d7877b99640b6bb0b3908333e17f63dd7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/c27cd6f405f31a0171c05374d0dc9c4281f577e1822b52f5914cb2f40b647a7b--sqlite--3.36.0.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.7
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/4f570a18a1f2293b20b50278454402c7503a213c057fd9f8cae6db39a5add57b--python@3.9-3.9.7.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:41d99040ba87c30b59dda54f1718aa05c584c0c3e6dc366bd63589e6df
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/e6ddb56e9530666763b94a93220ee1f14bb07fd166ae3fe660ee606f8bcec07d--python@3.9--3.9.7.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.68.4
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/9e01c46a0a9318a9a59ce03a84fd75f4feac88efee8bf8ae7eca17eb4ee7d5dd--glib-2.68.4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:ad356cbc8651147276eff312f762a05fabe846d598886858d4960e6935795823
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/24c75f00cf9fe3b37c61bf3725aa5555bbc80707dcdd45f3f09d3f9ff5bea731--glib--2.68.4.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.7.2
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/226f97cf7b3069e54ea53c2b2b557264eb2da1132dd85cb8f1e0c93c7981d09c--libx11-1.7.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/blobs/sha256:7aee5576a2669a20c9c0421a5afdce633130aeebe3f610c646f15dd5fe299f
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/3cb12f4681c15d58e30a024d2ed1d9b3935d62c09709ef8bfd79c8beb84e7d18--libx11--1.7.2.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/manifests/1.68.0_1
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/bfec537e74be15e54d105a19c8c2140bcaea906dd07958cfa078997235659cde--gobject-introspection-1.68.0_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gobject-introspection/blobs/sha256:f2838a38fcc1c1fd675d9fb25d7076875498cf1374b9f4d
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/d31f989db0a3ba0cca0befe2aa01b5a2437db774dac47874562432f5cccb2571--gobject-introspection--1.68.0_1.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/2.9.1
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/be89eddcd3e853a044027fcd8a1340aebee1d4a1119da92f4a2182c1ea256fc1--harfbuzz-2.9.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/blobs/sha256:991c547aad91d318700252b2b63dc33a8a203779c9e4e68154d772e24a2f
Already downloaded: /Users/[USER]/Library/Caches/Homebrew/downloads/d4d6b7a6ac317872699517389286a06ff193824d49b5852020057ca6569af6ef--harfbuzz--2.9.1.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/pango/manifests/1.48.10
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pango/blobs/sha256:ea25146681018c99e13404ee299f006679397c082a388c486c7a685ec8d8eca
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ea25146681018c99e13404ee299f006679397c082a388c
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/node/manifests/16.9.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/node/blobs/sha256:41336818ebd9fc549ccb3e7a0b4786056d48deb255afafd2c1a2b7ca8e1128d0
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:41336818ebd9fc549ccb3e7a0b4786056d48deb255afaf
######################################################################## 100.0%
==> Upgrading wget
  1.21.1 -> 1.21.2 

==> Pouring wget--1.21.2.big_sur.bottle.tar.gz
Error: Directory not empty @ dir_s_rmdir - /private/tmp/d20210916-68920-jsq99w


$ PHP_BUILD_CONFIGURE_OPTS="--with-bz2=/usr/local/opt/bzip2 --with-iconv=/usr/local/opt/libiconv" phpenv install 8.0.9

[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 8.0.9 into /Users/[User].anyenv/envs/phpenv/versions/8.0.9
[Skipping]: Already downloaded and extracted https://secure.php.net/distributions/php-8.0.9.tar.bz2
[Preparing]: /var/tmp/php-build/source/8.0.9
[Compiling]: /var/tmp/php-build/source/8.0.9
[xdebug]: Installing version 3.0.4
[Downloading]: http://xdebug.org/files/xdebug-3.0.4.tgz
[xdebug]: Compiling xdebug in /var/tmp/php-build/source/xdebug-3.0.4
[xdebug]: Installing xdebug configuration in /Users/[User]/.anyenv/envs/phpenv/versions/8.0.9/etc/conf.d/xdebug.ini
[xdebug]: Cleaning up.
Makefile:245: warning: overriding commands for target `test'
Makefile:132: warning: ignoring old commands for target `test'
[Info]: Enabling Opcache...
[Info]: Done
[Info]: The Log File is not empty, but the Build did not fail. Maybe just warnings got logged. You can review the log in /tmp/php-build.8.0.9.20210916182626.log or rebuild with '--verbose' option
[Success]: Built 8.0.9 successfully.

(6)

 $ anyenv versions

nodenv:
  system
  12.14.1
* 16.4.2 (set by /Users/[User]/.anyenv/envs/nodenv/version)

phpenv:
* system (set by /Users/[User]/.anyenv/envs/phpenv/version)
  8.0.9

(7) グローバルの切り替え

# グローバルの切り替え
$ phpenv global 8.0.9

(補足) phpenvにインストールしたバージョンが無い時

noel-ingenieur.hateblo.jp



目次へ戻る

noel-ingenieur.hateblo.jp