Globus user software installation on 64-bit machines
May 16, 2006

mhd:/usr/pppl/doc/SGI/globus-gt4.0.2-fg

2006-05-16 ler -- Globus build for SGI RHEL 3 64-bit

      DOWNLOAD GLOBUS AND MDSPLUS

# On mhd as randerso
INSTALL_DIR=/usr/pppl/prog/globus
/bin/mkdir -p $INSTALL_DIR/gt4.0.2-fg
cd /local/randerso/globus
ps=anonymous
export GLOBUS_VERSION=globus_4_0_2
cvs -q -d :pserver:$ps@cvs.globus.org:/home/globdev/CVS/globus-packages \
    co -r $GLOBUS_VERSION packaging
ps=MDSguest
cvs -q -d :pserver:MDSguest:$ps@www.mdsplus.org:/mdsplus/repos \
    co mdsplus

      MAKE DIRECTORY LINK SO CAN BUILD AS RANDERSO

# On mhd as root
/bin/mkdir -p /usr/pppl/prog/globus
INSTALL_DIR=/usr/pppl/prog/globus
/bin/ln -s /local/randerso/gt4.0.2-fg /usr/pppl/prog/globus/gt4.0.2-fg

      BUILD GLOBUS

module purge
module load intel_cc
export CC=icc
export CFLAGS="-w -mp -cxxlib-gcc -gcc-version=330 -ftz"

cd /local/randerso/globus/packaging

./make-packages.pl --bundles=globus-gram,globus-gridftp  \
  --install=$INSTALL_DIR/gt4.0.2-fg --deps --anonymous   \
  --flavor=gcc64                                         \
  --gt3-tag $GLOBUS_VERSION --gt4-tag $GLOBUS_VERSION    \
  1>make_bundles_lew.log 2>make_bundles_lew.err

./make-packages.pl --packages=globus_xio               \
  --install=$INSTALL_DIR/gt4.0.2-fg --deps --anonymous   \
  --flavor=gcc64pthr                                   \
  --gt2-tag $GLOBUS_VERSION                            \
  --gt3-tag $GLOBUS_VERSION --gt4-tag $GLOBUS_VERSION  \
  1>make_packages_lew.log 2>make_packages_lew.err

      BUILD MYPROXY

INSTALL_DIR=/usr/pppl/prog/globus
cd /local/randerso/globus
export GLOBUS_LOCATION=$INSTALL_DIR/gt4.0.2-fg
export GPT_LOCATION=$GLOBUS_LOCATION
module load intel_cc
$GPT_LOCATION/sbin/gpt-build --disable-version-checking           \
  --installdir=$GLOBUS_LOCATION mdsplus/rpm/myproxy*.tar.gz gcc64 \
  1>gpt_build_myproxy_lew.log 2>gpt_build_myproxy_lew.err
$GPT_LOCATION/sbin/gpt-postinstall --force \
  1>gpt_post_install_lew.log 2>gpt_post_install_lew.err


      MAKE TRUSTED CERTIFICATES DIRECTORY

/bin/mkdir -p $GLOBUS_LOCATION/share/certificates
/usr/bin/scp -pr viz:/usr/pppl/globus/gt2/share/certificates \
  $GLOBUS_LOCATION/share

     MOVE TO REAL /usr/pppl/globus

# On mhd as root
cd /local/randerso/globus
/bin/chown -R globus.globus gt4.0.2-fg

INSTALL_DIR=/usr/pppl/prog/globus/gt4.0.2-fg
/bin/rm -i $INSTALL_DIR
/bin/mv -i gt4.0.2-fg /usr/pppl/prog/globus

     TEST

# On mhd as randerso
g=/usr/pppl/prog/globus/gt4.0.2-fg
export GLOBUS_LOCATION=$g
export MYPROXY_SERVER=cert.fusiongrid.org
export MANPATH=$g/man:MANPATH
export PATH=$g/bin:$PATH
export LD_LIBRARY_PATH=$g/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=$g/lib:$LD_RUN_PATH
export INCLUDE_PATH=$g/include:$INCLUDE_PATH
export C_INCLUDE_PATH=$g/include:$C_INCLUDE_PATH

module load intel_cc
myproxy-get-delegation -l lranderson
Enter MyProxy pass phrase:
A proxy has been received for user lranderson in /tmp/x509up_u4540

globus-job-run transpgrid.pppl.gov /bin/date                       
Tue May 16 13:08:39 EDT 2006

globus-job-submit transpgrid.pppl.gov /bin/date                    
https://transpgrid.pppl.gov:50001/19821/1147799385/

globus-url-copy file:/etc/motd \
  gsiftp://transpgrid.pppl.gov/local/a.gsiftp_16may2006

      ADD TO MODULES

# On mhd as root
/bin/mkdir /usr/pppl/Modules/modulefiles/globus
/bin/vi /usr/pppl/Modules/modulefiles/globus/gt4.0.2-fg
    . . .
/bin/vi /usr/pppl/Modules/modulefiles/globus/.version
    . . .