Linux
在 SLES Linux 上使用 tar
我正在嘗試從這些說明中安裝一些軟體包:
http://www.franz.com/agraph/support/documentation/v4/server-installation.html#header3-25
我執行這個命令:
tar zxf agraph-4.2-linuxamd64.64.tar.gz
並得到這個錯誤:
tar: agraph-4.2-linuxamd64.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors
知道為什麼會發生這種情況以及如何使其發揮作用嗎?謝謝!
您似乎尚未下載該文件,或者您不在下載該文件的目錄中,或者您嘗試打開的文件的名稱與說明中指定的名稱不同。做一個’ls’,你看到那裡的文件了嗎?
我能夠下載文件並成功解壓縮:
bryan@velouria:~$ mkdir test bryan@velouria:~$ cd test bryan@velouria:~/test$ wget http://www.franz.com/products/allegrograph/download/dist-sa/linuxamd64.64.4/agraph-4.2-linuxamd64.64.tar.gz --2011-05-04 17:35:02-- http://www.franz.com/products/allegrograph/download/dist-sa/linuxamd64.64.4/agraph-4.2-linuxamd64.64.tar.gz Resolving www.franz.com... 67.207.112.67 Connecting to www.franz.com|67.207.112.67|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 84235718 (80M) [application/x-gzip] Saving to: `agraph-4.2-linuxamd64.64.tar.gz' 100%[============================================================================================>] 84,235,718 708K/s in 2m 2s bryan@velouria:~/test$ ls agraph-4.2-linuxamd64.64.tar.gz bryan@velouria:~/test$ tar zxf agraph-4.2-linuxamd64.64.tar.gz bryan@velouria:~/test$ ls agraph-4.2 agraph-4.2-linuxamd64.64.tar.gz bryan@velouria:~/test$ ls agraph-4.2/ aclissl.so ag4-import.dxl agload.rc agraph-control agraph-recover.lic binary-license.txt convertdb gpl.txt sort-upi-map ag3-export ag4-import.lic agraph agraph.dxl agraph-recover.rc checkdb convertdb.dxl install-agraph templates ag3-export.dxl ag4-import.rc agraph-backup agraph.lic agraph-replicate checkdb.dxl convertdb.lic libacli8218.so www ag3-export.lic agload agraph-backup.dxl agraph.rc agraph-replicate.dxl checkdb.lic convertdb.rc liblzo2.so.2 ag3-export.rc agload.dxl agraph-backup.lic agraph-recover agraph-replicate.lic checkdb.rc doc locales ag4-import agload.lic agraph-backup.rc agraph-recover.dxl agraph-replicate.rc configure-agraph files.bu sendfd.so bryan@velouria:~/test$