orenoblog

エンジニアになりたいExcel方眼紙erの物語

OS X Lion おめーのwgetねえから!

マカーになってから日が浅いブータです。
wgetが使えないので、XCodeインストールして、makeしようとしたら、このようになった
面倒だから諦めた。

mba:wget-1.13 $ sudo ./configure
configure: configuring for GNU Wget 1.13
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin11.0.1
checking host system type... i386-apple-darwin11.0.1
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/*****/Downloads/wget-1.13':
configure: error: C compiler cannot create executables

これで解決
curl -O

10/16追記
Mac Portsをインストールするとwgetを簡単にインストールできました。

xcodeがインストール済みであること
・Mac Portsをインストール

$ sudo port install wget