- sudo apt-get install python (>2.6)
- sudo apt-get install make (>3.81)
- sudo apt-get install git
- sudo apt-get install curl
- sudo apt-get install libc6:i386 (Ubuntu 13.10)
- sudo apt-get install libstdc++6:i386 (Ubuntu 13.10)
- sudo apt-get install libncurses5:i386 (Ubuntu 13.10)
- sudo apt-get install zlib1g:i386 (Ubuntu 13.10)
- sudo apt-get install ia32-libs (Ubuntu 12.04)
- sudo apt-get install gcc-4.4 g++-4.4 gcc-4.4-multilib g++-4.4-multilib
- cd /usr/bin
- sudo rm –f gcc
- sudo ln –s gcc-4.4 gcc
- sudo rm –f g++
- sudo ln –s g++-4.4 g++
sudo apt-get install gnupg flex bison zip
sudo apt-get install gperf build-essential git-core
x11proto-core-dev libx11-dev libx11-dev:i386 lib32readline6-dev
lib32readline6-dev:i386 lib32z1-dev libgl1-mesa-dev libgl1-mesa-glx:i386
mingw32 tofrodos python-markdown libxml2-utils
安裝Java
- wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
- chmod u+x jdk-6u45-linux-x64.bin
- ./jdk-6u45-linux-x64.bin
- sudo mv jdk1.6.0_45 /opt
- sudo update-alternatives --install "/usr/bin/jar" "jar" "/opt/jdk1.6.0_45/bin/jar" 1
- sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_45/bin/java" 1
- sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk1.6.0_45/bin/javac" 1
- sudo update-alternatives --install "/usr/bin/javadoc" "javadoc" "/opt/jdk1.6.0_45/bin/javadoc" 1
- sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/opt/jdk1.6.0_45/jre/lib/amd64/libnpjp2.so" 1
- sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jdk1.6.0_45/bin/javaws" 1
- sudo update-alternatives --config jar
- sudo update-alternatives --config java
- sudo update-alternatives --config javac
- sudo update-alternatives --config javadoc
- export _JAVA_HOME=/opt/jdk1.6.0_45/
- mkdir ~/bin
- PATH=~/bin:$PATH
- curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
- chmod a+x ~/bin/repo
沒有留言:
張貼留言