1. 安装 java 6
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
- sudo apt-get update
- sudo apt-get install sun-java6-jdk
- sudo update-alternatives --config java
2. 安装其他的程序包
sudo 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-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 sudo apt-get install libgl1-mesa-dri
sudo apt-get install libgl1-mesa-glx:i386