Skip to content

Instantly share code, notes, and snippets.

@zachriggle
Created October 16, 2014 22:35
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zachriggle/2afe40af1416af68d1e5 to your computer and use it in GitHub Desktop.
Save zachriggle/2afe40af1416af68d1e5 to your computer and use it in GitHub Desktop.
apt-get install python2.7-dev python2.7
apt-get build-dep gdb
apt-get source gdb
sed -i -E "s|python3|/usr/bin/python2.7|" debian/rules
dpkg-buildpackage -uc -us -j8
dpkg-install ../*.deb
@ZetaTwo
Copy link

ZetaTwo commented Jun 1, 2015

isn't there a "cd gdb" missing? Thanks a lot anyway!

@evandrix
Copy link

you mean cd gdb-x.x.x

@evandrix
Copy link

./configure --with-python=python2 works too

@xaedes
Copy link

xaedes commented May 4, 2016

When you use ./configure --with-python=python2. You need to proceed with the well known make and sudo make install. After this you are finished.

@EspressoCake
Copy link

Thanks a ton, Zach!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment