Child pages
  • Building O.I. by sb

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Lets use tww.uk.openindiana.org as example host.
    1. Setup tww-init directory and machine info.
      Code Block
      tjyang@tww.uk.openindiana.org:~$ mkdir tww-init;cd tww-init
      tjyang@tww.uk.openindiana.org:~/tww-init$ pwd
      /export/home/tjyang/tww-init
      tjyang@tww.uk.openindiana.org:~/tww-init$ uname -a
      SunOS tww.uk.openindiana.org 5.11 oi_147 i86pc i386 i86pc
      tjyang@tww.uk.openindiana.org:~/tww-init$ grep tjyang /etc/user_attr
      tjyang::::type=normal;profiles=Primary Administrator
      tjyang@tww.uk.openindiana.org:~/tww-init$
      
  2. Install a few tools by  "pfexec pkg install lftp git gnu-make wget rsync zip developer/object-file header-math imake makedepend"
  3. Use lftp to grab pkgutils-1.6.4.pkgadd.tar and others for i386-pc-solaris2.10 OS platform.
    Code Block
    tjyang@tww.uk.openindiana.org:~/tww-init$ lftp ftp://support.thewrittenword.com/dists/9.0/support/i386-pc-solaris2.10
    cd ok, cwd=/dists/9.0/support/i386-pc-solaris2.10
    lftp support.thewrittenword.com:/dists/9.0/support/i386-pc-solaris2.10>mget \
    pkgutils-1.6.4.pkgadd.tar \
    sbutils-1.3.0-2.pkgadd.pkg-inst \
    pbutils-1.1.22-1.pkgadd.pkg-inst \
    rpm-4.2-6.pkgadd.pkg-inst
    lftp support.thewrittenword.com:/dists/9.0/support/i386-pc-solaris2.10>
    
  4. untar pkgutils and use pkgadd to install TWW* SVR4 packages. Answer yes to all the questions.
    Code Block
    tjyang@tww.uk.openindiana.org:~/tww-init$ ls -lrt
    total 142449
    -rw-r--r--   1 tjyang   tjyang   24161554 Mar 18  2010 sbutils-1.3.0-2.pkgadd.pkg-inst
    drwxr-xr-x   4 tjyang   tjyang         7 Feb 18 21:47 TWWpkgutils16u
    drwxr-xr-x   3 tjyang   tjyang         5 Feb 18 21:47 TWWpkgutils16c
    drwxr-xr-x   3 tjyang   tjyang         6 Feb 18 21:47 TWWpkgutils16m
    -rw-r--r--   1 tjyang   tjyang   30825984 Feb 18 21:47 pkgutils-1.6.4.pkgadd.tar
    -rw-r--r--   1 tjyang   tjyang   10723264 Feb 18 23:38 pbutils-1.1.22-1.pkgadd.pkg-inst
    -rw-r--r--   1 tjyang   tjyang   7251511 Feb 18 23:38 pbutils-1.1.22-1.rpm.pkg-inst
    tjyang@tww.uk.openindiana.org:~/tww-init$ for i in TWW*; do pfexec pkgadd -d . $i; done
    
    
  5. Install sbutils,pbutils and (optional) rpm package manager for Solaris x86.
    Code Block
     tjyang@tww.uk.openindiana.org:~/tww-init$init$pfexec /opt/TWWfsw/bin/pkg-inst \
    sbutils-1.3.0-2.pkgadd.pkg-inst \
    pbutils-1.1.22-1.pkgadd.pkg-inst \
    rpm-4.2-6.pkgadd.pkg-inst
    
  6. Make sure /opt/SUNWspro/bin is in PATH of /opt/TWWfsw/sbutils13/etc/sbutils.conf since TWW packages use OS vendor supported compiler by default.
    Code Block
    <snipped>
    environment {
      PATH = "/opt/TWWfsw/sbutils13/lib/aux/bash/bin:\
    /opt/SUNWspro/bin:
    /opt/TWWfsw/sbutils13/lib/aux/bzip2/bin:\
    <snipped>
    
  7. Quick check of installed tool-sets
    Code Block
    tjyang@tww.uk.openindiana.org:~/tww-init$ sb --version;pb --version;pkg-inst --version
    1.3.0
    1.1.21
    1.6.4
    tjyang@tww.uk.openindiana.org:~/tww-init$
    
  8. Read http://en.wikibooks.org/wiki/CPAM_with_TWW/User_Guide to get the big picture.
  9. RTFM of TWW tool-sets.
    Code Block
    man sb
    man 4 depot-db.xml
    man 4 sb-db.xml
    man 4 sbutils.conf
    
    

...