Coda2.6.2 setup.txt

From New IAC Wiki
Revision as of 23:31, 21 June 2012 by Foretony (talk | contribs) (Created page with '#!/bin/csh # # File: # $/usr/local/coda/2.6.1/.setup # # Description: # Setup file for CODA # # Set up CODA specific environment variables setenv CODA_VERSIO…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. !/bin/csh
  2. File:
  3. $/usr/local/coda/2.6.1/.setup
  4. Description:
  5. Setup file for CODA
  6. Set up CODA specific environment variables
       setenv CODA_VERSION 2.6.2
       setenv OSTYPE      `uname|sed 's/-/_/'`
       grep Enterprise /etc/redhat-release >& /dev/null
       if ($status == 0) then
           setenv OSTYPE Linux
       endif
       if ($?CODA != "1") then
           setenv CODA       /home/DAQ/CODA/2.6.2
       endif
       if ($?CDEVROOT != "1") then
           setenv CDEVROOT /site/coda/cdev_1.7.5
       endif
       
       setenv CODA_BIN $CODA/$OSTYPE/bin
       setenv CODA_LIB $CODA/$OSTYPE/lib
       if ( $OSTYPE == "SunOS") then
       setenv CDEV_LIB   $CDEVROOT/lib/solaris
       else
       setenv CDEV_LIB   $CDEVROOT/lib/$OSTYPE
       endif
       setenv CODA_CBIN   $CODA/common/bin
       setenv TCL_ROOT    /usr/local/tclc1.1b2.sol
       setenv TCL_LIBRARY $CODA/common/lib/tcl7.4
       setenv ITCL_LIBRARY $CODA/common/lib/itcl2.0
       setenv TK_LIBRARY  $CODA/common/lib/tk
       setenv ITK_LIBRARY $CODA/common/lib/itk2.0
       setenv DP_LIBRARY  $CODA/common/lib/dp
       setenv TIX_LIBRARY $CODA/common/lib/tix
       
       setenv VXWORKS_ROOT /site/vxworks
  1. Overwrite this in your own .cshrc file!
       setenv EXPID LDS
       setenv TCLINCLUDE_DIR $CODA/common/include
       setenv TKINCLUDE_DIR $CODA/common/include
       set lpath = "`echo $path | sed s+$CODA_BIN++g`"
       set path = ($CODA_BIN $lpath)
  1. Do not clobber LD_LIBRARY_PATH
       if ($?LD_LIBRARY_PATH) then
           setenv LD_LIBRARY_PATH  ${LD_LIBRARY_PATH}:${CODA_LIB}:${CDEV_LIB}
       else
           setenv LD_LIBRARY_PATH  ${CODA_LIB}:${CDEV_LIB}
       endif
       if ($?CDEVDDL != "1") then
           setenv CDEVDDL $CODA_LIB/coda.ddl
       endif
       if ($?CDEVSHOBJ != "1") then
           setenv CDEVSHOBJ $CODA_LIB
       endif
  1. debug utility
  2. -----------------------------------------------
  3. setenv FFLAGS "-w1 -O -Olimit 1500"
  4. setenv CFLAGS
  5. setenv CFLAGS -O
  6. alias debug "set debug_args=(\!:*); source $DD_BIN/debug.csh; unset debug_args"
  7. echo "CODA $CODA_VERSION setup script..."
  8. echo "========================"
  9. echo ""
  10. echo "Operating system $OSTYPE."
  11. echo ""
  12. echo "Environment"
  13. echo ""
  14. echo "Default experiment EXPID = $EXPID"
  15. echo "TCL_LIBRARY = $TCL_LIBRARY"
  16. echo "TK_LIBRARY = $TK_LIBRARY"
  17. echo "DP_LIBRARY = $DP_LIBRARY"
  18. echo "TIX_LIBRARY = $TIX_LIBRARY"
  19. echo ""
  20. echo "Directories"
  21. echo ""
  22. echo "Root directory, CODA = $CODA"
  23. echo "Executables, CODA_BIN = $CODA_BIN"
  24. echo "Libraries, CODA_LIB = $CODA_LIB"
  25. echo "VxWorks files, VXWORKS_ROOT = $VXWORKS_ROOT"
  26. echo "================================="

setenv AFECS_HOME /home/daq/CODA/2.6.2/afecs setenv COOL_HOME /home/daq/CODA/2.6.2/afecs/db setenv SESSION DAQ setenv MSQL_TCP_HOST daq2 setenv MSQL_HOME $CODA/common/rcdb

setenv JAVA_HOME ~/CODA/Java/jdk1.6.0_17