Skip to content

Instantly share code, notes, and snippets.

@DSLituiev
Created April 12, 2018 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DSLituiev/309c9cb7796454eb429379226adbacad to your computer and use it in GitHub Desktop.
Save DSLituiev/309c9cb7796454eb429379226adbacad to your computer and use it in GitHub Desktop.
installing gdb on MacOS with conda python support
# install gettext; after installation it outputs LDFLAGS and CPPFLAGS values.
brew reinstall gettext
# export gettext and conda-specific flags
export LDFLAGS="-Wl,-rpath,/Applications/anaconda3/lib/ -L/Applications/anaconda3/lib/ -L/usr/local/opt/gettext/lib"
export CPPFLAGS="-I/usr/local/opt/gettext/include"
# extract gdb
tar xvf gdb-8.1.tar.gz
cd gdb-8.1
# configure - make - install
./configure --with-python=/Applications/anaconda3/bin/python3.6
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment