Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install a 10gen build of mongodb on my local mac running Mountain Lion (10.8.3):

I fetch it with curl at:

curl > mongodb.tgz

But I can't extract the build:

Attempt 1:

$ tar -zxvf mongodb.tgz

tar: Unrecognized archive format
tar: Error exit delayed from previous errors.

Attempt 2:

$ gunzip mongodb.tgz

gzip: mongodb.tgz: not in gzip format

Attempt 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, and cannot find mongodb.tgz.ZIP, period.

Double Clicking: If I double click the tgz file in the finder, it creates a new file mongodb.tgz 2.cpgz

Any idea what I'm doing wrong here? I tried various builds and they all reproduce this issue: > mongodb.tgz > mongodb.tgz > mongodb.tgz > mongodb.tgz
share|improve this question
do a "file mongodb.tgz" to identify the content type... – andrekeller Mar 19 '13 at 19:36
up vote 5 down vote accepted

you are trying to gunzip/untar not the archive file but the error page:

<head><title>403 Forbidden</title></head>
<h1>403 Forbidden</h1>
<li>Code: AccessDenied</li>
<li>Message: Access Denied</li>

try this link

share|improve this answer
I can't believe I didn't think to open that link in a browser. I'm reporting it to 10gen so they can fix the link. Cheers mate :) – AlienWebguy Mar 19 '13 at 20:23

Apologies, try The download URL changed with the release which we'll fix in the docs.

share|improve this answer
What are you apologizing for? Why are you repeating the link that Alex already gave? – Scott Mar 19 '13 at 21:27
Because I own the docs website where this was in error? We recently changed to version the MongoDB documentation, as a sideeffect instead of including the release (2.4.0) we were including the version (2.4) in these URLs which are updated when we do a new release. – epc Mar 20 '13 at 17:45
(1) No error, but it might have been nice to (briefly) state your affiliation/association in your answer, rather than forcing us to open your user page. (2) Why are you repeating the link that Alex P. already gave in his answer, which he posted more than an hour before you posted yours? – Scott Mar 20 '13 at 18:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .