<<O>>  Difference Topic InstalacionDesdeAFSDeDESY (r1.3 - 30 Sep 2009 - Main.iglesias)

META TOPICPARENT WebHome

1. Intalacion del software de ILC

Line: 12 to 12

./ilcsoft-install -i my_install_v01-04.cfg (instalacion directamente)
Added:
>
>
Nota: Al final de la instalacion, tuve problema con el paquete Mokka, una variable de entorno relacionada con Geant4 estaba mal definida. El problema se resolvio ponienfo en el directorio my_v01-04 o en v01-06:
unset G4VIS_USE_RAYTRACERX
y volviendo a re-compilar Mokka (./ilcsoft-install -i my_release_v01-06.cfg)

1.b.i. Descripcion de los paquetes de ILCSOFT

Los paquetes de ILCSOFT a utilizar son los siguientes:
 <<O>>  Difference Topic InstalacionDesdeAFSDeDESY (r1.2 - 18 Sep 2009 - Main.iglesias)

META TOPICPARENT WebHome

1. Intalacion del software de ILC

 <<O>>  Difference Topic InstalacionDesdeAFSDeDESY (r1.1 - 11 Dec 2008 - Main.iglesias)
Line: 1 to 1
Added:
>
>
META TOPICPARENT WebHome

1. Intalacion del software de ILC

1.b. Instalación del software de ilc desde AFS

