rodrigosantosbr

[Ubuntu] How to install gdb

Dec 30th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

METHOD 1. You can install gdb using apt-get:

sudo apt-get update
sudo apt-get install gdb

METHOD 2. Download source code of GDB, compile it and install.

$ wget "http://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.gz"
$ tar -xvzf gdb-7.11.tar.gz
$ cd gdb-7.11
./configure
make
make install
gdb --version

By default this will install gdb binaries in /usr/local/bin and libs in /usr/local/lib

Add Comment
Please, Sign In to add comment