close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Changes between Version 2 and Version 3 of Proto/cModules/b0GNRS/c0Installation


Ignore:
Timestamp:
Jul 7, 2015, 7:51:22 PM (9 years ago)
Author:
wontoniii
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proto/cModules/b0GNRS/c0Installation

    v2 v3  
    1313
    1414 * '''gnrs executable''': Java implementation of DMap. The binary is provided as a jar file called ''gnrs-server-1.0.0-SNAPSHOT-jar-with-dependencies.jar'' installed under ''/usr/lib/mfjava/''
     15
     16== Compiling From Source ==
     17
     18=== 1.1. Required Packages ===
     19
     20The implementation has been tested on Ubuntu 10.04, 12.04 and 13.04, but it should work on basically any linux distribution (or any platform supporting JAVA). These are the required packages (for Ubuntu).
     21
     22{{{
     23sudo apt-get update
     24sudo apt-get -y install git-core openjdk-7-jdk maven
     25}}}
     26
     27''openjdk-7-jdk'' can be replaced with the preferred JAVA version
     28
     29=== 1.2. Download MobilityFirst Sources ===
     30
     31Git: The development versions of the prototype components can be checked out from the [https://mobilityfirst.orbit-lab.org/browser/mf MobilityFirst git repository host on orbit-lab]:
     32
     33{{{
     34git clone ssh://username@external1.orbit-lab.org/common/git/mf
     35}}}
     36
     37'''Note: cloning the git repository requires setting your ssh agent to use your orbit-lab key pair.''
     38
     39Set and export path of top-level folder to an env. variable 'MF_HOME'
     40
     41{{{
     42export MF_HOME=/home/username/mobilityfirst
     43}}}
     44
     45=== 1.3. Compiling the GNRS ===
     46
     47After deciding whether to include OML in the created executable compile the Host Protocol Stack:
     48
     49{{{
     50cd $MF_HOME/gnrs/jserver
     51
     52python install-to-project-repo.py -i
     53#When prompted, the version is "0.6" (option 2) and the artifactId is "patricia-trie" (option 1)
     54
     55mvn clean package
     56}}}
     57
     58Optionally install the generated jar into your system folder:
     59
     60{{{
     61sudo install -d /usr/lib/mfjava/
     62sudo install -m 755 target/gnrs-server-1.0.0-SNAPSHOT-jar-with-dependencies.jar /usr/lib/mfjava/
     63}}}