如何将 GDB 更新到最新的稳定版本 [英] How to update GDB to most current, stable version
问题描述
我在 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.2 版本比较对于您之前使用的 7.8,因此包含一些小错误修复,但是,此文件使用 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 (http://ftp.gnu.org/gnu/gdb/gdb-7.10.tar.gz),因为这应该包含更多令人兴奋的新功能和改进.
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屋!