Environment-conf

install adb fastboot

sudo add-apt-repository ppa:phablet-team/tools

sudo apt-get update

sudo apt-get install android-tools-adb

sudo apt-get install android-tools-fastboot

install pip

sudo apt-get install python-pip

升级pip:sudo pip install -U pip

阿里云的 pip 源:http://mirrors.aliyun.com/pypi/simple/

eg.安装sphinx: pip install sphinx -i http://mirrors.aliyun.com/pypi/simple/

配置默认源:

vim ~/.pip/pip.conf

[global]

index-url = http://mirrors.aliyun.com/pypi/simple/

[install]

trusted-host = http://mirrors.aliyun.com

install java gcc g++

sudo add-apt-repository ppa:unbutu-toolchain-r/test

sudo apt-get update

sudo update-alternatives –config java

sudo update-alternatives –config javac

java -version

sudo apt-get install gcc-4.9

sudo apt-get install g++-4.9

sudo apt-get install gcc-4.9-multilib

sudo apt-get install g++-4.9-multilib

sudo apt-get install gcc-4.9-doc

(显示时会出现 连在一起的-会被一个中文的-替代)

sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20

sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/g++-4.9 20

sudo update-alternatives –config gcc

sudo update-alternatives –config g++

gcc -v

g++ -v (如果这里出错,请删除之前的本地安装的g++-4.6)