missing system dependecies (some may not be missing):
sudo dnf install libtool flex bison autoconf automake
sudo dnf install texinfo
sudo dnf install readline-devel
get the code:
git clone https://github.com/cgdb/cgdb
build:
cd cgdb
./autogen.sh
mkdir build && cd build
../configure --prefix=/usr/
make -j $(nproc)
install:
sudo make install