Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Building from source
    1. Clone the HDC project's repository:

      Code Block
      languagebash
      $: git clone ssh://git@git.iter.org/imas/hdc.git


    2. Build MDBM backend (optional)


      Expand
        1. Clone the MDBM project's repository:

          Code Block
          languagebash
          $: git clone https://github.com/yahoo/mdbm


        2. Navigate to local

      HDC
        1. MDBM directory:

          Code Block
          languagebash
          $: cd
      hdc
        1.  mdbm


        2. Set install prefix:

          In place of $PATH variable it is needed to pass relative path to MDBM directory, e.g.:  ~/projects/mdbm  

          Code Block
          languagebash
          $: MDBM_PREFIX=$(realpath $PATH)/install
          $: sed -i.bak "s|/tmp/install|$MDBM_PREFIX|g" Makefile.base


        3. Optionally disable tests (they need libcppunit, preferably):

          Code Block
          languagebash
          $: sed -i.bak '/SUBDIRS/s/test //' src/Makefile


        4. And finally build & install:

          Code Block
          languagebash
          $: make install


        5. Leave MDBM repository, but keep $MDBM_PREFIX variable, it will be needed later

          Code Block
          languagebash
          $: cd ..



    3. Navigate to local HDC directory:

      Code Block
      languagebash
      $: cd hdc


    4. Create new directory for build files:

      Code Block
      languagebash
      $: mkdir build


    5. Navigate to build directory:

      Code Block
      languagebash
      $: cd build


    6. Create new directory for build files:

      Code Block
      languagebash
      $: git clone ssh://git@git.iter.org/imas/hdc.git