/afs/cern.ch/sw/lcg/app/spi/scram/scram(use 'which scram' to check). If SCRAM is not found, or if a different version is found, you can change your PATH as follows to get the correct version of SCRAM:
setenv PATH /afs/cern.ch/sw/lcg/app/spi/scram:$PATH
The default architecture name for the current POOL and SEAL releases is slc3_ia32_gcc323. On lxplus, the default is Linux__2.4, so you need to either set the environment variable SCRAM_ARCH to slc3_ia32_gcc323, or use '-arch slc3_ia32_gcc323' option with every scram command.
setenv SCRAM_ARCH slc3_ia32_gcc323
scram -arch slc3_ia32_gcc323_dbg setup
setenv SCRAM_ARCH slc3_ia32_gcc323_gdb
setenv CVSROOT :kserver:pool.cvs.cern.ch:/cvs/POOL
mkdir ~/mypool cd mypool
scram project POOL POOL_2_0_0This will create the necessary subdirectories and check out the configuration files needed to compile the example programs as discussed below. (Note that with this setup example programs and libraries will be built against the POOL release, i.e. you don't need to recompile the complete POOL release yourself).
Use the following commands to build the POOL Example Programs
cd ~/mypool/POOL_2_0_0/src cvs co -r POOL_2_0_0 Examples cd Examples/TheParticularExample scram bAn executable named TheParticularExample will appear under the directory
Most examples depend on example-specific libraries. The latter have to be built before the example applications themselves:
cd ~/mypool/POOL_2_0_0/src/Examples/Libraries/TheParticularExampleLibrary scram bA shared library named libTheParticularExampleLibrary.so will appear under the directory
If under the top level source directory of an example application or library there is a
subdirectory called dict, then a dictionary shared library will be created for
the header files specified in the BuildFile inside the dict directory.
The shared library named libTheExampleLibraryDict.so will appear under the directory
~/mypool/POOL_2_0_0/slc3_ia32_gcc323/examples/libNote the Dict suffix which is appended in case it is not the ending of the name of the package (library or application).
Set up the run-time environment:
eval `scram runtime -csh` rehash
eval `scram runtime -sh` rehash
cd ~/mypool/POOL_2_0_0/src cvs co -r POOL_2_0_0 FileCatalog
cd FileCatalog/tests scram b
eval `scram runtime -csh`
eval `scram runtime -sh`