标签:
Now, install a JDK.
# sudo apt-get install openjdk-7-jdk
We need Maven to build ODL. Install the most recent version of Maven
# sudo mkdir -p /usr/local/apache-maven
Download the maven source code
# wget http://ftp.wayne.edu/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
Now install maven
# sudo mkdir /usr/local/apache-maven # sudo mv apache-maven-3.3.3-bin.tar.gz /usr/local/apache-maven # sudo tar -xzvf /usr/local/apache-maven/apache-maven-3.3.3-bin.tar.gz -C /usr/local/apache-maven/ # sudo update-alternatives --install /usr/bin/mvn mvn /usr/local/apache-maven/apache-maven-3.3.3/bin/mvn 1 # sudo update-alternatives --config mvn # sudo apt-get install vim # vim ~/.bashrc
Add these to your ~/.bashrc
export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.3 export MAVEN_OPTS="-Xms256m -Xmx512m" # Very important to put the "m" on the end export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 # This matches sudo update-alternatives --config java
https://wiki.opendaylight.org/view/Install_On_Ubuntu_14.04
标签:
原文地址:http://www.cnblogs.com/iclk/p/4882754.html