Buttons Menu Map - loading... 
RD45 basic concepts  

Using Objectivity 5.1 from AFS 

To use Objectivity 5.1 from AFS you should 'source' one of the two shell scripts found in /afs/cern.ch/rd45/objectivity which will set the base environment variables to point to the right version of Objectivity/DB. The scripts are: 
    objyenv.csh - with C shell syntax (for csh and tcsh) 

    objyenv.sh - with Bourne shell syntax (for zsh and bash)

To execute objyenv.sh include the following lines in your startup script (i.e. .profile or .zprofile) file: 

    export OBJY_VERS=5.1  

    source /afs/cern.ch/rd45/objy/objyenv.sh

and to execute objyenv.csh include these lines in your .login or .cshrc file: 
    setenv OBJY_VERS 5.1 

    if ( -r /afs/cern.ch/rd45/objectivity/objyenv.csh ) then  

    source /afs/cern.ch/rd45/objectivity/objyenv.csh   

    endif 

NOTE for Solaris platform:  
    The supported compiler for version 5.1 C++ is SC4.2. This compiler is installed on AFS in directory: /afs/cern.ch/project/sun/solaris/opt/SUNWspro42/SC4.2 and should be visible in local filesystem under /opt/SUNWspro/SC4.2 (or /opt/SUNWspro42/SC4.2 depending on the local configuration) 

    If this compiler is not the default one, please execute following commands (or equivalent for csh syntax) to change the environment: 
     

      export LD_LIBRARY_PATH=/opt/SUNWspro/SC4.2/lib:${LD_LIBRARY_PATH}  

      export PATH=/opt/SUNWspro/SC4.2/bin:${PATH} 
       

    Also, do not forget to use the correct path for include directory in your makefiles. 

For developers:
    If you change between different objectivity versions, you can use (source) another script that will remove old entries from the environment before adding the new ones. The script is in:
    /afs/cern.ch/rd45/objectivity/chobjyenv.sh
    There is no csh version.
 
  Platforms and Compilers supported by version 5.1 are indicated here.
 
 
 

  Eva.Arderiu@cern.chMarcin.Nowak@cern.ch