問題描述:今天在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