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, libGL.so.1 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 libGL.so.1 manually, use "qfile" to find where libGL.so.1 is installed.

qfile libGL.so.1

Create the appropriate soft link (choose only one).

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

ln -s /usr/lib/opengl/nvidia/lib/libGL.so.1 /usr/lib/libGl.so.1

or x11-drivers/ati-drivers run

ln -s /usr/lib/opengl/ati/lib/libGL.so.1 /usr/lib/libGl.so.1

otherwise run

ln -s /usr/lib/opengl/xorg-x11/lib/libGL.so.1 /usr/lib/libGl.so.1

Environment Variables

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

export VO_CMS_SW_DIR=/opt/cmssw
export SCRAM_ARCH=slc4_ia32_gcc345
export BUILD_ARCH=$SCRAM_ARCH     

source ~/.bashrc

RPM

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 bootstrap.sh successfully, you can remove RPM from your system.

Modified bootstrap.sh

Download the modified bootstrap.sh

wget -O $VO_CMS_SW_DIR/bootstrap.sh http://cern.ch/ahunt/bootstrap.sh

Run the script with the unsupported distribution hack flag.

sh -x $VO_CMS_SW_DIR/bootstrap.sh 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:

https://twiki.cern.ch/twiki/bin/view/CMS/CMSSW_aptinstaller

source slc4_ia32_gcc345/external/apt/0.5.15lorg3.2-cms5/etc/profile.d/init.sh
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/cmsset_default.sh
mkdir ~/CMSSW
cd ~/CMSSW
scram p CMSSW CMSSW_X_Y_Z
cd CMSSW_X_Y_Z/src
cmsenv

-- 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