1. Mac 上环境安装

  • 安装 Homebrew

  

  • 修改 Homebrew 配置源(可选)

  cd "$(brew --repo)"

  git remote set-url origin https://mirrors.ustc.edu.cn/brew.git/

  cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-core

  git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git/

  cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-cask

  git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git/

  • 安装 GNU 命令行工具

  brew install coreutils findutils gnu-tar gnu-sed gawk gnutls gnu-indent gnu-getopt grep

2. 带 with-python 编译选项的 gdb 8.3 编译安装

可通过环境变量将需要的python3库导入,export LD_LIBRARY_PATH=/flash12/hope.lb/Software/anaconda3/lib:$LD_LIBRARY_PATH

mkdir build && cd build
# 使用系统路径下的python 2.x,3.x 可能存在问题
../configure --with-python --prefix=/flash12/hope.lb/Software/gdb-8.3/bin
make -j32 && make install

 

  

相关文章:

  • 2021-12-18
  • 2021-12-27
  • 2021-06-20
  • 2021-06-10
  • 2022-12-23
  • 2021-12-18
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案