Compiling Gaudi packages on SL5
The default C++ compiler on SL5 is v4.1.6 which will not currently compile LHCb applications. To switch back to v3.4, do the following (instructions provided by Marco Clemencic):
- create a directory like "SLC4compat/bin" (or whatever you want to call it)
cd ~
mkdir -p SLC4compat/bin
- create symlinks to g++34 and gcc34 in that directory with names g++ and gcc
cd SLC4compat/bin
ln -s /usr/bin/g++34 g++
ln -s /usr/bin/gcc34 gcc
- prepend your directory to the PATH. Do this either on the command line or add to your .bashrc if you want to retain this setting. Similarly for .cshrc.
export PATH=~/SLC4compat/bin:$PATH
Now you can build using CMTCONFIG=slc4_ia32_gcc34 (or slc4_amd64_gcc34) on your SL5 machine as you normally would. i.e.,
setenvDaVinci v20r2
cd Phys/DaVinci/v20r2/cmt
cmt config
source setup.sh
cmt br make
--
GreigCowan - 02 Oct 2008