2019. 4. 4. 13:22ㆍOS/리눅스
How to install gdb & peda on ubuntu 18.04.02_LTS(Bionic Beaver)
First, remove gdb and install python 2.x, library
#> apt-get remove gdb
#> apt-get install python2.7-dev
#> apt-get install libcurses*
#> apt-get install texinfo
#> apt-get install git
Second, you must download gdb-8.0.tar.gz file and install this file
#> wget http://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.gz
#> tar xvzf gdb-8.0.tar.gz
#> cd gdb-8.0
#> ./configure --with-python=python2
or
#> ./configure
#> make
#> make install
Third, find gdb execute file and replace new gdb file
#> which gdb
#> /usr/local/bin/gdb
#> cp gdb/gdb /usr/local/bin/gdb
#> gdb --version
Fourth, use command "git clone" you downloaded peda.git from git and install
#> git clone https://github.com/longld/peda.git
#> echo "source ($peda_install_pth)/peda.py" >> /root/.gdbinit
'OS > 리눅스' 카테고리의 다른 글
Linux binary (0) | 2019.04.04 |
---|---|
ubuntu-16.04(Xenial Xerus) -> ubuntu-18.04(Bionic Beaver) (0) | 2019.04.04 |
centos 7 apm yum install (0) | 2018.12.18 |
linux kernel upgrade (0) | 2018.12.16 |
리눅스 fork 함수 호출 (0) | 2018.12.15 |