# Install GDB manually
1. Download the tar ball from the GDB official website.
* [website](https://ftp.gnu.org/gnu/gdb/)
```
$ wget https://ftp.gnu.org/gnu/gdb/gdb-14.1.tar.gz
```
2. untar the tarball and cd
```
$ tar zxvf gdb-14.1.tar.gz
$ cd gdb-14.1
```
3. create build folder
```
$ mkdir build
```
4. configure and complete
```
$ ./configure --with-python=python --prefix=$(readlink -f build)
$ make -j
```
* Maybe get the compile error.
* 
* `unset C_INCLUDE_PATH` to not include the /usr/include/unistd.h
* Maybe cannot find the python
```
checking whether to use python... yes
checking for python... /opt/python27/bin/python
checking for python2.7... no
configure: error: python is missing or unusable
```
0. Means cannot find the python library.
1. If you don't install python in your machine
* `sudo apt install python2-dev`
2. If you have python but it's not a system installation.
* `export LIBRARY_PATH=${LD_LIBRARY_PATH}:${LIBRARY_PATH}`
5. Install it.
* make install
6. the binary will be at <gdb\>/build/bin/gdb