wget one of many missing command in OS X
One of the downsides to using OS X from using Linux for such a long time is that you get so used to certain command line tools that aren't available on a vanilla OS X install. There are many ways to circumvent this process and I'll be going over the different ways of doing this on my web development and software development journey.
One way to install wget is to use curl
I usually stick with inputing commands in the command line, habit from Linux:
So you wanna switch directories to your download directory
Now check to see if wget was installed properly in the /usr/local/bin/wget
If it returns:
You know that you installed it correctly on your system.
The other method to download wget would be through Homebrew. Which the command is:
Hopefully this tutorial has helped you install wget on your machine. And I'll be posting another post soon on how to install Homebrew on your OS X machine. A must have if you are going to begin using OS X as a web development machine.
One way to install wget is to use curl
I usually stick with inputing commands in the command line, habit from Linux:
So you wanna switch directories to your download directory
cd ~/Downloads
Then you want to run the curl to get wget from ftp.gnu.org
curl -O http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz
Then you want to extract wget from it's archived tar.gz.
tar -zxvf wget-1.15.tar.gz
And then navigate to the directory.
cd wget-1.15/
Now to configure and install wget
./configure
Note: If a error on SSL occurs such as the following;
configure: error: --with-ssl was given, but GNUTLS is not available.
So Run the following commands:
./configure --with-ssl=openssl
make
sudo make install
Now check to see if wget was installed properly in the /usr/local/bin/wget
ls /usr/local/bin/wget
If it returns:
/usr/local/bin/wget
You know that you installed it correctly on your system.
The other method to download wget would be through Homebrew. Which the command is:
brew install wget
Hopefully this tutorial has helped you install wget on your machine. And I'll be posting another post soon on how to install Homebrew on your OS X machine. A must have if you are going to begin using OS X as a web development machine.
Comments
Post a Comment