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
cmt br make

-- GreigCowan - 02 Oct 2008

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2008-10-02 - GreigCowan
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

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