sysadmin
@
extreme.indiana.edu


Home
Machines
CSG
    Support
    Packages
Lab
    User's Guide
    Sysadmin's Guide
    Packages
Projects
    Portal
    LEAD
    Grid Info

Sample Installation - stow

stow is a perl script that eases package installations. It is solely an API install (see Overview) and is non-architecture specific. The following details the installation procedure for stow.

  1. Download stow distribution from

    ftp://ftp.in-span.net/pub/mirrors/ftp.gnu.org/stow/

    and store it in

    /nfs/rainier/home/user3/download/noarch

  2. Unpack tar ball into build directory
    
    > tar zxvf stow-1.3.2.tar.gz
    stow-1.3.2/Makefile.in^M
    stow-1.3.2/README^M
    stow-1.3.2/AUTHORS^M
    stow-1.3.2/COPYING^M
    stow-1.3.2/ChangeLog^M
    stow-1.3.2/INSTALL^M
    stow-1.3.2/Makefile.am^M
    stow-1.3.2/NEWS^M
    stow-1.3.2/THANKS^M
    stow-1.3.2/TODO^M
    stow-1.3.2/aclocal.m4^M
    stow-1.3.2/configure^M
    stow-1.3.2/configure.in^M
    stow-1.3.2/install-sh^M
    stow-1.3.2/mdate-sh^M
    stow-1.3.2/mkinstalldirs^M
    stow-1.3.2/stamp-vti^M
    stow-1.3.2/stow.in^M
    stow-1.3.2/texinfo.tex^M
    stow-1.3.2/version.texi^M
    stow-1.3.2/stow.texi^M
    stow-1.3.2/stow.info^M
    > mkdir /nfs/rainier/home/user3/build/noarch/stow 
    > mv stow-1.3.2  /nfs/rainier/home/user3/build/noarch/stow/1.3.2
    > cd /nfs/rainier/home/user3/build/noarch/stow/1.3.2
    
  3. Configure package to install into the architecture independent package directory
    
    > mkdir /nfs/rainier/home/user3/arch/noarch/stow 
    > mkdir /nfs/rainier/home/user3/arch/noarch/stow/1.3.2
    > ./configure --prefix=/nfs/rainier/home/user3/packages/noarch/stow/1.3.2
    creating cache ./config.cache
    checking for a BSD compatible install... /usr/local/gnu/bin/install -c
    checking for perl... /usr/local/bin/perl
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    creating stow
    
  4. Install package
    
    > make install
    ./mkinstalldirs /nfs/rainier/home/user3/packages/noarch/stow/1.3.2/bin
    list="stow"; for p in $list; do \
      if test -f $p; then \
        /usr/local/gnu/bin/install -c -m 755 $p /nfs/rainier/home/user3/packages/noa
    rch/stow/1.3.2/bin/`echo $p|sed 's,x,x,'`; \
      else if test -f ./$p; then \
        /usr/local/gnu/bin/install -c -m 755 ./$p \
          /nfs/rainier/home/user3/packages/noarch/stow/1.3.2/bin/`echo $p|sed 's,x,x
    ,'`; \
      else :; fi; fi; \
    done
    ./mkinstalldirs /nfs/rainier/home/user3/packages/noarch/stow/1.3.2/info
    for file in stow.info; do               \
      for ifile in `cd . && echo $file*`; do \
        /usr/local/gnu/bin/install -c -m 644 ./$ifile /nfs/rainier/home/user3/packag
    es/noarch/stow/1.3.2/info/$ifile; \
      done;                                 \
    done
    
  5. Make sure everybody can access it
    
    > chmod -R a+rX /nfs/rainier/home/user3/packages/noarch/stow 
    
  6. Make it available to all other architectures
    
    > cd /nfs/rainier/home/user3/packages/linux
    > ln -s /nfs/rainier/home/user3/packages/noarch/stow .
    > cd /nfs/rainier/home/user3/packages/irix
    > ln -s /nfs/rainier/home/user3/packages/noarch/stow .
    > cd /nfs/rainier/home/user3/packages/solaris
    > ln -s /nfs/rainier/home/user3/packages/noarch/stow .
    
  7. Make it the default version of stow for all architectures
    
    > cd /nfs/rainier/home/user3/packages/noarch/stow
    > stow --verbose=3 -t /nfs/rainier/home/user3/arch/linux 1.3.2
    Stowing package 1.3.2...
    Stowing contents of 1.3.2
    Stowing directory 1.3.2/bin
    Stowing contents of 1.3.2/bin
    LINK /nfs/rainier/home/user3/arch/linux/bin/stow to ../../../packages/noarch/sto
    w/1.3.2/bin/stow
    Stowing directory 1.3.2/info
    LINK /nfs/rainier/home/user3/arch/linux/info to ../../packages/noarch/stow/1.3.2
    /info
    > stow --verbose=3 - t /nfs/rainier/hoe/user3/arch/irix 1.3.2
    Stowing package 1.3.2...
    Stowing contents of 1.3.2
    Stowing directory 1.3.2/bin
    Stowing contents of 1.3.2/bin
    LINK /nfs/rainier/home/user3/arch/linux/bin/stow to ../../../packages/noarch/sto
    w/1.3.2/bin/stow
    Stowing directory 1.3.2/info
    LINK /nfs/rainier/home/user3/arch/linux/info to ../../packages/noarch/stow/1.3.2
    /info
    > stow --verbose=3 - t /nfs/rainier/hoe/user3/arch/solaris 1.3.2
    Stowing package 1.3.2...
    Stowing contents of 1.3.2
    Stowing directory 1.3.2/bin
    Stowing contents of 1.3.2/bin
    LINK /nfs/rainier/home/user3/arch/linux/bin/stow to ../../../packages/noarch/sto
    w/1.3.2/bin/stow
    Stowing directory 1.3.2/info
    LINK /nfs/rainier/home/user3/arch/linux/info to ../../packages/noarch/stow/1.3.2
    /info
    

Last updated 31 Mar 2006 by machrist@cs.indiana.edu