A pre-requisite for this to work is that you have the second disc of utilities that came with your Mac installed. This disc will provide a bunch of utilities required to compile code. Alternatively, you can Install Xcode from the App Store (it’s free!) and you will get all of the same utilities.
UPDATE: Installing Xcode is no longer good enough.You will now need to open Xcode, go to preferences (Cmd + ,), go to Downloads, and install the Command Line Tools feature. This installs a bunch of development tools onto your system.
Run the following commands in a terminal window to compile wget on OS X Lion:
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz tar -xzvf wget-1.13.4.tar.gz cd wget-1.13.4 ./configure --with-ssl=openssl make sudo make install which wget #Should output: /usr/local/bin/wget
Note the with-ssl=openssl option in the command above. If you omit that, you will get the following error:
... checking for compress in -lz... yes checking for gpg_err_init in -lgpg-error... no checking for gcry_control in -lgcrypt... no checking for libgnutls... no configure: error: --with-ssl was given, but GNUTLS is not available. username@host:~/wget-1.13.4 $
The reason for this is that GNUTLS isn’t included with Mac OS X, but the equally usable library OpenSSL is available.
Latest posts by Thomas Hunter II (see all)
- Cobalt Dungeon for iOS is now available - 2018-03-12
- Cobalt Dungeon for Android is now available - 2018-03-06
- Cobalt Dungeon Dev 02: Creating a Bitmap Font for Phaser - 2018-03-05