qemuをmavericksにインストール
下記からソースをダウンロードする。
ソースを展開する
tar xfj qemu-2.0.0.tar.bz2
展開したディレクトリに移動し
./configure
を実行する。
ERROR: pkg-config binary 'pkg-config' not found
pkg-configがないらしいので、インストールするためにbrewを入れる
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
~/.bashrcに以下を追記してPATHを通す。
export PATH=$PATH:/usr/local/bin
pkg-configをインストールする。
brew install pkg-config
./configureを実行すると、以下のエラーがでる。
ERROR: glib-2.12 gthread-2.0 is required to compile QEMU
glibをインストール
brew install glib
以上を実行することで、qemuのconfigureが通る。
make
./configureを実行したディレクトリでmakeを実行すると以下のエラーがでる。
/bin/sh: autoreconf: command not found make: *** [/Users/ono_mac/Downloads/qemu-2.0.0/pixman/configure] Error 127
autoreconfがないので、以下のコマンドでインストール
brew install automake
もう一度makeすると、以下のエラーがでる
configure.ac:75: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1 make: *** [/Users/ono_mac/Downloads/qemu-2.0.0/pixman/configure] Error 1 make: *** Deleting file `/Users/ono_mac/Downloads/qemu-2.0.0/pixman/configure'
AC_PROG_LIBTOOLというマクロが定義されていないらしい。ということで、インストールする
brew install libtool
で再びmakeする。
make install
でインストール完了