!!! Geek Alert !!!
Sometime ago Apple removed the tool wget from the OS X toolset and replaced it with the arguably more powerful curl tool. This new tool is great, and it has many new advanced features that the older wget tool lacks. However curl has one thing against it: it’s somewhat more complicated to use (and its man page is much longer). As a result, I find I use wget far more frequently.
So the question is, where to get wget?
The answer? Right here!
You can download a package of the binaries and an install script/readme file from here. (Thanks to Quentin Stafford-Fraser for doing the initial version of the binary pack).
Alternately, you can follow these steps (shamelessly cannibalized from wincent.com) to acquire and build wget for yourself. Note: This does require that you have the Apple Developer Tools (XCode) installed.
# Make a working directory somewhere, anywhere in fact. mkdir wget cd wget# The original instructions called for you to get the source from the cvs repository # but it looks like that copy of the code no longer exists. I believe they switched to # a subversion repository, but since OS X doesn't come with SVN by default, we'll # just have to do things the old fashioned way # Download a copy of the source code for wget. I found mine at # http://ftp.gnu.org/pub/gnu/wget/ # (pulling down a file like this is a perfect use for wget) curl http://ftp.gnu.org/pub/gnu/wget/wget-1.10.2.tar.gz -o wget-1.10.2.tar.gz # Uncompress the archive tar -zxvf wget-1.10.2.tar.gz # Move into the new wget source folder and perform the build actions cd wget-1.10.2 ./configure --with-ssl make # Run the installation command. This will require the root password to complete sudo make install # Exit the sudo exit # The default installation folder is /usr/local/bin. In Mac OS X 10.4.x, this folder # is not a part of the $PATH variable by default. You can add it with the command below export PATH=/usr/local/bin:$PATH |
Again, a big thank you to those whose articles I plagiarized referenced. These binaries above were compiled on the MacBook (Intel Core Duo, OS X 10.4.9). I would think that they will work on any Intel-based Mac for sure, not sure about PowerPC versions. Let me know if this works out for you!
EDIT (2007-06-02): Judging by some of the comments, it appears that this build does not work on PowerPC-based Macs. I’m looking into the steps required for creating a universal binary now… Stay Tuned!







Sweet article. I don’t know if WGET was replaced with curl, rather than just removed. I’ve been curling in OS X since at least 10.1. Good times!
Running os x server 10.4.9 on ppc, I do not have a couple of the folders referenced in install.sh:
/usr/local/man/man1
/usr/local/etc
Tried to install on a mere PowerPC running OS X 10.4.9. The directories
weren’t there, but that was easy to fix.
The problem here, though, is the message -bash: “./wget: cannot execute
binary file”. ‘file’ considers wget to be a “Mach-O executable i386″.
So I assume that’s a clear nono. Thanks anyway, will remember.
I think the difficulties may be in that the original build was done on an Intel-based Macbook. I suspect that the binary is probably compiled only for that processor.
I’m going to have to do some investigating on how to create a universal binary.