1。安裝java java
1 | cd /opt |
2 | sudo ./jdk-6u43-linux-x64.bin |
1 | export JAVA_HOME=/opt/jdk1.6.0_43 |
2 | export PATH=$JAVA_HOME/bin:$PATH |
3 | export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar |
1 | tar -zxvf apache-ant-1.9.0-bin.tar.gz |
2 | tar -zxvf apache-maven-3.0.5-bin.tar.gz |
1 | ANT_HOME=/opt/apache-ant-1.9.0 |
2 | MAVEN_HOME=/opt/apache-maven-3.0.5 |
3 | PATH=$PATH:$ANT_HOME/bin:$MAVEN_HOME/bin |
4 | export ANT_HOME MAVEN_HOME PATH |
3.安裝git linux
1 | tar -zxcf git-1.8.1.2.tar.gz |
2 | cd git-1.8.1.2 |
3 | ./configure --profix=/opt/git-1.8.1.2 |
4 | make |
5 | sudo make install |
1 | export PATH=$PATH:/opt/git-1.8.1.2/bin:/opt/git-1.8.1.2/libexec/git-core |