MDSplus (no-globus) user software installation on 64-bit machines
May 22, 2006

/usr/bin/mhd:/usr/pppl/doc/SGI/mdsplus-v1.7-6-mhd

randerso@mhd:~> module purge
randerso@mhd:~> module load intel_fc intel_cc java freetds
randerso@mhd:~> module list
Currently Loaded Modulefiles:
  1) intel_fc/9.0.033   3) java/1.4.2_11
  2) intel_cc/9.0.032   4) freetds/0.63

2006-05-22 -- Get already downloaded

# On MHD as root
cd /local/randerso/mdsplus
S=/usr/pppl/prog/mdsplus/v1.7-6-gt4.0.2-fg
T=/local/randerso/mdsplus/mdsplus-v1.7-6
/bin/mkdir $T
cd $S
/bin/tar cpf - . | ( cd $T && /bin/tar xpf - )
cd /local/randerso/mdsplus
/bin/chown -R randerso.users mdsplus-v1.7-6

     ALLOW BUILD AS RANDERSO

# On MHD as root
/bin/ln -s /local/randerso/mdsplus/mdsplus-v1.7-6 \
    /usr/pppl/prog/mdsplus/v1.7-6

     BUILD

# On MHD as randerso

OLDLANG=$LANG
export  LANG=C

export CC=icc
export CFLAGS="-w -mp -cxxlib-gcc -gcc-version=330 -ftz"
export F77=ifort
export FFLAGS="-O -w -mp -fpe0"
export SYBASE=$FREETDS_HOME
JDKDIR=$JAVA_HOME
cd /usr/pppl/prog/mdsplus/v1.7-6

export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
export CLASSPATH=`pwd`/javatraverser:$CLASSPATH

# Fix configure for fortran and java
# ... already done
# Fix dynamic_syb.c for sybase substitute freetds
# ... already done
# Fix mdsdcl/Makefile.in
# ... already done
# Fix camshr/Makefile.in
# ... already done
# Fix ccl/Makefile.in
# ... already done
# Fix tcl/Makefile.in
# ... already done

/usr/bin/make full_clean \
    1>make_full_clean_lew.log 2>make_full_clean_lew.err &
/bin/rm -i bin/* lib/* java/classes/*
./configure --with-jdk=$JAVA_HOME \
    1>configure_lew.log 2>configure_lew.err &
/usr/bin/find . -name makefile-header -exec /bin/rm -f '{}' \;
/usr/bin/make \
    1>make_lew.log 2>make_lew.err &

2006-05-22 ler MOVE PERMANENTLY

# On MHD as root
cd /usr/pppl/prog/mdsplus
/bin/rm -i v1.7-6
/bin/mv -i /local/randerso/mdsplus/mdsplus-v1.7-6 v1.7-6
/bin/chown -R root.root v1.7-6

                MAKE MODULES FILE

/bin/cat > /usr/pppl/Modules/modulefiles/mdsplus/v1.7-6<<'END'
#%Module
## mdsplus v1.7-6 modulefile
##
proc ModulesHelp {} {
puts stderr "This module loads MDSplus v1.7-6"
}
module-whatis "MDSplus v1.7-6"
 
conflict mdsplus
 
set mdsplushome "/usr/pppl/prog/mdsplus/v1.7-6"
 
set-alias dwscope        "${mdsplushome}/bin/dwscope"
set-alias dwscope_remote "${mdsplushome}/bin/dwscope_remote"
set-alias traverser      "${mdsplushome}/bin/traverser"
 
setenv MDSPLUS        "${mdsplushome}"
setenv MDSPLUS_DIR    "${mdsplushome}"
setenv MDSPLUS_ROOT   "${mdsplushome}"
setenv MDS_PATH       "${mdsplushome}/tdi"
setenv MDS_SHLIB_PATH "${mdsplushome}/lib"
setenv XAPPLRESDIR  "${mdsplushome}"
 
prepend-path MANPATH         "${mdsplushome}/man"
prepend-path PATH            "${mdsplushome}/bin"
prepend-path LD_LIBRARY_PATH "${mdsplushome}/lib"
prepend-path LD_RUN_PATH     "${mdsplushome}/lib"
prepend-path INCLUDE_PATH    "${mdsplushome}/include"
prepend-path C_INCLUDE_PATH  "${mdsplushome}/include"
prepend-path IDL_PATH        "+${mdsplushome}/idl"
END

2006-05-22 TEST

# On MHD as randerso
module purge
module load mdsplus/v1.7-6 intel_cc
export CC=icc
export CFLAGS="-w -mp -cxxlib-gcc -gcc-version=330 -ftz"

cd /u/randerso/A/TestMDSplus/LRanderson_001
./make_pppl_mdslib_ctest_args_nongrid_sgi

./pppl_mdslib_ctest_args_nongrid_sgi transpgrid transp_tftr 1015580101