linux解压.tar.gz文件时产生gzip: stdin: not in gzip format tar: /Child returned status 1 tar: Error is not recoverable: exiting now错误

问题描述:今天在linux系统上通过wget http://downloads.souceforge.net/tcl/tcl8.6.1-src.tar.gz从网上下载资源后通过tar -zxvf tcl8.6.1-src.tar.gz产生如下错误

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

(ps:后来经过检查发现时sourceforge的拼写有问题但经过百度发现不仅拼写出错会导致上述问题,如果链接失效或者跳转的链接是单纯的网页也都会影响下载,所以还是有必要记录下来解决过程的)

解决过程:

1.经过查看http://downloads.souceforge.net/tcl/tcl8.6.1-src.tar.gz网址得知该链接跳转有问题

2.通过搜索tcl8.6.1-src.tar.gz进入tcl官网

3.复制http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz网址即可作为下载链接

4.或点击上述网址,自动跳转到如下页面后稍等5秒会自动跳出下载的提示窗口,复制弹窗网址:

https://nchc.dl.sourceforge.net/project/tcl/Tcl/8.6.1/tcl8.6.1-src.tar.gz也可作为下载链接

5.安装完成后进行解压.tar.gz包    tar –zxvf tcl8.6.1-src.tar.gz

6.    切换目录:cd tcl8.6.1/unix

7.        ./configure //执行configure文件

8.       make    //编译

9.       make install   //安装

10.-zxvf是tar命令解压缩的语法:

-x  解包.tar文件

-v  显示详细信息

-f  指定解压文件

-z  解压缩

范例:$ tar -zxvf  dir1.tar.gz

 

posted on 2018-10-16 19:51  二维空间  阅读(1674)  评论(0编辑  收藏  举报

导航