配置gdb的问题

安装环境  ubuntu12.10 server

下载gdb-7.9.tar,gz

下载地址:http://www.gnu.org/software/gdb/download/

解压 gdb-7.9.tar.gz

#tar -zxvf gdb-7.9.tar.gz

进入gdb-7.9目录下

#cd gdb-7.9

#./configure --target=arm-linux --prefix=/usr/local/arm-gdb –v

(--target配置gdb的目标平台,--prefix配置安装路径,当然其他路径也可以, .跟下面配置一致即可,须在环境变量中声明,#vim /etc/environment,把arm-linux-gdb加入环境变量 (:/usr/local/arm-gdb/bin),然后

 #source /etc/environment  //更新环境变量

#make

这个地方看的很爽,有点黑客帝国的感觉,直到. . . . .

这里

configure: error: no termcap library found    make[1]: *** [configure-gdb] 错误 1

解决方法:安装 libncurses5-dev。

下载匹配自己系统版本号的libncurses。

下载地址:

(5.7_)   https://launchpad.net/ubuntu/maverick/i386/libncurses5-dev/

(5.9_)   http://packages.ubuntu.com/trusty/libncurses5-dev

然后解压安装。

 

再重新make,漫长的等待~~~

#make install

出现问题::

make[4]: 正在进入目录 `

/home/gdb-7.9/bin/

gdb'

make[5]: 正在进入目录 `

/home/gdb-7.9/bin/gdb/doc'

/home/gdb-7.9/missing makeinfo --split-size=5000000

--split-size=5000000 -I ../../../gdb/doc/../../readline/doc -I

../../../gdb/doc/../mi -I ../../../gdb/doc \

-o gdb.info ../../../gdb/doc/gdb.texinfo

WARNING: `makeinfo' is missing on your system. You should only need it if

you modified a `.texi' or `.texinfo' file, or any other file

indirectly affecting the aspect of the manual. The spurious

call might also be the consequence of using a buggy `make' (AIX,

DU, IRIX). You might want to install the `Texinfo' package or

the `GNU make' package. Grab either from any GNU archive site.

make[5]: *** [gdb.info] 错误 1

make[5]:正在离开目录 `

/home/gdb-7.9/bin/gdb/doc'

make[4]: *** [subdir_do] 错误 1

make[4]:正在离开目录 `

/home/gdb-7.9/bin/gdb'

make[3]: *** [install-only] 错误 2

make[3]:正在离开目录 `

/home/gdb-7.9/bin/gdb'

make[2]: *** [install] 错误 2

make[2]:正在离开目录 `

/home/gdb-7.9/bin/gdb'

make[1]: *** [install-gdb] 错误 2

make[1]:正在离开目录 `

/home/gdb-7.9/bin'

make: *** [install] 错误 2

 

问题原因:texinfo版本小于4.7或者没有安装texinfo

解决方法:下载并安装texinfo

下载地址:http://ftp.gnu.org/gnu/texinfo/texinfo-4.8a.tar.bz2

解压:

#sudo tar -zxvf texinfo-4.8a.tar.bz2

#cd texinfo-4.8a

#./configure

#make

#make install

安装完成之后再#make instal,发现问题仍然没有解决,

这是因为虽然安装了texinfo,由于没有重新configure,MAKEINFO宏并没有改变。

删除目录gdb-7.9以及arm-gdb

#rm -rf gdb-7.9

#rm -rf arm-gdb

重新解压

#tar -zxvf gdb-7.9.tar.gz

然后

#./configure --target=arm-linux --prefix=/usr/local/arm-gdb –v

#make 

#make install

至此,gdb安装完成了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值