Why can't I find termcap library when I build gdb?
Solution 1:
Installing libncurses will solve your problem. Try this if you are using any Debian OS:
sudo apt-get install libncurses5-dev
.
Solution 2:
./configure --includedir=/var/lib/gforge/chroot/home/users/mirror/ins/ins-gdb/include/ --libdir=/var/lib/gforge/chroot/home/users/mirror/ins/ins-gdb/lib/
--includedir and --libdir are options for installation directories.
In order to use libraries from another directories, you can try to do the following:
CFLAGS="-I/var/lib/gforge/chroot/home/users/mirror/ins/ins-gdb/include/" LDFLAGS="-L/var/lib/gforge/chroot/home/users/mirror/ins/ins-gdb/lib/" ./configure