如何将GDB更新到最新的稳定版本 [英] How to update GDB to most current, stable version

查看:706
本文介绍了如何将GDB更新到最新的稳定版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ubuntu 9机器映像上使用gdb版本6.8.我想将其更新为最新版本(7.8?),但不确定如何做.

I am using gdb version 6.8 on an ubuntu 9 machine image. I would like to update it to the latest one (7.8?) but I'm not sure how to do it.

我尝试按照此处的说明 https://askubuntu.com/questions/529781/upgrade-from-gdb-7-7-to-7-8 ,但它们不起作用.

I tried following the instructions here https://askubuntu.com/questions/529781/upgrade-from-gdb-7-7-to-7-8 but they didn't work.

它在tar命令处停了下来,并说这看起来不像tar文件"

It stopped at the tar command and said "this does not look a tar file"

任何人都可以帮忙吗?

谢谢

推荐答案

这只是一个猜测,但是您的tar版本可能太旧了,可能不支持xz压缩方案.您引用的链接建议下载gdb-7.8.tar.xz,您可以尝试运行unxz gdb-7.8.tar.xz,它将把文件解压缩为gdb-7.8.tar,然后可以重试tar -xf gdb-7.8.tar,现在应该可以了.

This is just a guess, but it might be the case that your version of tar is so old it does not support the xz compression scheme. The link you reference suggests downloading gdb-7.8.tar.xz, you can try running unxz gdb-7.8.tar.xz which will uncompress the file into gdb-7.8.tar, you can then retry tar -xf gdb-7.8.tar which should now work.

或者,您可以尝试下载此文件,而不是http://ftp.gnu.org/gnu/gdb/gdb-7.8.2.tar.gz,相比以前使用的是7.8,这是7.8.2版本,并且包含一些小错误修复,但是,此文件使用gzip压缩方案, tar中支持的时间超过xz,因此此新文件应使用tar -xf gdb-7.8.2.tar.gz提取.

Alternatively you could try downloading this file instead http://ftp.gnu.org/gnu/gdb/gdb-7.8.2.tar.gz, this is the 7.8.2 release compared to the 7.8 you were using before, and so contains a few minor bug fixes, however, this file uses the gzip compression scheme, which has been supported in tar for longer than xz, this new file should extract fine with tar -xf gdb-7.8.2.tar.gz.

最后,您可能有兴趣完全跳过7.8,然后直接转到7.10(

Finally, you might be interested in skipping 7.8 completely, and moving straight to 7.10 (http://ftp.gnu.org/gnu/gdb/gdb-7.10.tar.gz) as this should contain even more exciting new features and improvements.

这篇关于如何将GDB更新到最新的稳定版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