编译和安装
按照官方手册和谷歌论坛上给出的补丁,分别在32和64位的ubuntu 12.04 LTS环境下完成了对TEMU的编译,以下是编译步骤:
# Things that require root access are preceded with "sudo".
# This script will build TEMU in a "$HOME/bitblaze" directory,
# assuming that temu-1.0.tar.gz is in /tmp.
cd ~
mkdir bitblaze
cd bitblaze
# TEMU is based on QEMU. It's useful to have a vanilla QEMU for testing
# and image development:
sudo apt-get install qemu
# Stuff needed to compile QEMU/TEMU:
sudo apt-get build-dep qemu
# The KQEMU accelerator is not required for TEMU to work, but it can
# be useful to run VMs faster when you aren't taking traces.
#
# The following commands would build a kqemu module compatible with
# your system QEMU, but in Ubuntu 9.04 that would be too new to work
# with TEMU.
# sudo apt-get install kqemu-common kqemu-source
# sudo apt-get install module-assistant
# sudo module-assistant -t auto-install kqemu
# For the BFD library:
sudo apt-get install binutils-dev
wget http://bitblaze.cs.berkeley.
tar xvzf temu-1.0.tar.gz
cd temu-1.0
patch -p0 <../temu-release2009-gcc4.
./configure --target-list=i386-softmmu --proj-name=sample_plugin --prefix=$(pwd)/install --disable-gcc-check
make
make install
/*********************************************************************************************************
在make install这一步会报以下错误:
error("make[1]: no rule to make target install; make *** [install]
error 2 ").
这主要是因为在makefile文件中没有install相应的操作,这一错误可以忽略,或者添加空的install语句(即不做任何操作&#x