CODA 2.0 Installation on Solaris 2.5.1


  1. You should have Solaris 2.5.1, access to root privileges and approx. 500 MB of disk space under "/usr" before starting the installation.

  2. Download the following files via anonymous ftp from Jefferson Labs. The URL is ftp://ftp.jlab.org/pub/coda/2.0dev

    CMLOG.tar.gz
    SunOS.tar.gz
    VXWORKSPPC.tar.gz
    common.tar.gz

    From the "docs" subdirectory, get the file "crlLang2.ps" - this describes the readout list syntax for CODA 2.0

    From the "misc" directory, get the files "cedit" and "test_list.crl". The version of "cedit" in the distribution is buggy, so use this one to replace the one which after unpacking gets placed in /usr/local/coda/2.0dev/SunOS/bin/cedit

    Note: This reflects the situation as of 04/28/98.

  3. Create a directory "/usr/local/coda" and a non-root user who will own the files. It is best to create a user named "phobos" in group "staff" who owns /usr/local/coda.

  4. Login as "phobos", create a subdirectory "/usr/local/coda/2.0dev" and move the last three tar.gz files above into this directory. Use gunzip and tar to unpack the files.

    > mv SunOS.tar.gz /usr/local/coda/2.0dev
    > mv VXWORKSPPC.tar.gz /usr/local/coda/2.0dev
    > mv common.tar.gz /usr/local/coda/2.0dev
    > gunzip *.gz
    > tar xvf SunOS.tar
    > tar xvf VXWORKSPPC.tar
    > tar xvf common.tar

    This should create the subdirectories "SunOS", "VXWORKSPPC" and "common" under "/usr/local/coda/2.0dev".

    Next unpack CMLOG.tar.gz in "/usr/local".

    > mv CMLOG.tar.gz /usr/local
    > gunzip CMLOG.tar.gz
    > tar xvf CMLOG.tar

    This will unpack everything into /usr/local/CMLOG_2. For consistency, you should rename this as /usr/local/CMLOG. Then, set the ownership of this directory to user phobos and group staff.

    You can now delete the tar files. Replace cedit as mentioned earlier.

  5. Create a file .setup in /usr/local/coda/2.0dev containing the following lines

    #!/bin/csh
    setenv OSTYPE `uname|sed 's/-/_/'`

    setenv CODA_VERSION 2.0b2
    setenv CODA /usr/local/coda/2.0dev
    setenv CODA_BIN $CODA/$OSTYPE/bin
    setenv CODA_LIB $CODA/$OSTYPE/lib
    setenv CODA_CBIN $CODA/common/bin

    setenv TCL_LIBRARY $CODA/common/lib/tcl7.4
    setenv TK_LIBRARY $CODA/common/lib/tk
    setenv DP_LIBRARY $CODA/common/lib/dp
    setenv TIX_LIBRARY $CODA/common/lib/tix
    setenv TCLINCLUDE_DIR $CODA/common/include
    setenv TKINCLUDE_DIR $CODA/common/include

    setenv VXWORKS_ROOT /usr/wind

    setenv EXPID test1

    setenv DD_LIB $CODA_LIB
    setenv DD_BIN $CODA_BIN
    setenv DD_DATA $CODA/common/dd/data
    setenv dd_lib $CODA_LIB
    setenv dd_bin $CODA_BIN
    setenv dd_data $CODA/common/dd/data
    setenv DD_LOGFILES_DIRECTORY $CODA/common/log
    setenv DD_STATUS_FILE /tmp/dd_system
    setenv DDD_CONFIGURATION_FILE $DD_DATA/dd_configuration_file

    setenv CMLOGROOT /usr/local/CMLOG
    setenv CDEVDDL $CODA_LIB/coda.ddl
    setenv CDEVSHOBJ $CODA_LIB

    # set path for shared libraries and binaries
    set lpath = ""
    setenv LD_LIBRARY_PATH \
    ${CODA_LIB}:${CMLOGROOT}/lib/solaris:/usr/dt/lib:/usr/openwin/lib:$lpath

    set lpath = "`echo $path | sed s+$CODA_BIN++g`"
    set path = ($CODA_BIN /usr/local/CMLOG/bin/solaris $lpath )

  6. In addition, you may create a file called "user.setup" that sources this one and replaces some definitions as needed.

    #!/bin/csh
    setenv CODA /usr/local/coda/2.0dev
    source $CODA/.setup
    setenv EXPID phobos
    setenv SESSION toftest

    You have to source the ".setup" or "user.setup" file before staring CODA.

    This completes the installation of CODA. At this point, if you have removed the tar files, approx 220 MB in "/usr/local" will be taken by CODA

    NB: To run "cedit", you might need libXpm.so.4.10 in /usr/lib. I copied one from the ROOT v2.00 distribution (libXpm.so in ROOTLIBS)


Ashutosh Sanzgiri