While installing php via brew on MacOs, i got the output below. So i am asking why python dependency is needed while installing php?
==> Installing dependencies for [email protected]: [email protected] and glib
==> Installing [email protected] dependency: [email protected]
==> Pouring [email protected]_4.mojave.bottle.tar.gz
==> /usr/local/Cellar/[email protected]/3.9.1_4/bin/python3 -m ensurepip
==> /usr/local/Cellar/[email protected]/3.9.1_4/bin/pip3 install -v --global-option=--no-user-cfg --install-option=--force --install-option=--single-version-externally-managed --install-option=--record=installed.txt --upgrade --target=/usr/local
==> Caveats
Python has been installed as
/usr/local/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/[email protected]/libexec/bin
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.9/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
šŗ /usr/local/Cellar/[email protected]/3.9.1_4: 3,932 files, 61.7MB
==> Installing [email protected] dependency: glib
==> Pouring glib-2.66.4_1.mojave.bottle.1.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
šŗ /usr/local/Cellar/glib/2.66.4_1: 441 files, 20.3MB
==> Installing [email protected]
I know this question has some age but I just want to answer it.
In Homebrew, [email protected] depends on [email protected], it is because:
[email protected] does NOT depend on [email protected]. See the output of brew deps --tree [email protected] belowConclusion: it's Homebrew that needs Python, not PHP 7.4.
Output of brew deps --tree [email protected]:
[email protected]
āāā apr
āāā apr-util
ā āāā apr
ā āāā openssl@3
ā āāā ca-certificates
āāā argon2
āāā aspell
āāā autoconf
ā āāā m4
āāā curl
ā āāā brotli
ā āāā libidn2
ā ā āāā libunistring
ā ā āāā gettext
ā āāā libnghttp2
ā āāā libssh2
ā ā āāā openssl@3
ā ā āāā ca-certificates
ā āāā openldap
ā ā āāā openssl@3
ā ā āāā ca-certificates
ā āāā openssl@3
ā ā āāā ca-certificates
ā āāā rtmpdump
ā ā āāā openssl@3
ā ā āāā ca-certificates
ā āāā zstd
ā āāā lz4
ā āāā xz
āāā freetds
ā āāā openssl@3
ā ā āāā ca-certificates
ā āāā unixodbc
ā āāā libtool
ā āāā m4
āāā gd
ā āāā fontconfig
ā ā āāā freetype
ā ā āāā libpng
ā āāā freetype
ā ā āāā libpng
ā āāā jpeg-turbo
ā āāā libavif
ā ā āāā aom
ā ā ā āāā jpeg-xl
ā ā ā ā āāā brotli
ā ā ā ā āāā giflib
ā ā ā ā āāā highway
ā ā ā ā āāā imath
ā ā ā ā āāā jpeg-turbo
ā ā ā ā āāā libpng
ā ā ā ā āāā little-cms2
ā ā ā ā ā āāā jpeg-turbo
ā ā ā ā ā āāā libtiff
ā ā ā ā ā āāā jpeg-turbo
ā ā ā ā ā āāā xz
ā ā ā ā ā āāā zstd
ā ā ā ā ā āāā lz4
ā ā ā ā ā āāā xz
ā ā ā ā āāā openexr
ā ā ā ā ā āāā imath
ā ā ā ā āāā webp
ā ā ā ā āāā giflib
ā ā ā ā āāā jpeg-turbo
ā ā ā ā āāā libpng
ā ā ā ā āāā libtiff
ā ā ā ā āāā jpeg-turbo
ā ā ā ā āāā xz
ā ā ā ā āāā zstd
ā ā ā ā āāā lz4
ā ā ā ā āāā xz
ā ā ā āāā libvmaf
ā ā āāā jpeg-turbo
ā ā āāā libpng
ā āāā libpng
ā āāā libtiff
ā ā āāā jpeg-turbo
ā ā āāā xz
ā ā āāā zstd
ā ā āāā lz4
ā ā āāā xz
ā āāā webp
ā āāā giflib
ā āāā jpeg-turbo
ā āāā libpng
ā āāā libtiff
ā āāā jpeg-turbo
ā āāā xz
ā āāā zstd
ā āāā lz4
ā āāā xz
āāā gettext
āāā gmp
āāā icu4c
āāā krb5
ā āāā openssl@3
ā āāā ca-certificates
āāā libpq
ā āāā krb5
ā ā āāā openssl@3
ā ā āāā ca-certificates
ā āāā openssl@3
ā āāā ca-certificates
āāā libsodium
āāā libzip
ā āāā zstd
ā āāā lz4
ā āāā xz
āāā oniguruma
āāā openldap
ā āāā openssl@3
ā āāā ca-certificates
āāā [email protected]
ā āāā ca-certificates
āāā pcre2
āāā sqlite
ā āāā readline
āāā tidy-html5
āāā unixodbc
āāā libtool
āāā m4
Or if you prefer a graphical version that shows in a browser, you can use this command:
brew deps --graph [email protected]
Last, if you only prefer a summary of all dependencies, you can use this command:
brew deps [email protected]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With