我正在尝试在运行Mountain Lion(10.8.3)的本地Mac上安装MongenDB的10gen版本:
我在获取它curl
:
curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.tgz > mongodb.tgz
但是我无法提取构建:
尝试1:
$ tar -zxvf mongodb.tgz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
尝试2:
$ gunzip mongodb.tgz
gzip: mongodb.tgz: not in gzip format
尝试3:
$ unzip mongodb.tgz
Archive: mongodb.tgz
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of mongodb.tgz or
mongodb.tgz.zip, and cannot find mongodb.tgz.ZIP, period.
双击:
如果我在查找器中双击tgz文件,它将创建一个新文件mongodb.tgz 2.cpgz
知道我在做什么错吗?我尝试了各种构建,它们都重现了此问题:
http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.tgz > mongodb.tgz
http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.3.tgz > mongodb.tgz
http://downloads.mongodb.org/osx/mongodb-osx-x86_32-2.4.tgz > mongodb.tgz
http://downloads.mongodb.org/osx/mongodb-osx-x86_32-2.3.tgz > mongodb.tgz
3
做一个“文件mongodb.tgz”来识别内容类型...
—
andrekeller