Mac OS X Leopard kommt standardmäßig mit curl statt wget. Beide Programme machen zwar das gleiche, ich möchte jedoch wget haben, da dies von meinen vorhandenen Scripten verwendet wird. Voraussetzung für das folgende HowTo ist eine Installation der Apple XCode Developer Tools. Per Terminal wird wget wie folgt installiert:
curl -o wget-latest.tar.gz http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar xzf wget-latest.tar.gz
cd wget-x.y.z # Verzeichnis, das im latest Archiv verpackt war, z.B. wget-1.11.4
./configure
make
sudo make install
Und wir räumen auch wieder auf:
cd ..
rm wget-latest.tar.gz
rm -rf wget-x.y.z
Alternativ ist die Installation auch mit MacPorts möglich:
sudo port install wget
Update: Ab der Version 1.13 von wget verlangt die Installation standardmäßig GnuTLS an Stelle von OpenSSL.* GnuTLS ist aber nicht standardmäßig installiert. Wir können die Installation aber anweisen, OpenSSL zu nutzen in dem wir den obigen Aufruf von ./configure um einen passenden Schalter erweitern:
./configure –with-ssl=openssl
Thanks, Ben, for this remark!
Pingback: HP Color LaserJet CP1215 unter Mac OS X 10.5 installieren at webadventures
Danke, hat mir geholfen!
Danke für die feine Installationsanleitung! Nach Update auf neuestes XCode (gratis aus dem App Store) funktioniert es auch mit Lion einwandfrei.
Prima, gut zu wissen!
Ich warte mit dem Update noch bis auch Office dort einwandfrei funktioniert.
Alternativ auch mit brew.
https://github.com/mxcl/homebrew/wiki/installation
# brew install wget
Hallo und danke für den Tipp, bei mir will es aber nicht ganz:
configure: error: no acceptable C compiler found in $PATH
OSX 10.04.11
Die Apple Developer Tools (mitgeliefert auf der Mac OS X Installations-DVD) müssen installiert sein. Da ist u.a. der compiler dabei.
Just tried this but make failed because ./configure doesn’t create the make file.
The cause for this is a dependency on GNUTLS from wget 1.13 on.
Found this : “wget 1.13 and newer tries to find gnutls by default rather than openssl (apparently because GNU doesn’t like the openssl license), and configure fails unless you pass it –with-ssl=openssl (or install gnutls, obviously…).”
Running ./configure –with-ssl=openssl got the ball rolling again for me.
source: https://github.com/mxcl/homebrew/issues/7047
Thank you for the advice! I’ll add this in my article.
The reason for the dropped support is probably the fact that GnuTLS in contrast to OpenSSL supports TLS in version 1.1, which fixes a recently discovered SSL exploit. But at least for my low usage of wget I don’t care. Especially as there are only few servers supporting TLS 1.1 right now: Apache uses OpenSSL as well.
Pingback: Typo3 sinnvoll auf mac os x installieren « vlada.dev