Miscellaneous

1. Mac 上环境安装

  • 安装 Homebrew

  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  • 修改 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

 

  

posted @ 2020-02-08 12:50  hopelee  阅读(290)  评论(0编辑  收藏  举报