ubuntu服务器编译环境搭建

*******************************************************************************
1. 安装 ubuntu系统

版本 ubuntu-10.04.4-desktop-amd64.iso 

 

2. 配置远程桌面
 
sudo apt-get install xrdp
在ubuntu下, System -> Preferences -> Remote Desktop 勾选允许其它人控制桌面


3. 安装配置samba

#sudo apt-get install samba
#sudo apt-get install smbfs

4. 安装JDK

sudo add-apt-repository ppa:ferramroberto/java

sudo apt-get update

 

sudo apt-get install sun-java6-jre sun-java6-plugin

sudo apt-get install sun-java6-jdk

export JAVA_HOME=/usr/lib/jvm/java-6-sun

export JRE_HOME=$JAVA_HOME/jre

export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH

export JAVA_PATH=$JAVA_HOME/bin:$JRE_HOME/bin


java -version  查看jdk是否安装成功


5. 安装android编译环境

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libxml-simple-perl

sudo apt-get install ssh
sudo apt-get install mingw32 mingw32-binutils mingw32-runtime
sudo apt-get install tofrodos
sudo apt-get install wine

编译环境搭建完成
*******************************************************************************


UBUNTU12.10:

安装编译所需的软件包:

  

$ 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-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

你可能感兴趣的:(ubuntu服务器编译环境搭建)