Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > install wget on 10.1.2

install wget on 10.1.2
Thread Tools
scarab
Forum Regular
Join Date: Sep 2001
Status: Offline
Reply With Quote
Jan 7, 2002, 05:56 AM
 
hey guys

please help

i downloaded wget 1.7.1, 1.5.3, 1.8.1 and 1.6 (you can see how desperate I am) and could not get it to install at all. could anyone please guide me through? i'm a real scared unix newbie.


when i navigate to the right directory and type 'make install', i get
"make: Nothing to be done for `install'."
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jan 7, 2002, 07:01 AM
 
Originally posted by scarab:
<STRONG>when i navigate to the right directory and type 'make install', i get
"make: Nothing to be done for `install'."</STRONG>
wget-1.8.1 compiles fine.

% cd /tmp
% curl -O ftp://ftp.gnu.org/gnu/wget/wget-1.8.1.tar.gz
% gnutar -zxf wget-1.8.1.tar.gz
% cd wget-1.8.1
% ./configure --sysconfdir=/etc --disable-nls
% make
% sudo make install

[ 01-07-2002: Message edited by: rkt ]
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 7, 2002, 10:24 AM
 
Screw compiling such a simple application as wget, get the pre-packaged binary from macos.forked.net. Or here:
http://www.versiontracker.com/morein...d=13043&db=mac

"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
scarab  (op)
Forum Regular
Join Date: Sep 2001
Status: Offline
Reply With Quote
Jan 7, 2002, 11:21 AM
 
Thanks! I went the terminal way because my geeky instincts overpowered me
     
petej
Dedicated MacNNer
Join Date: Oct 2001
Location: Baltimore, MD, US
Status: Offline
Reply With Quote
Jan 10, 2002, 10:20 AM
 
curl does seem to do everything wget does and more, and it's installed as part of OS X now.
     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jan 11, 2002, 08:01 AM
 
Curl roxx0rz [sic].

;p
[Wevah setPostCount:[Wevah postCount] + 1];
     
amonitzer
Forum Regular
Join Date: Aug 2001
Location: Vienna, Austria
Status: Offline
Reply With Quote
Jan 12, 2002, 06:54 AM
 
Originally posted by petej:
<STRONG>curl does seem to do everything wget does and more, and it's installed as part of OS X now.</STRONG>
curl doesn't resume automatically and doesn't keep trying to log into a server, so it's pretty useless for less-than-perfect conditions.
     
petej
Dedicated MacNNer
Join Date: Oct 2001
Location: Baltimore, MD, US
Status: Offline
Reply With Quote
Jan 16, 2002, 08:06 AM
 
That's true; you'd have to script a solution around curl for that. Curl does support resuming transfers, and you can get the existing size of the file automatically, so the scripted solution wouldn't be too hard, but this does seem to be an area in which wget does something curl doesn't.

Curl does SSL transfers, though, which I find helpful; wget doesn't seem to do them, at least as shipped.
     
petej
Dedicated MacNNer
Join Date: Oct 2001
Location: Baltimore, MD, US
Status: Offline
Reply With Quote
Jan 16, 2002, 08:14 AM
 
It looks like you could script a transfer with retries like this:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
#!/bin/sh

KEEPTRYING=<font color = blue>1</font>

while $KEEPTRYING
do
if [ -r fileIwant ] then
curl -C `ls -l fileIwant | awk '{print $<font color = blue>5</font>}'` <A HREF=<font color = red>"http:<font color = brown>//somesite/fileIwant"</font> TARGET=_blank>http://somesite/fileIwant</A> </font>
else
curl <A HREF=<font color = red>"http:<font color = brown>//somesite/fileIwant"</font> TARGET=_blank>http://somesite/fileIwant</A> </font>
fi
KEEPTRYING=$?
sleep <font color = blue>5</font>
done

</font>[/code]

If you got the site or filename wrong, this would repeat forever, so the sleep 5 keeps the command from chewing up your system.

I didn't actually run this, so I don't know for sure it works, but the general principles are right.
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jan 16, 2002, 01:24 PM
 
Originally posted by petej:
<STRONG>Curl does SSL transfers, though, which I find helpful; wget doesn't seem to do them, at least as shipped.</STRONG>
wget doesn't currently support ssl.
     
AndyT
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Jan 16, 2002, 07:26 PM
 
I can't see a recursive option in "curl --help"
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:53 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,