IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 1 and Version 2 of ParallelIPPvers


Ignore:
Timestamp:
Apr 1, 2009, 9:12:10 AM (17 years ago)
Author:
Sebastian Jester
Comment:

Reformat code snippets for trac

Legend:

Unmodified
Added
Removed
Modified
  • ParallelIPPvers

    v1 v2  
     1
    12= Making an IPP installation accessible to multiple users =
    23
     
    56There's one directory where all IPP installations live. By default, it's ~/psconfig/ but you can make it a different location by creating a file ~/.psconfigrc which contains
    67 
     8{{{
    79 set PSCONFDIR = /IPP/
     10}}}
    811
    912Then create a directory $PSCONFDIR/psconfig and copy the psconfig.bash and psconfig.csh scripts there from the source tree (this is something that the build/install will probably do automatically in future).
     
    1114The only thing that's missing is an alias for psconfig that reads those .csh or .bash files:
    1215
     16{{{
    1317 bash: alias psconfig='source /IPP/psconfig.csh'
    1418 csh:  alias psconfig "source /IPP/psconfig.bash"
     19}}}
    1520
    1621Alternating between versions installed in a global directory and versions installed in your own home directory is possible, but you need to unset PSCONFDIR, make sure that there's no .psconfigrc (e.g. by renaming it), and point psconfig at the different different directory, so I don't recommend it.
     
    2227If ipp was installed with
    2328
     29{{{
    2430 psbuild -bootstrap PSCONFDIR
     31}}}
    2532
    2633the psconfig.bash and psconfig.csh point to the IPP installations in PSCONFDIR by default. Thus, for other users to use a given IPP install, they just need to create the same psconfig alias as the person who installed IPP, i.e.
    2734
     35{{{
    2836 alias psconfig="source PSCONFDIR/psconfig.bash"
     37}}}
    2938
    3039for bash, or
    3140
     41{{{
    3242 alias psconfig "source PSCONFDIR/psconfig.csh"
     43}}}
    3344
    3445for [t]csh.
     
    3849In Heidelberg, there's always a softlink ipp-default pointing to the most recent installed version of IPP. To use that, then just issue the command
    3950
     51{{{
    4052 psconfig ipp-default
     53}}}
    4154
    4255on the command-line.
     
    4861IPP has a config file hierarchy. There are two per-user config files:
    4962
     63{{{
    5064 ~/.ipprc # Definitions for psphot etc.
    5165 ~/.ptolemyrc # Definitions for dvo
     66}}}
    5267
    5368There are templates for both files, so to begin with, just copy those into your home directory. In Heidelberg, suitable templates are at
    5469
     70{{{
    5571 cp /IPP/ipprc.template ~/.ipprc
    5672 cp /IPP/ptolemyrc.template ~/.ptolemyrc
     73}}}
    5774
    5875The configuration system is hierarchical, with defaults in the global ippconfig directories that can be overridden by definitions in user-specified directories. E.g. to include camera definitions that are located in your own file area, edit the PATH in .ipprc:
    5976
     77{{{
    6078 PATH           STR     /home/jester/IPP/ippconfig/:MYINSTALLDIR/share/ippconfig:
     79}}}
    6180
    6281This looks for any required configuration files first in /home/jester/IPP/ippconfig/ and if it does not find a match there, takes the IPP-wide defaults. At present, you have to replicate an entire file in your own area if you want to change a single setting from the default. Also note that there is an internal hierarchy, with files in the recipes/ folder setting defaults that can be overriden in camera-specific files; the catch is that a concept MUST be present in the recipes/ version of a config file (i.e. you can't add new things in a camera-specific file).
     
    6988
    7089Get IPP tarfile or export from cvs and set the new version ID; including the date if from cvs, or using the version number if a numbered release
     90
     91'''Warning: these are outdated as we have moved from cvs to svn. However, I haven't done the equivalent in svn yet.'''
     92
     93{{{
    7194 # Access IPP cvs
    7295 export CVSROOT=cvs.pan-starrs.ifa.hawaii.edu:/cvsroot/pan-starrs; export CVS_RSH=ssh
     
    86109 psbuild -dev -extbuild
    87110 # omit the -dev if building from a version-numbered tarball
     111}}}
    88112
    89113If using pantasks, update your <code>~/.bashrc</code> (or equivalent) to point to the new version. Done!
     
    93117I wanted an install tree that has just Ohana i.e. dvo. To do that, I say
    94118
     119{{{
    95120 psconfig dvo-2.2
     121}}}
    96122
    97123which sets up a new install tree $PSCONFDIR/dvo-2.2. I then compile and install only Ohana:
    98124
     125{{{
    99126 psbuild -only Ohana -rebuild -clean
     127}}}
    100128
    101129I definitely need -rebuild because otherwise there may still be files pointing to the previous install directory and nothing happens because those are still up to date. I just threw in -clean for good measure, as I wouldn't bet on everything working without it.
     
    105133== Just analysis tools but not pipeline or anything that requires sql ==
    106134
     135{{{
    107136 psconfig ipp-2.2-nosql
    108137 psbuild -only Ohana -rebuild && psbuild -start psLib -stop ppSim -rebuild && psbuild -only ippconfig -rebuild
     138}}}
    109139
    110140I tried these without -clean and will see what happens.
     
    114144To use my just-Ohana tree, I log in and say
    115145
     146{{{
    116147 psconfig dvo-2.2
     148}}}
    117149
    118150I can then use dvo.
     
    120152Similarly, for the analysis-only distribution I say
    121153
     154{{{
    122155 psconfig ipp-2.2-nosql
     156}}}
    123157
    124158and can run psphot.