Ubuntu 12.10 64bit 下Android 环境设定

http://www.linuxidc.com/Linux/2012-12/76181.htm

1. 安装所有的套件
sudo apt-get install git-core 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:i386 g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386


2 . gcc 降级


sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib
sudo rm /usr/bin/gcc
sudo rm /usr/bin/g++
sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
sudo ln -s /usr/bin/g++-4.4 /usr/bin/g++


3 . 安装 Sun Java 6

先上官网 Download Java http://www.oracle.com/technetwork/java/javase/downloads/ 点击打开链接

以 jdk-6u37-linux-x64.bin 为例


jdk-6u37-linux-x64.bin COPY 至 HOME


cd ~
sudo cp jdk-6u37-linux-x64.bin /opt
cd /opt
sudo chmod a+x jdk-6u37-linux-x64.bin
sudo ./jdk-6u37-linux-x64.bin
sudo gedit ~/.bashrc &
至最后一行加上
 export PATH=/opt/jdk1.6.0_37/bin:/opt/jdk1.6.0_37/lib:/opt/jdk1.6.0_37:$PATH

 ~/.bashrc

本篇文章来源于 Linux公社网站(www.linuxidc.com)  原文链接:http://www.linuxidc.com/Linux/2012-12/76181.htm

你可能感兴趣的:(Ubuntu 12.10 64bit 下Android 环境设定)