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 MDBM directory:

          Code Block
          languagebash
          $: cd mdbm


        3. 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


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

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


        5. And finally build & install:

          Code Block
          languagebash
          $: make install


        6. 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
      Create new directory for build files


    6. Configure a build - two possibilities: with/without MDBM previously build:
       
      1. Building without previously installed MDBM module:

        Code Block
        languagebash
        $: cmake -DCMAKE_INSTALL_PREFIX=../install ..


      2. Building with previously installed MDBM module:
        If you have set up MDBM and you still haveMDBM_PREFIX variable, then in order to use MDBM, please, append this to cmake command line:

        -DMDBM_LIBRARY=$MDBM_PREFIX/lib64 -DMDBM_INCLUDE_DIR=$MDBM_PREFIX/include


        Code Block
        languagebash
        $: cmake -DCMAKE_INSTALL_PREFIX=../install -DMDBM_LIBRARY=$MDBM_PREFIX/lib64/libmdbm.so -DMDBM_INCLUDE_DIR=$MDBM_PREFIX/include ..


    7. And finally build&install:

      Code Block
      languagebash
      $: make -j install


    8. After successful build, run tests please:

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