首页 > 数据库技术 > 详细

gdb在Mac上的安装步骤

时间:2016-05-08 23:54:19      阅读:242      评论:0      收藏:0      [点我收藏+]

到gdb官网下载gdb安装包,解压后,在“终端”中进入其目录:然后依次执行如下命令行: 

1st:CFLAGS=‘-Wno-string-plus-int -g -O2‘ ./configure --disable-Werror

2nd:make

3rd:sudo make install

以上命令执行完成后,键入如下命令:

gdb 

终端显示如下:

GNU gdb (GDB) 7.6.1

Copyright (C) 2013 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-apple-darwin13.0.0".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

(gdb) 

 

表明编译安装成功。
 

gdb在Mac上的安装步骤

原文:http://www.cnblogs.com/Kokman/p/5472168.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!