Compiling OHAC Agents

From Genunix

Jump to: navigation, search

Compiling Open HA Cluster (OHAC) Agents for Colorado on Open Solaris 2009.X

Note: These notes are for compiling OHAC on the OpenSolaris binary distribution. For compiling instructions on Solaris Express (Nevada), see http://opensolaris.org/os/community/ha-clusters/ohac/Documentation/Agents/buildingagents/

  • Install additional packages for the build system:
    Note: If you use a different build than 111, you need to install the package that corresponds to the build number you are using.
   # pkg set-authority -O http://pkg.opensolaris.org:80/dev/ opensolaris.org

   # pkg install SUNWperl584core@5.8.4-0.111
   # pkg install SUNWperl584usr@5.8.4-0.111
   # pkg install SUNWtcat@6.0.18,5.11-0.111
   # pkg install SUNWjavadb@10.4.2.1,5.11-0.111
   # pkg install SUNWjdmk-base@0.5.11,5.11-0.111
   # pkg install SUNWcacaort@0.5.11-0.111
   # pkg install SUNWonbld@0.5.11-0.111
   # pkg install sunstudioexpress
   # cd /opt
   # ln -s SunStudioExpress /opt/SUNWspro
   
  • Download and install the following build tools:
    • The OHAC Specific Build Tools (ohac-tools-<DATE>.<PLATFORM>.tar.bz2). The ohac-tools archive contains the build tools that are necessary for building OHAC. To install the OHAC build tools:
   # cd /opt
   # bzcat /path/ohac-tools-<DATE>.<PLATFORM>.tar.bz2 | tar xf -
   
  • To build the OHAC Agents, you also need to download and install the following archives:
    • The OHAC Core Reference Proto (ohac-ref-proto-<DATE>.<PLATFORM>.tar.bz2). The ohac-ref-proto archive contains the Core development headers and libraries for OHAC.
    • The OHAC Agents Closed Binaries (ohacds-closed-bins-<DATE>.<PLATFORM>.tar.bz2). The ohacds-closed-bins archive contains the Agents binaries built from closed source.
    • The OHAC Agents External Packages (ohacds-ext-pkgs-<DATE>.<PLATFORM>.tar.bz2). The ohacds-ext-pkgs archive contains prebuilt packages and product deliverables from other groups, such as Documentation and Globalization. To install the OHAC archives:
    # cd /opt
    # bzcat /path/ohac-ref-proto-<DATE>.<PLATFORM>.tar.bz2 | tar xf -
    # bzcat /path/ohacds-closed-bins-<DATE>.<PLATFORM>.tar.bz2 | tar xf -
    # bzcat /path/ohacds-ext-pkgs-<DATE>.<PLATFORM>.tar.bz2 | tar xf -
    
  • And finally, you need to download and install the OHAC Colorado Agents Source Code (coloradods-src-<DATE>.tar.bz2). You can install the source code wherever you like. This example assumes the archive is extracted to /builds:
     $ cd /builds
     $ bzcat /path/coloradods-src-<DATE>.tar.bz2 | tar xf -
    
  • To build IPS packages, start an IPS depot server. See depotctl(1M) in /opt/scbld/man for more info. This example starts an IPS server listening on the default port and using /builds/repos for the backing store:
    $ /opt/scbld/bin/depotctl start -d /builds/repos
    
  • To build the Agents source, run nbuild from within the source tree. This example creates a complete build of both non-debug and debug using the Sun Studio Compiler, and assumes all the compilers, tools and archives were installed in their default locations:
    $ cd /builds/coloradods
    $ /opt/scbld/bin/nbuild -Dp
    
  • The resulting IPS packages are available from your IPS server, and the rest of the output from your build is located in /builds/coloradods+5.11+PLATFORM, where you can find:
    * log/log.TIMEDATE.NUM - log files for this build
    * packages/PLATFORM/Sol_11 - debug SVR4 packages
    * packages/PLATFORM/Sol_11-nd - non-debug SVR4 packages 
   
  • Installing Agents:
   # pkg set-authority -O http://<IPSSERVER>:<PORT>/ <IPSSERVER>
   # pkg set-authority -P <IPSSERVER>
   # pkg install ha-cluster-data-services-full
   
Personal tools