Asi, como pone en la web ILCINSTALL: http://ilcsoft.desy.de/portal/software_packages/ilcinstall/ me he copiado el archivo ilscinstall.tar.gz y lo he descomprimido, y despues dentro del directorio ilcinstall he puesto: (debo poner ./ delante para ejecutarlo por requerimiento de seguridad de la USC)
./ilcsoft-install -p my_install_v01-04.cfg (previsualizacion de la instalación)
./ilcsoft-install -s my_install_v01-04.cfg (muestra un resumen de la instalacion y chequea con que paquetes el software se va a construir o linkar con ellos
./ilcsoft-install -i my_install_v01-04.cfg  (instalacion directamente)

1.b.i. Descripcion de los paquetes de ILCSOFT

Los paquetes de ILCSOFT a utilizar son los siguientes:
  • LCIO: LCIO is a persistency framework that defines a data model for linear collider detector studies. It is intended to be used in both simulation studies and analysis frameworks. Its light eight and portability makes it also suitable for use in detector R&D applications. It provides a C++ and a Java implementation with a common interface (API): http://lcio.desy.de/

  • CED: The C Event Display (CED) is a client server based event display for the Marlin Framework. This is the server part, which accepts connections form a Marlin processor, and displays the event on the screen.CED uses OpenGL? and the OpenGL? Utility Toolkit (GLUT). To install and run CED GLUT must be installed on your System: http://ilcsoft.desy.de/portal/software_packages/ced/

  • RAIDA: RAIDA is a ROOT implementation of AIDA (Abstract Interfaces for Data Analysis).RAIDA offers the possibility to create and fill n-tuple or histograms using standard ROOT objects with AIDA. our main application of RAIDA is to create ROOT output to be analysed using the ROOT program: http://ilcsoft.desy.de/portal/software_packages/raida/

  • CLHEP: A Class Library for High Energy Physics - is intended to be a set of HEP-specific foundation and utility classes such as random generators,physics vectors, geometry and linear algebra. CLHEP is structured in a set of packages independent of any external package: http://wwwasd.web.cern.ch/wwwasd/lhc++/clhep/

  • GSL: The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License. The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. http://www.gnu.org/software/gsl/

  • CERNLIB: The CERN Program Library is a large collection of general purpose libraries and modules maintained and offered in both source and object code form on the CERN central computers. http://cernlib.web.cern.ch/cernlib/

  • GEAR: A geometry description toolkit for ILC reconstruction software.This description is different from the geometry description needed for the detailed simulation of the detector response.For the simualtion one needs very detailed knowledge of the material distribution in space whereas for the reconstruction mostly a higher level description of the subdetector's charcteristics is needed.It uses XML files for the definition of the subdetector's geometry parameters, to generic material properties in space, like the material's density at a given point or the integrated B-field along a (straight) path between two points: http://ilcsoft.desy.de/portal/software_packages/gear/index_eng.html

1.b.ii. Creacion del Script de instalacion

En primer lugar se debe editar el fichero my_install_v01-04.cfg y cambiar:
ilcsoft= ILCSoft ("/afs/desy.de/group/it/ilcsoft/v01-04")
por el directorio donde quiero que me ponga los links
ilcsoft=ILCSoft ("/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04")
Y puse la opcion de “install”, “link” o “use” a los distintos paquetes del software de ilc que queria utilizar con los path correspondientes, segun conviniese:
  • No es recomendable usar “link” es mejor usar “use” o “install”
  • Para los paquetes que tu quieres usar desde tu distribución utiliza la opción “use” y especifica el path. Por ejemplo, para CMake, si tu lo tienes en tu directorio local /usr/bin/CMake, solo debes poner
      ilcsoft.use( CMake("/usr/")) 
y será encontrado automáticamente por ilcinstall
  • Para los paquetes de ilc-soft que no procedan de tu distribución debes utilizar “install” y especificar la versión:
      ilcsoft.install( Marlin( "v00-10-03" ))
      ilcsoft.install( LCIO( "v01-10-01" ))
  • Siempre que se use las opciones “use” o “link” debe especificarse el path completo del paquete

#################################################################
#
# Configuration file for installing the ILC Software 
# release v01-04 using the CMake build tool (http://www.cmake.org)
#
# Patches:
#
# Note: Please modify the directories according to your system
#
#
# Author: F.Gaede, DESY
# Date: 23 Jul, 2008
#
#################################################################
# Set ilcsoft and ilcPath to the local directories you want to use. 
# ILCSoft( "install path for ILC software")
ilcsoft= ILCSoft("/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04")

# python variable for referring the ILC Home directory
# only for SL3 and SL4 users
ilcPath = "/afs/desy.de/group/it/ilcsoft/"
ilcuser = "/usr"

# Global variables              # default values are shown between ( )
ilcsoft.debug = True           # build in debug mode (False)
#ilcsoft.buildDoc = False       # build documentation (True)
#ilcsoft.downloadOnly = True    # download software only (False)
ilcsoft.useCMake = True         # use CMake building tool (False)

#LCIO
ilcsoft.install( LCIO( "v01-10-01" ))

#MARLIN
ilcsoft.install( Marlin( "v00-10-03" ))

# If you want to swicht off or on some dependences…
#Marlin = Marlin( "v00-10-03" )         # IMPORTANT: These 2 lines must be
#ilcsoft.install( Marlin )         # together and in this exact order!!

#Marlin.buildWithout( ["CLHEP"] )
#Marlin.buildDoc = True
#Marlin.debug = True
#Marlin.buildJava = False
#Marlin.buildFortran = False

# if you wish to also build Marlin GUI
#ilcsoft.module("Marlin").env["MARLIN_GUI"] = 1
# QT4 is required for building Marlin GUI (see $MARLIN/gui/README for details...)
# if you wish you can install QT with this script, but this really takes a very long time!!
#ilcsoft.install( QT( "4.2.2" ))
# I would recommend you to use a precompiled version of qt4 for your system
# SL3 and SL4 users can use the following line:
ilcsoft.use( QT( ilcPath + "QT/4.2.2" ))
#
#CCVSSH package works as a bridge to remote CVS pservers using SSL tunneling: http://ccvssh.sourceforge.net/
#ilcsoft.module( "Marlin").download.type="ccvssh"

# MARLIN PACKAGES 
#(ATTENTION: Number version of the packages revised for release v01-04)
#-------------------------------------------------
#
ilcsoft.install( CEDViewer( "v00-06" )) 
#ilcsoft.module( "CEDViewer").download.type="ccvssh"
#
ilcsoft.install( LCFIVertex( "v00-02-07-dev" ))
#ilcsoft.module( "LCFIVertex").download.type="ccvssh"
#
ilcsoft.install( SiliconDigi( "v00-04-01" ))
#
# ilcsoft.install( Overlay( "v00-02" ))
#
ilcsoft.install( Eutelescope( "v00-00-06" ))
#
ilcsoft.install( MarlinTPC( "v00-02-06" ))

stdconf = ConfigPKG( "StandardConfig", "v00-06-00" )
ilcsoft.install( stdconf )
stdconf.download.root = "marlinreco"
#stdconf.download.type="ccvssh"

ilcsoft.install( MarlinReco( "v00-10-04" )) 
#ilcsoft.module( "MarlinReco").download.type="ccvssh"
#
ilcsoft.install( PandoraPFA( "v02-03-00" ))
#ilcsoft.module( "PandoraPFA").download.type="ccvssh"
#
ilcsoft.install( MarlinUtil( "v00-11" ))
#ilcsoft.module( "MarlinUtil").download.type="ccvssh"

#---------------------------------------------------------------
ftag = ConfigPKG( "LCFI_SGVbasedNets", "v00-01" )
ilcsoft.install( ftag )
ftag.download.root = "tagnet"
#----------------------------------------------------------------

# CED
ilcsoft.install( CED( "v00-05" ))
ilcsoft.module( "CED").envcmake["CED_SERVER"]='ON'
#ilcsoft.module( "CED").download.type="ccvssh"

# LCCD
ilcsoft.install( LCCD( "v00-03-06" ))

# RAIDA
ilcsoft.install( RAIDA( "v01-04-02" ))

# MOKKA
ilcsoft.install( Mokka( "mokka-06-06-p03" ))
#ilcsoft.module( "Mokka").download.type="cvs"

####################################################################
#
# - the following tools are installed in afs for SL3 and SL4 @
#
#     /afs/desy.de/group/it/ilcsoft/
#
# they can be linked from there or need to be installed on your system
#
####################################################################

#CLHEP
#ilcsoft.install( CLHEP( ilcPath + "CLHEP/2.0.3.2" ))
# use the link to mnt/data2/ilc/ temporally because there are problem linking to DESY directory
# CLHEP_/afs/desy.de/group/it/ilcsoft/CLHEP/2.0.3.2.tgz: No such file or directory
ilcsoft.use(CLHEP("/mnt/data2/ilc/v01-04/CLHEP/2.0.3.2"))

# ROOT
ilcsoft.link( ROOT( ilcPath + "root/5.16.00" ))

# Geant 4
ilcsoft.link( Geant4 ( ilcPath + "geant4/9.1" ))
ilcsoft.module("Geant4").env["G4ENV_INIT"] = ilcPath + "geant4/env_9.1.sh"
#
# using my local instalation
#ilcsoft.use( Geant4 ("/mnt/data2/ilc/geant4/9.1"))
# I must specify a valid path for geant4:
#ilcsoft.module("Geant4").env["G4ENV_INIT"] ="/mnt/data2/ilc/geant4/env_9.1.sh"

# MySQL 
#I specified "/usr", as my mysql is /usr/bin/mysql, and this is found by ilcinstall.
ilcsoft.use( MySQL("/usr/"))

# CMake
ilcsoft.install( CMake( "2.4.6" ))
#I specified "/usr", as my cmake is /usr/bin/cmake, and this is found by ilcinstall.
#ilcsoft.use( CMake ("/usr"))

# QT
# my local version is QT/3.3 and it is in /usr/lib/QT-3.3 
#I specified "/usr", as my QT is /usr/bin/QT, and this is found by ilcinstall.
#ilcsoft.use( QT ("/usr/"))
# QT4 is required for building Marlin GUI (see $MARLIN/gui/README for details...)
# if you wish you can install QT with this script, but this really takes a very long time!!
#ilcsoft.install( QT( "4.2.2" ))
# I would recommend you to use a precompiled version of qt4 for your system
# SL3 and SL4 users can use the following line:
ilcsoft.use( QT( ilcPath + "QT/4.2.2" ))

# GSL
#ilcsoft.link( GSL( ilcPath + "gsl/1.8" ))
#ilcsoft.install( GSL( ilcPath + "gsl/1.8" ))
#I specified "/usr", as my GSL is /usr/bin, and this is found by ilcinstall.
ilcsoft.use( GSL("/usr/" ))
#ilcsoft.use( GSL(ilcuser +"/bin/" ))

# CondDBMySQL
#ilcsoft.install( CondDBMySQL( ilcPath + "CondDBMySQL/CondDBMySQL_ILC-0-5-10" ))
ilcsoft.install( CondDBMySQL( "CondDBMySQL_ILC-0-5-10" ))

# CMakeModules
ilcsoft.install( CMakeModules( "v01-07" ))

# CERNLIB
ilcsoft.link( CERNLIB( ilcPath + "cernlib/2006" ))
#ilcsoft.use( CERNLIB("/usr/" ))
#ilcsoft.link( CERNLIB("/usr/lib/cernlib/2006" ))
#ilcsoft.use( CERNLIB("/usr/lib/cernlib/2006" ))

# GEAR
ilcsoft.install( GEAR( "v00-09" ))

# Java
ilcsoft.link( Java( ilcPath + "java/1.6.0" ))
# end of configuration file

Para solucionar algunos problemas al linkar algunos paquetes he usado directamente la version de los mismos que habia en el directorio de afs/desy.de/ sin especificar el PATH y unicamente poniendo la version que quiero usar:

ilcsoft.install( Marlin( "v00-10-03" ))
ilcsoft.install( LCIO( "v01-10-01" ))
ilcsoft.install( CEDViewer( "v00-06" )) 
ilcsoft.install( LCFIVertex( "v00-02-07-dev" ))
ilcsoft.install( SiliconDigi( "v00-04-01" ))
ilcsoft.install( Overlay( "v00-02" ))
ilcsoft.install( Eutelescope( "v00-00-06" ))
ilcsoft.install( MarlinTPC( "v00-02-06" ))
ilcsoft.install( MarlinReco( "v00-10-04" )) 
ilcsoft.install( PandoraPFA( "v02-03-00" ))
ilcsoft.install( MarlinUtil( "v00-11" ))

ilcsoft.install( CED( "v00-05" ))
ilcsoft.module( "CED").envcmake["CED_SERVER"]='ON'
ilcsoft.install( LCCD( "v00-03-06" ))
ilcsoft.install( RAIDA( "v01-04-02" ))
ilcsoft.install( Mokka( "mokka-06-06-p03" ))

ilcsoft.install( CMake( "2.4.6" ))
ilcsoft.install( CMakeModules( "v01-07" ))
ilcsoft.install( GEAR( "v00-09" ))
Para QT por ahora no lo he instalado (lleva 5 horas), sino que linko a la version pre-compilada que hay en desy.
ilcsoft.use( QT( ilcPath + "QT/4.2.2" ))

Otros paquetes no están instalados, solo linkados (indicando el path completo), porque no permite su instalación de esta forma:

ilcsoft.link( ROOT( ilcPath + "root/5.16.00" ))
ilcsoft.link( Geant4 ( ilcPath + "geant4/9.1" ))
ilcsoft.module("Geant4").env["G4ENV_INIT"] = ilcPath + "geant4/env_9.1.sh"
ilcsoft.link( CERNLIB( ilcPath + "cernlib/2006" )) (porque aun no estaba bien instalado localmente)
ilcsoft.link( Java( ilcPath + "java/1.6.0" )) (porque aun no estaba bien instalado localmente)

Y algunos paquetes los linko de mis directorios locales, y pongo la opción “use”:

#I specified "/usr", as my GSL is /usr/bin, and this is found by ilcinstall.
ilcsoft.use( GSL("/usr/" ))
#I specified "/usr", as my mysql is /usr/bin/mysql, and this is found by ilcinstall.
ilcsoft.use( MySQL("/usr/"))
# use the link to mnt/data2/ilc/ temporally because there are problem linking to DESY directory
ilcsoft.use(CLHEP("/mnt/data2/ilc/v01-04/CLHEP/2.0.3.2"))

Una vez completada la instalacion del release v04-01, sigo las instrucciones para construir Marlin utilizando CMake:

1st: make sure cmake is in your PATH environment! (for SL3 and SL4 users check /afs/desy.de/group/it/ilcsoft/CMake )
2nd: edit the file BuildSetup.cmake and change it according to your system setup.
Afterwards type:
    $ mkdir build
    $ cd build
    $ cmake -C ../BuildSetup.cmake ..
   $ make install
Afterwards you have to tell Marlin to load the processor by setting the environment variable MARLIN_DLL:
   $ export MARLIN_DLL="$PWD/lib/libmymarlin.so"

1.b.iii. Definicion de librerias dinamicas

En mi caso, para linkar todas las librerias dinamicas, me he creado un fichero:
# Defino las librerias dinamicas a utilizar especificando los paths de cada una
export MARLIN_DLL=/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/Marlin/v00-10-03/lib/libMarlin.so
#para sobre-escribir mas librerias hay que añadir  export MARLIN_DLL=$MARLIN_DLL:
#para que no sea tan largo el path puedo definir el directorio de mi release:
export MYrelease=/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04

export MARLIN_DLL=$MARLIN_DLL:$MYrelease/lcio/v01-10-01/lib/liblcio.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/MarlinReco/v00-10-04/lib/libMarlinReco.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/CEDViewer/v00-06/lib/libCEDViewer.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/SiliconDigi/v00-04-01/lib/libSiliconDigi.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/LCFIVertex/v00-02-07-dev/lib/libLCFIVertex.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/PandoraPFA/v02-03-00/lib/libPandoraPFA.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/Overlay/v00-02/lib/libOverlay.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/Eutelescope/v00-00-06/lib/libEutelescope.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/CED/v00-05/lib/libCED.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/CLHEP/2.0.3.2/lib/libCLHEP.so:libCLHEP-Cast-2.0.3.2.so:libCLHEP-Evaluator-2.0.3.2.so:libCLHEP-Exceptions-2.0.3.2.so:libCLHEP-GenericFunctions-2.0.3.2.so:libCLHEP-Geometry-2.0.3.2.so:libCLHEP-Matrix-2.0.3.2.so:libCLHEP-Random-2.0.3.2.so:libCLHEP-RefCount-2.0.3.2.so:libCLHEP-Vector-2.0.3.2.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/CondDBMySQL/CondDBMySQL_ILC-0-5-10/lib/libconddb.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/gear/v00-09/lib/libgear.so:libgearxml.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/lccd/v00-03-06/lib/liblccd.so 
#export MARLIN_DLL=$MARLIN_DLL:$MYrelease/MarlinTPC/v00-02-06/lib/lib*so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/MarlinUtil/v00-11/lib/libMarlinUtil.so
export MARLIN_DLL=$MARLIN_DLL:$MYrelease/RAIDA/v01-04-02/lib/libRAIDA.so
#export MARLIN_DLL=$MARLIN_DLL:$MYrelease/root/5.16.00/lib/lib*so

Lo ejecuto poniendo:

. definir_librerias_dinamicas.sh

1.b.iv. Definicion del path de los binarios ejecutables

Tal como esta hecha la instalacion para ejecutar Marlin debo ir al directorio: ilcinstall/my_v01-04/Marlin/v00-10-03/bin, puesto que cada paquete crea su ejecutable en su propio area (Marlin en el area de Marlin, lcio en el de lcio…). Esto queda definido con la variable PATH, que contiene los directorios donde busca la terminal cuando le enviamos un comando.

Como me interesa poder ejecutar Marlin en cualquier directorio, y en concreto en mi directorio de trabajo (ilcinstall/my_v01-04/), debo redefinir los PATH incluyendo los directorios donde tengo los ejecutables, por ejemplo:

export PATH=$PATH:/path_completo_hasta/ilcinstall/my_v01-04/Marlin/v00-10-03/bin
export PATH=$PATH:/path_completo_hasta/ilcinstall/my_v01-04/lcio/v01-10-01/bin
y todos los que considere que hay binarios que me interesan ejecutar. En mi caso me cree un fichero que me lo hace para ejecutarlo al abrir una ventana por primera vez.
#primero compruebo si ya fue ejecutado al abrir la ventana, y sino lo ejecuto, pues solo hace falta ejecutarlo una vez en cada ventana
echo $PATH | grep -q "my_v01-04/Marlin/v00-10-03" 

if [[ "$?" != "0" ]]; then
 export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/Marlin/v00-10-03/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/lcio/v01-10-01/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/CED/v00-05/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/cernlib/2006/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/CLHEP/2.0.3.2/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/CMake/2.4.6/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/CondDBMySQL/CondDBMySQL_ILC-0-5-10/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/gear/v00-09/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/java/1.6.0/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/Mokka/mokka-06-06-p03/bin/Linux-g++
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/RAIDA/v01-04-02/bin
export PATH=$PATH:/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/root/5.16.00/bin
fi
echo " Defino los binarios con ejecutables"
echo " PATH set to $PATH"
Lo ejecuto poniendo:
. definir_binarios_en_path.sh

1.b.v.Definicion de las variables de entorno

De igual modo, para poder lanzar correctamente Marlin o cualquier otro comando correctamente desde mi directorio de trabajo (install/my_v01-04), me genero un archivo en el que defino todas las variables de entorno necesarias para el software de ilc (en la versión de los archivos binarios esto se hace en un fichero llamado initILCSOFT.sh). En este caso, lo hago modificando el fichero bulid_env.sh generado automáticamente al realizar la instalación del SW en cada uno de los directorios de cada paquete, en mi caso cogi el del directorio de Marlin)

