Building opensplice on linux via script

This assumes you have installed all the dependencies and setup any environment variables

One thing to note is OpenSplice requires Java. At present I use the old Sun variant as there seems to be issues with using OpenJDK and I don't like the new oracle licence.

BUILD_DIR is where I'm building everything... basically out of the source tree.

BUILD_BASE is where the directories containing all my third party libraries are (each in thier own directory).

  export JAVA_HOME=/opt/jdk1.8.0_241/
  export PATH=$PATH:/$JAVA_HOME/bin

  cd $BUILD_DIR
  mkdir opensplice-build
  cd opensplice-build

  # always clean as the build setup is messy and does not like
  # being run twice
  rm -rf $BUILD_DIR/opensplice-build/*

  # copy as we can't do an out of source build
  cp -rp $BUILD_BASE/opensplice/* .
  cp -rp $BUILD_BASE/opensplice/.g* .

  #
  # Configure for doing build...
  #
  # NOTE: this is a real mess... if not done correctly the
  # environment is not setup correctly and bits do not build
  # correctly.
  #
  # The actual build is dependent on using source on the
  # configure script which then sets a lot of environment
  # variables which are used as part of the build process.
  # 
  # NOTE: build depends on old Sun Java... 
  #

  # Option 15 is x64 release build
  yes 15 | source ./configure

  #
  # these are exported by ./configure but for some reason are
  # not persistent in a scripted build so the build will
  # fall over sooner or later unless set...
  #
  SPLICE_EXEC_PATH="${OSPL_HOME}/exec/${SPLICE_TARGET}"
  export SPLICE_EXEC_PATH
  echo $SPLICE_EXEC_PATH
  export SPLICE_TARGET=x86_64.linux-release
  export SPLICE_HOST=x86_64.linux-release
  export OSPL_HOME="$BUILD_DIR/opensplice-build"
  source envs-x86_64.linux-release.sh
  SPLICE_EXEC_PATH="${OSPL_HOME}/exec/${SPLICE_TARGET}"
  export SPLICE_EXEC_PATH
  echo $SPLICE_EXEC_PATH
  export PATH=$SPLICE_EXEC_PATH:$PATH

  # build
  make install


To install system wide:

  # install opensplice 
  mkdir /opt/OpenSplice
  cp install/VC/PXXX-*-HDE-*-installer.tar /opt/OpenSplice
  cd /opt/OpenSplice
  tar -xf PXXX-*-HDE-*-installer.tar
  rm *.tar

You will also need to update your .bashrc with a bunch of environment variables.


Comments