The dirac-install script

The main tool to perform any DIRAC3 installation is the script dirac-install.

The latest version can be retrieved from http://cern.ch/lhcbproject/dist/DIRAC3/scripts/dirac-install

The script attempts a DIRAC3 client installation, under the directory it is sitting.

A DIRAC3 client local installation

The simplest way to get a working DIRAC installation is to do the following:

# mkdir DIRAC3
# cd DIRAC3
# wget http://cern.ch/lhcbproject/dist/DIRAC3/scripts/dirac-install
# python dirac-install -v [version]

An example output is:

# python dirac-install -v v4r1p1
2008-11-18 15:58:22 UTC dirac-install INFO Running "dirac-install" version "$Revision: 1.4 $"
2008-11-18 15:58:22 UTC dirac-install INFO Checking DIRAC installation at "/tmp/rgracian/DIRAC3/DIRAC3"
2008-11-18 15:58:22 UTC dirac-install INFO Using platform "Linux_x86_64_glibc-2.3.4"
2008-11-18 15:58:28 UTC dirac-install INFO Building "DIRAC"
2008-11-18 15:58:32 UTC dirac-install INFO Will retry now with DIRAC python
2008-11-18 15:58:32 UTC dirac-update INFO Running "dirac-update" version "$Revision: 1.4 $"
2008-11-18 15:58:32 UTC dirac-update INFO Checking DIRAC installation at "/tmp/rgracian/DIRAC3/DIRAC3"
2008-11-18 15:58:32 UTC dirac-update INFO Using platform "Linux_x86_64_glibc-2.3.4"
2008-11-18 15:58:32 UTC dirac-update INFO DIRAC-platform = Linux_x86_64_glibc-2.3.4
2008-11-18 15:58:32 UTC Framework ERROR: No proxy found
2008-11-18 15:58:32 UTC Framework ERROR: No proxy found
2008-11-18 15:58:32 UTC Framework ERROR: Can't update from any server Reason(s):
2008-11-18 15:58:32 UTC Framework ERROR:  Insane environment for protocol: No proxy found
2008-11-18 15:58:33 UTC dirac-update INFO Setting /DIRAC/Setup = LHCb-Production
2008-11-18 15:58:33 UTC dirac-update INFO DIRAC version "v4r1p1" installed
2008-11-18 15:58:33 UTC dirac-update INFO DIRAC-external version "v4r0" installed

The "No proxy found" ERROR will not be there if you already have a valid grid proxy in your working environment. If you get the error you can use tools just installed to create a new proxy and repeat the installation:

# ./scripts/dirac-proxy-init
Enter Certificate password:
and this time:
# python dirac-install -v v4r1p1
2008-11-18 16:13:01 UTC dirac-install INFO Running "dirac-install" version "$Revision: 1.4 $"
2008-11-18 16:13:01 UTC dirac-install INFO Checking DIRAC installation at "/tmp/rgracian/DIRAC3/DIRAC3"
2008-11-18 16:13:01 UTC dirac-install INFO Using platform "Linux_x86_64_glibc-2.3.4"
2008-11-18 16:13:06 UTC dirac-install INFO Will retry now with DIRAC python
2008-11-18 16:13:07 UTC dirac-update INFO Running "dirac-update" version "$Revision: 1.4 $"
2008-11-18 16:13:07 UTC dirac-update INFO Checking DIRAC installation at "/tmp/rgracian/DIRAC3/DIRAC3"
2008-11-18 16:13:08 UTC dirac-update INFO Using platform "Linux_x86_64_glibc-2.3.4"
2008-11-18 16:13:09 UTC dirac-update INFO DIRAC-platform = Linux_x86_64_glibc-2.3.4
2008-11-18 16:13:12 UTC dirac-update INFO Setting /DIRAC/Setup = LHCb-Production
2008-11-18 16:13:12 UTC dirac-update INFO DIRAC version "v4r1p1" installed
2008-11-18 16:13:12 UTC dirac-update INFO DIRAC-external version "v4r0" installed

A DIRAC3 client local installation for non-precompiled platforms

DIRAC3 client shoul be able to install on any "recent" unix like operating system. As of today precompiled tarballs are available for Scientific Linux 4 compatible OS (64 and 32 bit versions). DIRAC3 is known to compile without major problems in systems with most Linux flavours and MacOS. When trying to install in a non-precompiled platform you will get an error like the following (this is an example for ubuntu 8.04):

#python dirac-install -v v4r1p1
2008-11-18 16:42:51 UTC dirac-install INFO Running "dirac-install" version "$Revision: 1.4 $"
2008-11-18 16:42:51 UTC dirac-install INFO Checking DIRAC installation at "/tmp/DIRAC3"
2008-11-18 16:42:52 UTC dirac-install INFO Using platform "Linux_i686_glibc-2.7"
2008-11-18 16:42:52 UTC dirac-install ERROR Platform "Linux_i686_glibc-2.7" not available, use --build flag

so following the instructions one should get (after few minutes):

python dirac-install -v v4r1p1 --build
2008-11-18 16:43:38 UTC dirac-install INFO Running "dirac-install" version "$Revision: 1.4 $"
2008-11-18 16:43:38 UTC dirac-install INFO Checking DIRAC installation at "/tmp/DIRAC3"
2008-11-18 16:43:38 UTC dirac-install INFO   Using platform "Linux_i686_glibc-2.7"
2008-11-18 16:43:38 UTC dirac-install INFO   Donwloading src tar
2008-11-18 16:43:56 UTC dirac-install INFO    Building "external/sqlite-3.5.4"
2008-11-18 16:46:06 UTC dirac-install INFO    Building "external/Python-2.4.4"
2008-11-18 16:49:04 UTC dirac-install INFO    Building "contrib/pyGSI"

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
2008-11-18 16:51:46 UTC dirac-install INFO    Building "DIRAC"
2008-11-18 16:51:49 UTC dirac-install INFO   Will retry now with DIRAC python
2008-11-18 16:51:49 UTC dirac-update INFO   Running "dirac-update" version "$Revision: 1.4 $"
2008-11-18 16:51:49 UTC dirac-update INFO   Checking DIRAC installation at "/tmp/DIRAC3"
2008-11-18 16:51:49 UTC dirac-update INFO   Using platform "Linux_i686_glibc-2.7"
2008-11-18 16:51:50 UTC dirac-update INFO   DIRAC-platform = Linux_i686_glibc-2.7
2008-11-18 16:51:51 UTC dirac-update INFO   Setting /DIRAC/Setup = LHCb-Production
2008-11-18 16:51:51 UTC dirac-update INFO   DIRAC version "v4r1p1" installed
2008-11-18 16:51:51 UTC dirac-update INFO   DIRAC-external version "v4r0" installed

Note: LCG python bindings (for lfc and gfal) are only available for Scientific Linux 4 compatible OS, this means that those will not get install in your client installation if you are not running in any of those OS (this is the cause of the gzip error that is shown, to be fixed).

A DIRAC3 client, site wide installation

A single DIRAC3 client installation can be shared among different computers sharing a common file system (like afs at CERN). In this case there are several things to take into account:

  • Decide a directory, visible from all the computers on your system: /opt/DIRAC
  • Given a name to your installation (DIRAC site name): DIRAC.Barcelona.es
  • Do you need a multi-platform installation? They can all be installed under the same directory.
Two steps are necessary:
1.- Native installation from one of the computers with access to common file system.
2.- Installation of the other platforms.



-- RicardoGraciani - 18 Nov 2008

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2009-02-03 - RicardoGraciani
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback