我正在尝试根据以下说明安装一些包:
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
知道为什么会发生这种情况以及如何解决它吗?谢谢!
答案1
您似乎尚未下载该文件,或者您不在下载该文件的目录中,或者您尝试打开的文件的名称与说明中指定的名称不同。执行“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$