IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 5 and Version 6 of ParallelIPPvers


Ignore:
Timestamp:
Apr 14, 2009, 4:25:16 AM (17 years ago)
Author:
Sebastian Jester
Comment:

clean up PSCONFDIR-related things

Legend:

Unmodified
Added
Removed
Modified
  • ParallelIPPvers

    v5 v6  
    11= How to install one or more parallel IPP installations =
    22
    3 == Preliminaries: Setting up a global psconfig directory ==
     3IPP comes with a mechanism called 'psfconfig' that intends to allow installation and compilation of multiple versions and for multiple platforms on the same disk area. A user selects one of the installed versions (e.g. ipp-2.6.1) by issuing a psconfig command, e.g.
     4{{{
     5 psconfig ipp-2.6.1
     6}}}
     7which then sets the PATH etc. appropriately to point to the relevant directories for the chosen version and architecture. The psconfig mechanism needs just a little bit of setting up.
     8
     9== Preliminaries: Setting up a global psconfig directory before installing IPP for the first time ==
    410
    511There'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
     
    915}}}
    1016
    11 Then 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).
    12 
    13 The only thing that's missing is an alias for psconfig that reads those .csh or .bash files:
     17'''If someone else has installed IPP for you''', as is the case in Heidelberg, creating that file is all you need to do to point to those IPP installations. Then set the required aliases in your .[t]chsrc or .bashrc file:
    1418
    1519{{{
    1620 bash: alias psconfig='source /IPP/psconfig.csh'
    17  csh:  alias psconfig "source /IPP/psconfig.bash"
     21 [t]csh:  alias psconfig "source /IPP/psconfig.bash"
    1822}}}
     23(or whatever else PSCONFDIR is set to instead of /IPP).
     24
     25If you are doing the installing of IPP, the PSCONFDIR root directory is set up by the command
     26{{{
     27 psbuild -bootstrap $PSCONFDIR
     28}}}
     29'''be sure to use the same value for PSCONFDIR here as in the ~/.psconfigrc''' or everything will get messed up. Once installed, psconfig will set an environment variable PSCONFDIR automatically. (See installation instructions below for where to find psbuild...)
    1930
    2031Alternating 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.
     
    2233To run pantasks, your startup file ~/.bashrc or ~/.tcshrc needs to execute psconfig; see [wiki:Pantasks_FAQ#Why_are_my_nodes_"down"_or_"resp"? Pantasks_FAQ#Why are my nodes "down" or "resp"?]
    2334
    24 == Setting an alias ==
    25 
    26 If ipp was installed with
    27 
    28 {{{
    29  psbuild -bootstrap PSCONFDIR
    30 }}}
    31 
    32 the 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.
    33 
    34 {{{
    35  alias psconfig="source PSCONFDIR/psconfig.bash"
    36 }}}
    37 
    38 for bash, or
    39 
    40 {{{
    41  alias psconfig "source PSCONFDIR/psconfig.csh"
    42 }}}
    43 
    44 for [t]csh.
    45 
    46 PSCONFDIR needs to be readable by all the intended users, of course, '''AND NEEDS TO BE IDENTICAL TO WHAT'S SET IN ~/.psconfigrc'''.
     35== Setting the IPP version oto use ==
    4736
    4837In 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