OpenSolaris

  subsites:   Code Reviews   Gates   Issues   Defects   Polls   Test   PKG   Planet   Mail
You are not signed in. Sign in or register.

Building Open HA Cluster Geographic Edition

The majority of Open High Availability Cluster code is released under the Common Development and Distribution License (CDDL) Version 1.0.

Source based on existing open source projects will continue to be available under their current licenses. Some binary components are covered under the OpenSolaris Binary License and some are covered under other open source licenses. Specific download pages provide license information associated with the available component pieces.

Building From Source

To build from source you will need a system installed with:
  • Solaris Express (either Community or Developer Edition).
  • A C/C++ compiler collection. You can use the Sun Studio Compilers (included in Solaris Express Developer Edition), or the GNU Compiler Collection (included in Solaris Express).
You will also need to download and install the following build tools:
  • The ON Specific Build tools (SUNWonbld.PLATFORM.tar.bz2)
  • The SUNWonbld package is a pkgadd-format directory that has been archived using tar and bzip2. Unpack it in a temporary directory and use pkgadd(1M) to install it. For example:

    # cd /var/tmp
    # bzcat /path/SUNWonbld.PLATFORM.tar.bz2 | tar xf -
    # pkgadd -d onbld SUNWonbld
    
  • The OHAC Specific Build Tools (ohac-tools-DATE.PLATFORM.tar.bz2)
  • The ohac-tools archive contains the build tools necessary for building OHAC.

    To install the OHAC Build tools:

    # cd /opt
    # bzcat /path/ohac-tools-DATE.PLATFORM.tar.bz2 | tar xf -
    

Building Geographic Edition

To build the OHAC Geographic Edition, you will 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 Geographic Edition External Packages (ohacgeo-ext-pkgs-DATE.PLATFORM.tar.bz2)
  • The ohacgeo-ext-pkgs archive contains prebuilt packages and product deliverables from other groups, like Documentation and Globalization.

    To install the OHAC archives:

    # cd /opt
    # bzcat /path/ohac-ref-proto-DATE.PLATFORM.tar.bz2 | tar xf -
    # bzcat /path/ohacgeo-ext-pkgs-DATE.PLATFORM.tar.bz2 | tar xf -
    
And finally, you'll need to download and install the source archive:
  • The OHAC Geographic Edition Source Code (ohacgeo-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/ohacgeo-src-DATE.tar.bz2 | tar xf -
    
To build the Geographic Edition source, run nbuild from within the source tree. This example will do a full 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/ohacgeo
$ /opt/scbld/bin/nbuild -Da
Alternatively, to build the Geographic Edition source using the GNU Compiler Collection (gcc), run nbuild with two additional options:

$ cd /builds/ohacgeo
$ /opt/scbld/bin/nbuild -Da CW_NO_SHADOW=# __GNUC=
The resultant build will be located in /builds/ohacgeo+5.11+PLATFORM where you will find:
  • - log/log.TIMEDATE.NUM - log files for this build
  • - packages/PLATFORM/Sol_11 - debug packages
  • - packages/PLATFORM/Sol_11-nd - non-debug packages

Installing Geographic Edition Packages

Use pkgadd(1M) to install Geographic Edition. This example installs the non-debug x86 SMI-S data replication software:

# pkgadd -d /builds/ohacgeo+5.11+i386/packages/i386/Sol_11-nd SUNWscgrepsmis SUNWscgrepsmisu