Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ScKaSx

macrumors regular
Original poster
Feb 27, 2006
105
0
Hi All,

Sorry for posting so many issues at once. Anyways, I compiled wget from source since it doesn't come native on osx and moved the binary to /usr/local/bin (and this is in my path).

I'm trying to run a typical (PC) wget command:
wget -q -O - ftp://ftp.mutt.org/mutt/devel/mutt-1.5.16.taar.gz | tar xvfz -

However, I get the following error:
" gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors "

Any clues on how I can fix this, or is my syntax somehow off for the wget command. Note: I have 10.4.9 and gzip is located in /usr/bin (don't think this makes a difference).

Cheers,
ScKaSx
 
Code:
wget -q -O - ... | tar xvfz -
           ^                ^

I'm probably missing something quite obvious, but what are the two floating hyphens for? It's not usual unix parlance to have a hyphen with no flag attached to it.
 
I'm trying to run a typical (PC) wget command:
wget -q -O - ftp://ftp.mutt.org/mutt/devel/mutt-1.5.16.taar.gz | tar xvfz -

However, I get the following error:
" gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors "

Does it work better if you use
Code:
wget -q -O - [url]ftp://ftp.mutt.org/mutt/devel/mutt-1.5.16.tar.gz[/url] | tar xvfz -
instead?

You can also try
Code:
curl ftp://ftp.mutt.org/mutt/devel/mutt-1.5.16.tar.gz | tar xvfz -
Curl is included with OS X.

I'm probably missing something quite obvious, but what are the two floating hyphens for? It's not usual unix parlance to have a hyphen with no flag attached to it.
Well, it's not really that uncommon to refer to stdin/stdout that way, is it?
 
Are you sure that command line is correct. This can happen when the file isn't really gzipped etc

I use curl instead btw. 'curl -O url' is more or less the same as 'wget url'
 
Hi all,

Just an update, I'm an idiot. It works, I just typed the URL wrong. If you'll notice in my post I added an extra 'a' to the tar file. Sorry for wasting everyones time.

Any ideas.

Cheers,
ScKaSx
 
Just an update, I'm an idiot. It works, I just typed the URL wrong. If you'll notice in my post I added an extra 'a' to the tar file. Sorry for wasting everyones time.

Yeah, I noticed (as you can see in my previous reply), but I tried to be a bit nicer than calling you, as you phrased it, an idiot. ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.