ubuntu12.04编译环境安装

deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
#apt-get install openjdk-7-jdk
 
# apt-get install git gnupg flex bison gperf build-essential   zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev   libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386   libgl1-mesa-dev g++-multilib mingw32 tofrodos   python-markdown libxml2-utils xsltproc zlib1g-dev:i386
  # apt-get install linux-libc-dev:i386
#ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

<

Make/Build Environment
OS Linux Ubuntu 12.04 (LTS, long term support version) 64bit
Windows/Mac are NOT supported, Ubuntu 10.04 are NOT supported
PC Memory & Disk Space 16+G physical memory(large size recommended for build performance) 
-Avoid “JVM run out of memory”
-Speed up build performance
40+G or more disk space is needed (to build Android tree)
Make Utility GNU Make v3.81 or above
Perl, Python, Interpreter Perl 5.14.2
Python 2.7.3
Compilation Tools Open 1.7.0_55(Sun JDK NOT supported, JDK 1.6 NOT supported) 
Others packages listed in http://source.android.com/source/initializing.html