我想用gdb在arm-Linux开发板上调试。编译 gdbserver 时出现错误。
主机:Ubuntu 11 32bit 目标:arm-linux-gcc(gcc 版本 4.4.3)
root@mickeyvm:/home/mickey/gdb-7.4# ./configure --target=arm-linux --host=arm-linux
make
我收到此错误消息:
configure: error: no termcap library found
根据我在谷歌搜索的内容。编译器无法获取 ncurses 库。
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for tgetent in -lcurses... no
checking for tgetent in -lncurses... no
我按照建议的解决方案安装 libncurses5-dev,但问题仍然存在。libncurses5 确实存在于我的 Linux 中。
root@mickeyvm:/home/mickey# dpkg -l | grep curse
ii libcurses-perl 1.28-1 Curses interface for Perl
ii libghc6-hscurses-dev 1.3.0.2-3build3 ncurses bindings for Haskell - development files for GHC6
ii libncurses5 5.7+20101128-1 shared libraries for terminal handling
ii libncurses5-dev 5.7+20101128-1 developer's libraries for ncurses
ii libncursesw5 5.7+20101128-1 shared libraries for terminal handling (wide character support)
ii libncursesw5-dev 5.7+20101128-1 developer's libraries for ncursesw
ii mtr-tiny 0.80-1 Full screen ncurses traceroute tool
ii ncurses-base 5.7+20101128-1 basic terminal type definitions
ii ncurses-bin 5.7+20101128-1 terminal-related programs and man pages
ii ncurses-term 5.7+20101128-1 additional terminal type definitions
请帮助并指出我错过了什么。非常感谢