Go to main content

Oracle® Solaris Cluster Data Services Developer's Guide

Exit Print View

Updated: September 2015
 
 

How to Set Up the Development Environment

This procedure describes how to install the ha-cluster/developer/api IPS package and set the compiler and linker options for data service development.

  1. Assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. Ensure that the solaris and ha-cluster publishers are valid.
    # pkg publisher
    PUBLISHER                           TYPE     STATUS   URI
    solaris                             origin   online   solaris-repository
    ha-cluster                          origin   online   ha-cluster-repository

    For information about setting the solaris publisher, see Checking and Setting Repository Properties in Copying and Creating Package Repositories in Oracle Solaris 11.3 .

  3. Install the ha-cluster/developer/api package in the current directory.
    # pkg install ha-cluster/developer/api
  4. Verify that the package installed successfully.
    phys-schost% pkg info ha-cluster/developer/api

    Installation is successful if output shows that State is Installed.

  5. In the makefile, specify compiler and linker options that identify the include and library files for your data service code.

    Specify the –I option to identify the Oracle Solaris Cluster header files, the –L option to specify the compile-time library search path on the development system, and the –R option to specify the library search path to the runtime linker in the cluster.

    # Makefile for sample data service
    ...
    
    –I /usr/cluster/include
    
    –L /usr/cluster/lib
    
    –R /usr/cluster/lib
    ...