The wget utility recently came up in a JavaRanch topic and I recalled that this very useful utility doesn't come natively installed on Mac OS X, even if you install the Developer Tools.
I also recalled that it took me less than 10 minutes to download the sources and build it.
Figuring that I should probably rebuild the latest and greatest, here are the steps I took to build wget 1.9 on Mac OS X 10.3.8 with the Developer Tools installed:
- Get the source from ftp://ftp.gnu.org/pub/gnu/wget/wget-1.9.tar.gz
- Unpack the tarball:
tar xzf wget-1.9.tar.gz - This creates a folder named
wget-1.9. Change the working folder to it:cd wget-1.9/ - Configure the build:
./configure - Build:
make - Install:
sudo make install - The
wgetbinary should now be in your /usr/local/bin folder.
>but i still cannot use it.
At the command prompt, type:
echo $PATH
Is /usr/local/bin one of the paths on the list? (the list is colon-separated)
Do you have the developer tools installed?
I do not believe that the C compiler comes with the base installation.
I was getting this error because I was trying to do a minimal install of xcode tools. I just wanted to compile command line programs. After fiddling a bit, this is what I needed to include in the custom setting of the xcode install.
- Developers Tools SOftware - gcc 4 - gcc 3.3 Software Dev Kits - Mac OS X SDK - BSD SDK
-----
Check out the BARTsmart BART Widget for Mac OS X, featuring BART train schedules and news.
>>>
configuring for GNU Wget 1.9
checking build system type... i386-apple-darwin8.5.1
checking host system type... i386-apple-darwin8.5.1
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
>>>
I'm lost. Don't know, why I can't any longer compile from the command line...
And ideas?
CU,
s
with developer tools Xcode 2.1
./configure --mandir=/usr/local/share/man make make install
ps. I had cURL recommended to me too, but I have scripts all setup for wget, which I also script through. WGET is my champ.
PEACE, Pix :.
configure --infodir=/usr/share/info --mandir=/usr/share/man --bindir=/usr/bin --sysconfdir=/etc; make; sudo make installalso works. You don't need to change any configuration file, environment variable, symbolic link...
You don't need Xcode per se, but you do need the C compiler. I'm pretty sure that you need to install the Dev Tools (which includes Xcode) to get that.
I always automatically install the dev tools after an OS install, so I'm not sure what comes with the OS and what comes with the dev tools.