################################################################################
# script que me inicializa las variables de entorno
# 5- diciembre - 2008 
################################################################################

#--------------------------------------------------------------------------------
#     Marlin
#--------------------------------------------------------------------------------
export MARLINWORKDIR="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04"
#export MARLINWORKDIR="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/Marlin/v00-10-03"
export MARLIN="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/Marlin/v00-10-03"
echo "MARLIN set to $MARLIN"
#--------------------------------------------------------------------------------
#     GEAR
#--------------------------------------------------------------------------------
export GEAR="/mnt/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/gear/v00-09"
echo "GEAR set to $GEAR"
export PATH="$GEAR/tools:$GEAR/bin:$PATH"
export LD_LIBRARY_PATH="$GEAR/lib:$LD_LIBRARY_PATH"
#--------------------------------------------------------------------------------
#     CLHEP
#--------------------------------------------------------------------------------
export CLHEP="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/CLHEP/2.0.3.2"
echo "CLHEP set to $CLHEP"
export PATH="$CLHEP/bin:$PATH"
export LD_LIBRARY_PATH="$CLHEP/lib:$LD_LIBRARY_PATH"
#--------------------------------------------------------------------------------
#     LCCD
#--------------------------------------------------------------------------------
export LCCD="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/lccd/v00-03-06"
echo "LCCD set to $LCCD"
#--------------------------------------------------------------------------------
#     CondDBMySQL
#--------------------------------------------------------------------------------
export CondDBMySQL="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/CondDBMySQL/CondDBMySQL_ILC-0-5-10"
echo "CondDBMySQL set to $CondDBMySQL"
export LD_LIBRARY_PATH="$CondDBMySQL/lib:$LD_LIBRARY_PATH"
#--------------------------------------------------------------------------------
#     MySQL
#--------------------------------------------------------------------------------
export MYSQL_PATH="/usr"
echo "MYSQL set to $MYSQL_PATH"
export LD_LIBRARY_PATH="$MYSQL_PATH/lib/mysql:$MYSQL_PATH/lib:$LD_LIBRARY_PATH"
#--------------------------------------------------------------------------------
#     LCIO
#--------------------------------------------------------------------------------
export LCIO="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/lcio/v01-10-01"
echo "LCIO set to $LCIO"
export PATH="$LCIO/tools:$LCIO/bin:$PATH"
export LD_LIBRARY_PATH="$LCIO/lib:$LD_LIBRARY_PATH"
#--------------------------------------------------------------------------------
#     RAIDA
#--------------------------------------------------------------------------------
export RAIDA_HOME="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/RAIDA/v01-04-02"
echo "RAIDA_HOME set to $RAIDA_HOME"
export PATH="$RAIDA_HOME/bin:$PATH"
#--------------------------------------------------------------------------------
#     ROOT
#--------------------------------------------------------------------------------
export ROOTSYS="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/root/5.16.00"
echo "ROOTSYS set to $ROOTSYS"
export PATH="$ROOTSYS/bin:$PATH"
export LD_LIBRARY_PATH="$ROOTSYS/lib:$LD_LIBRARY_PATH"
#--------------------------------------------------------------------------------
#     CMake
#--------------------------------------------------------------------------------
export CMake_HOME="/mnt/data2/ilcsoft/ilcinstall_prueba/ilcinstall/my_v01-04/CMake/2.4.6"
echo "CMake_HOME set to $CMake_HOME"
export PATH="$CMake_HOME/bin:$PATH"
#--------------------------------------------------------------------------------
#     CMakeModules
#--------------------------------------------------------------------------------
# --- additional comands ------- 

Lo ejecuto poniendo:

. iniciar_variables.sh
En este archivo podría añadir los comandos que utilice para:
  • Definir las librerías dinamicas
  • Definir los binarios ejecutables con su path completo
Y asi ejecutarlos todo solo una vez cada vez que abro una nueva ventana.

-- Main.iglesias - 11 Dec 2008

View topic | Diffs | r1.3 | > | r1.2 | > | r1.1 | More
Revision r1.1 - 11 Dec 2008 - 11:58 - Main.iglesias
Revision r1.3 - 30 Sep 2009 - 07:53 - Main.iglesias