D0 Code - Initial installation of UPS/UPD/PERL

This document discribes how to do the initial installation of UPS, UPD and Perl needed to allow for remote distributions of the D0 code to your site.

We are using Fermilab's ups/upd (Unix Product Support and Unix Product Distribution) to maintain and distribute the multiple versions of our code. ups/upd allows a large number of variations on how it is installed, and on how the code it is managing is installed. This document describes only one such, essentially the one we are using here at D0 on d0chb.

The steps you'll need to take in order to setup your site tobe able to receive remote distributions of the D0 software are:

Once this is done, you use ups and upd to pull over the products you need, including the D0 code.

Organization

At D0, on d0chb we maintain three ups databases:
The /usr/products and /d0usr/products areas could be combined. But we believe that it makes for simpler maintainence to keep them seperate. Their source and therefore the command needed to update them are slightly different. /d0dist/dist must be seperate. Therefore we recommend that you organize your db's into three as well. These three areas can all be on one physical disk, or be seperated on three.

NOTE: the names of these areas need not be as given above, but it makes life simpler if they are. In the following I will assume these names. If you wish to put them somewhere else, just substitute your names.

UPS/UPD/Perl installation

You must first install ups/upd and perl (v5.004 or later). The documentation for ups and upd is at http://www.fnal.gov/docs/products/ups/. The Reference Manual (available in both html and postscript versions) is very long and detailed and should be consulted if the shorter Installation and Upgrade Instructions or even shorter Installation Summary are not clear. We recommend working backward from the shorter to the longer documents as needed. For most purposes the Installation Summary along with the specific examples given here should suffice. The bullets below are the same as those in the summary. This is an amplification of the information in that summary with specific recommendations for D0. So read both of these documents at once.
  1. obvious:

  2. where the db's live

  3. from ftp://fnkits.fnal.gov/products/ ups/, upd/ and perl/
    look for the latest version, then the "flavor" either the "NULL" flavor (for upd) or for your machine type for the others.

    You can save the tar files using your web browser, but in order to use upd or anonymous ftp you'll need to be registered. These programs are freely available for anyone in the high energy physics community. But you do need to fill out and email the UPD Registration Request form to me at d0-release-mgr@fnal.gov. I'll get you registered at the FNAL kits site (fnkits) as well as at D0's distribution site.

    If you have or will have only a single "flavor" of operating system reading from this disk, unwind them into: /usr/products/ups/v4_x or the directory appropriate for the version you pulled. If you'll have multiple "flavors" using that disk then add a further level of subdirectories named for the flavor you are pulling (ie IRIX+6/). The latter is assumed in several of the examples below.

  4. Do this for each of the three db's, /usr/product/upsdb/... Only the main db needs all of the subdirectories. All of them need the .upsfiles/ and the .upsfiles/statistics/ (if you want to collect statistics, we don't) directories.

  5. I hope you won't be doing this!

  6. or this!

  7. The version specified should be the one you pulled over.

    NOTE: you shouldn't need to edit any fermi files. In fact we are not recommending that you install them. You can, but don't need to. For our purposes all you need do is to tell your users who want/need to use the D0 software to put one of the following lines into their .login or .profile files:

        > source <your-setups_dir>/setups.csh
    or
        > . <your-setups_dir>/setups.sh
    
  8. won't need this

  9. probably won't need this unless you want ups to startup things like web servers. We do it and it's rather convenient, but not necessary.

  10. this is just to keep people from having parts of both ups v3.x and ups v4.x in use at the same time. A new installation doesn't need it.

  11. shouldn't be need.

Alan Jonckheere
Last modified: Fri Sep 4 17:49:08 CDT 1998