brew install gdb
Updating Homebrew...
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/gdbm-1.18.1_1.mojave.bottle.tar.gz
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/9540a17eca08c96556d5f50097a166e449f10029e2690a566055ccd64988d486--gdbm-1.18.1_1.mojave.bottle.tar.gz
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/openssl%401.1-1.1.1g.mojave.bottle.tar.gz
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/02dd9c91d1bae10d4eb5dbc0d5bc97ea28130c8c99d7058b937dbb20f27f98f0--openssl@1.1-1.1.1g.mojave.bottle.tar.gz
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/readline-8.0.4.mojave.bottle.tar.gz
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/33edd7a0b045528339a29d972b4839824be7fa272c102bf06302bee08b128b79--readline-8.0.4.mojave.bottle.tar.gz
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/sqlite-3.33.0.mojave.bottle.tar.gz
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/ff249e6058aff180b361d902125c7b6848ba2c7f030a7ce8b0e703490427b835--sqlite-3.33.0.mojave.bottle.tar.gz
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/xz-5.2.5.mojave.bottle.tar.gz
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/603b0372e66fd1d308813ae37c8d676e6f777f2f5d438782f1b7f2c3c2db0cdd--xz-5.2.5.mojave.bottle.tar.gz
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/python%403.8-3.8.5.mojave.bottle.tar.gz
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "python@3.8"
Download failed: https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/python%403.8-3.8.5.mojave.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://files.pythonhosted.org/packages/2f/8e/38259f4a44944a92068d5ff77230511a4c685604b47a81318f9e5cf2cc
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/3076c60e0e877e751ede5c4601e3a6dd3bbdd83a9a9415c27907671c9da74a10--setuptools-49.2.0.zip
==> Downloading https://files.pythonhosted.org/packages/08/25/f204a6138dade2f6757b4ae99bc3994aac28a5602c97ddb2a35e0e22fb
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/bdc0898a739d3f47fd1eb7b8e5173a7e616e2c3419b5d17f734fedccadd42e9b--pip-20.1.1.tar.gz
==> Downloading https://files.pythonhosted.org/packages/75/28/521c6dc7fef23a68368efefdcd682f5b3d1d58c2b90b06dc1d0b805b51
Already downloaded: /Users/a/Library/Caches/Homebrew/downloads/553d732b4cf117039b60aab1f75ac3e6f6869a9fa3127b4107984fa5b084a00b--wheel-0.34.2.tar.gz
==> Downloading https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xz
######################################################################## 100.0%
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/gdb-9.2_1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Installing dependencies for gdb: gdbm, openssl@1.1, readline, sqlite, xz and python@3.8
==> Installing gdb dependency: gdbm
==> Pouring gdbm-1.18.1_1.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/gdbm/1.18.1_1: 25 files, 620.8KB
==> Installing gdb dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1g.mojave.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@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
If you need to have openssl@1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/a/.bash_profile
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
==> Summary
🍺 /usr/local/Cellar/openssl@1.1/1.1.1g: 8,059 files, 18MB
==> Installing gdb dependency: readline
==> Pouring readline-8.0.4.mojave.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.
For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"
==> Summary
🍺 /usr/local/Cellar/readline/8.0.4: 48 files, 1.5MB
==> Installing gdb dependency: sqlite
==> Pouring sqlite-3.33.0.mojave.bottle.tar.gz
==> Caveats
sqlite 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 sqlite first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> /Users/a/.bash_profile
For compilers to find sqlite you may need to set:
export LDFLAGS="-L/usr/local/opt/sqlite/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include"
==> Summary
🍺 /usr/local/Cellar/sqlite/3.33.0: 11 files, 4MB
==> Installing gdb dependency: xz
==> Pouring xz-5.2.5.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/xz/5.2.5: 92 files, 1.1MB
==> Installing gdb dependency: python@3.8
==> Pouring python@3.8-3.8.5.mojave.bottle.tar.gz
tar: Error opening archive: Failed to open '/Users/a/Library/Caches/Homebrew/downloads/5bcc73ea6d2a44152e5188c32af426095de9e1b671c289ae6317ab9c30edbecb--python@3.8-3.8.5.mojave.bottle.tar.gz'
Error: Failure while executing; `tar xof /Users/a/Library/Caches/Homebrew/downloads/5bcc73ea6d2a44152e5188c32af426095de9e1b671c289ae6317ab9c30edbecb--python@3.8-3.8.5.mojave.bottle.tar.gz -C /var/folders/ry/xq9dj2p5267dh6zkp8htsb6r0000gn/T/d20200901-3787-11hwjem` exited with 1. Here's the output:
tar: Error opening archive: Failed to open '/Users/a/Library/Caches/Homebrew/downloads/5bcc73ea6d2a44152e5188c32af426095de9e1b671c289ae6317ab9c30edbecb--python@3.8-3.8.5.mojave.bottle.tar.gz'
Warning: Bottle installation failed: building from source.
==> Installing dependencies for python@3.8: pkg-config
==> Installing python@3.8 dependency: pkg-config
==> Pouring pkg-config-0.29.2_3.mojave.bottle.tar.gz
tar: Error opening archive: Failed to open '/Users/a/Library/Caches/Homebrew/downloads/5821567cf94a28a1c919b7819d355802fd1502605a685c0f0a9d6249ea20d7b3--pkg-config-0.29.2_3.mojave.bottle.tar.gz'
Error: Failure while executing; `tar xof /Users/a/Library/Caches/Homebrew/downloads/5821567cf94a28a1c919b7819d355802fd1502605a685c0f0a9d6249ea20d7b3--pkg-config-0.29.2_3.mojave.bottle.tar.gz -C /var/folders/ry/xq9dj2p5267dh6zkp8htsb6r0000gn/T/d20200901-3787-1hbmlcj` exited with 1. Here's the output:
tar: Error opening archive: Failed to open '/Users/a/Library/Caches/Homebrew/downloads/5821567cf94a28a1c919b7819d355802fd1502605a685c0f0a9d6249ea20d7b3--pkg-config-0.29.2_3.mojave.bottle.tar.gz'
Warning: Bottle installation failed: building from source.
==> Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/pkg-config/0.29.2_3 --disable-host-tool --with-internal-glib --with-pc-path=/
==> make
==> make install
🍺 /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 628KB, built in 2 minutes 13 seconds
==> ./configure --prefix=/usr/local/Cellar/python@3.8/3.8.5 --enable-ipv6 --datarootdir=/usr/local/Cellar/python@3.8/3.8
==> make
==> make install PYTHONAPPSDIR=/usr/local/Cellar/python@3.8/3.8.5
==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python@3.8/3.8.5/share/python@3.8
==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts
==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts
==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts
==> 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/python@3.8/libexec/bin
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.8/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺 /usr/local/Cellar/python@3.8/3.8.5: 9,032 files, 128.9MB, built in 2 minutes
==> Installing gdb
==> Pouring gdb-9.2_1.mojave.bottle.tar.gz
==> Caveats
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:
https://sourceware.org/gdb/wiki/BuildingOnDarwin
On 10.12 (Sierra) or later with SIP, you need to run this:
echo "set startup-with-shell off" >> ~/.gdbinit
==> Summary
🍺 /usr/local/Cellar/gdb/9.2_1: 55 files, 27.9MB
==> Caveats
==> openssl@1.1
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
If you need to have openssl@1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/a/.bash_profile
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.
For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"
For pkg-config to find readline you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
==> sqlite
sqlite 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 sqlite first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> /Users/a/.bash_profile
For compilers to find sqlite you may need to set:
export LDFLAGS="-L/usr/local/opt/sqlite/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include"
For pkg-config to find sqlite you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"
==> python@3.8
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/python@3.8/libexec/bin
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.8/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
==> gdb
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:
https://sourceware.org/gdb/wiki/BuildingOnDarwin
On 10.12 (Sierra) or later with SIP, you need to run this:
echo "set startup-with-shell off" >> ~/.gdbinit
brew install gbd
最新推荐文章于 2022-12-07 11:58:00 发布