使用zip出現(xiàn)Nosuchfileordirectory報(bào)錯怎么辦

本文小編為大家詳細(xì)介紹“使用zip出現(xiàn)No such file or directory報(bào)錯怎么辦”,內(nèi)容詳細(xì),步驟清晰,細(xì)節(jié)處理妥當(dāng),希望這篇“使用zip出現(xiàn)No such file or directory報(bào)錯怎么辦”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來學(xué)習(xí)新知識吧。

目前創(chuàng)新互聯(lián)已為千余家的企業(yè)提供了網(wǎng)站建設(shè)、域名、雅安服務(wù)器托管、網(wǎng)站托管運(yùn)營、企業(yè)網(wǎng)站設(shè)計(jì)、望城網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

tar (child): bzip2: Cannot exec: No such file or directory 報(bào)錯

問題現(xiàn)象:

[root@open_source ~]# tar -jxf postgresql-10.12.tar.bz2 
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

問題原因:

       沒有安裝bzip2包

[root@open_source ~]# rpm -qa|grep bzip
bzip2-libs-1.0.6-13.el7.x86_64

解決辦法:

        安裝bzip包

[root@open_source ~]# yum install -y bzip2
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
base                                                                          | 2.8 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package bzip2.x86_64 0:1.0.6-13.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
=====================================================================================================
 Package              Arch                  Version                        Repository           Size
=====================================================================================================
Installing:
 bzip2                x86_64                1.0.6-13.el7                   base                 52 k
 
Transaction Summary
=====================================================================================================
Install  1 Package
 
Total download size: 52 k
Installed size: 86 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : bzip2-1.0.6-13.el7.x86_64                                                         1/1 
  Verifying  : bzip2-1.0.6-13.el7.x86_64                                                         1/1 
 
Installed:
  bzip2.x86_64 0:1.0.6-13.el7                                                                        
 
Complete!
[root@open_source ~]# rpm -qa|grep bzip
bzip2-1.0.6-13.el7.x86_64
bzip2-libs-1.0.6-13.el7.x86_64

驗(yàn)證:

       問題已解決:

[root@open_source ~]# tar -jxf postgresql-10.12.tar.bz2 
[root@open_source ~]# ls -rld postgresql-10.12
drwxrwxrwx 6 1107 1107 273 Feb 10 17:32 postgresql-10.12

讀到這里,這篇“使用zip出現(xiàn)No such file or directory報(bào)錯怎么辦”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識點(diǎn)還需要大家自己動手實(shí)踐使用過才能領(lǐng)會,如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。

文章題目:使用zip出現(xiàn)Nosuchfileordirectory報(bào)錯怎么辦
標(biāo)題網(wǎng)址:http://bm7419.com/article12/igchgc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機(jī)、網(wǎng)站內(nèi)鏈、云服務(wù)器、定制網(wǎng)站、品牌網(wǎng)站制作、網(wǎng)站改版

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站網(wǎng)頁設(shè)計(jì)