Sun Cluster Data Services Developer's Guide for Solaris OS

ProcedureHow to Set Up the Development Environment

This procedure describes how to install the SUNWscdev package and set the compiler and linker options for data service development.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Change directory to the CD-ROM directory that you want.


    # cd cd-rom-directory
    
  3. Install the SUNWscdev package in the current directory.


    # pkgadd -d . SUNWscdev
    
  4. 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 Sun 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
    ...