Installing CMSSW on Gentoo

OpenGL libraries

Gentoo allows the installation of multiple opengl libraries. Typically, eselect creates all the appropriate soft links to the various libraries for you. However, is missing from the script (/usr/share/eselect/modules/opengl.eselect). Although it is less generic, it is easier to create the soft link manually than patch the script. To create a soft link to manually, use "qfile" to find where is installed.


Create the appropriate soft link (choose only one).

If you have installed x11-drivers/nvidia-drivers run

ln -s /usr/lib/opengl/nvidia/lib/ /usr/lib/

or x11-drivers/ati-drivers run

ln -s /usr/lib/opengl/ati/lib/ /usr/lib/

otherwise run

ln -s /usr/lib/opengl/xorg-x11/lib/ /usr/lib/

Environment Variables

Add the following lines to your ~/.bashrc file.

export VO_CMS_SW_DIR=/opt/cmssw
export SCRAM_ARCH=slc4_ia32_gcc345

source ~/.bashrc


A local version of RPM is required to build the database from the spec file created during the bootstrap process:

emerge rpm

After you run successfully, you can remove RPM from your system.


Download the modified

wget -O $VO_CMS_SW_DIR/

Run the script with the unsupported distribution hack flag.

sh -x $VO_CMS_SW_DIR/ setup -path $VO_CMS_SW_DIR -arch $SCRAM_ARCH -unsupported_distribution_hack >& $VO_CMS_SW_DIR/bootstrap_$SCRAM_ARCH.log

Install CMSSW

From here on, you can follow the official instructions:

source slc4_ia32_gcc345/external/apt/0.5.15lorg3.2-cms5/etc/profile.d/
apt-cache search cmssw
apt-get install cms+cmssw+CMSSW_X_Y_Z

Configure CMSSW and create a work area.

source $VO_CMS_SW_DIR/
mkdir ~/CMSSW
cd ~/CMSSW
cd CMSSW_X_Y_Z/src

-- AdamHunt - 17 Aug 2009

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

    CMSPublic 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