<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=SL4_x86_64_WNs</id>
	<title>SL4 x86 64 WNs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=SL4_x86_64_WNs"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=SL4_x86_64_WNs&amp;action=history"/>
	<updated>2026-04-20T10:04:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=SL4_x86_64_WNs&amp;diff=248&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === SL4 x86_64 on WNs === ==== Setup ==== Setup a sufficient compatible environment for the nodes. Using the packages from GRIF is ok. ==== CMS soft ==== ==== XCMSI ====...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=SL4_x86_64_WNs&amp;diff=248&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === SL4 x86_64 on WNs === ==== Setup ==== Setup a sufficient compatible environment for the nodes. Using the packages from GRIF is ok. ==== CMS soft ==== ==== XCMSI ====...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== SL4 x86_64 on WNs ===&lt;br /&gt;
==== Setup ====&lt;br /&gt;
Setup a sufficient compatible environment for the nodes.&lt;br /&gt;
Using the packages from GRIF is ok.&lt;br /&gt;
==== CMS soft ====&lt;br /&gt;
==== XCMSI ====&lt;br /&gt;
*set VO_CMS_SW_DIR if not done already!!&lt;br /&gt;
*don&amp;#039;t source init.sh from the apt installation! it works with normal rpm.&lt;br /&gt;
*export SCRAM_ARCH=slc3_ia32_gcc323&lt;br /&gt;
**i only needed to add a compat-glibc package &lt;br /&gt;
*modify cmsarch.pl: add&lt;br /&gt;
  $arch{&amp;quot;Scientific Linux CERN SLC release 4.3 (Beryllium)&amp;quot;} =&lt;br /&gt;
    [ &amp;quot;slc3_ia32_gcc323&amp;quot;, &amp;quot;&amp;quot; , &amp;quot;&amp;quot; ];&lt;br /&gt;
*generate the default cmsset_default.sh files. &lt;br /&gt;
  rm -f cmsset_default.sh cmsset_default.csh&lt;br /&gt;
  ./cmsi.pl -c default -a slc3_ia32_gcc323 -f cmsset_default.sh;./cmsi.pl -c default -a slc3_ia32_gcc323 -f cmsset_default.csh&lt;br /&gt;
*cmsi will install it&amp;#039;s own scram version and this will use it&amp;#039;s own perl libraries to run, BUT it makes use of the default @INC to construct a path for the included perl modules. Although it generates the necessay links to the architectures (i386-linux-thread-multi &amp;lt;= x86_64-linux-thread-multi), but ofcourse it doesn&amp;#039;t symlink the default lib  to lib64 path. fix this before anything is installed with (it&amp;#039;s probably not needed for V0_20_0 and V1_0_0)&lt;br /&gt;
  for i in V1_0_2 V1_0_1 V1_0_0 V0_20_0&lt;br /&gt;
  do&lt;br /&gt;
    dirr=$VO_CMS_SW_DIR/Releases/SCRAM/$i/Installation/TT2&lt;br /&gt;
    mkdir -p $dirr/lib&lt;br /&gt;
    cd $dirr&lt;br /&gt;
    ln -s lib lib64&lt;br /&gt;
    cd -&lt;br /&gt;
  done&lt;br /&gt;
&lt;br /&gt;
*first installation&lt;br /&gt;
   ./cmsi.pl -a slc3_ia32_gcc323 -f cmsset_default.sh -d ORCA_8_7_5&lt;br /&gt;
*updating/adding installation&lt;br /&gt;
  ./cmsi.pl -a slc3_ia32_gcc323 -f cmsset_default.sh -u -d CMSSW_0_6_1&lt;br /&gt;
*to manually install another scram version, from XCMSI/RPMS&lt;br /&gt;
  rpm -Uhv  --dbpath /swmgrs/cmss/rpmdb --prefix /swmgrs/cmss SCRAM_V1_0_2-shared-4.i386.rpm SCRAM_V0_20_0-shared-4.i386.rpm&lt;br /&gt;
==== aptinstaller: SL3 prep procedure ====&lt;br /&gt;
Nothing actually prevents one to install a complete SL3 distro on the CMS path. Given the huge size of the cms software, nobody will notice.&lt;br /&gt;
*set VO_CMS_SW_DIR&lt;br /&gt;
*get the follwoing rpms from sl3 (examples from slc305)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  apt-0.5.15cnc6-8.SL.cern.i386.rpm&lt;br /&gt;
  popt-1.8.2-21_nonptl.i386.rpm&lt;br /&gt;
  rpm-4.2.3-21_nonptl.i386.rpm &lt;br /&gt;
  rpm-build-4.2.3-21_nonptl.i386.rpm&lt;br /&gt;
  rpmdb-SL-305-0.20050601.i386.rpm&lt;br /&gt;
  rpm-libs-4.2.3-21_nonptl.i386.rpm&lt;br /&gt;
  curl-7.10.6-6.rhel3.i386.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**the curl rpm is needed because i couldn&amp;#039;t find the needed compat version for curl.so.2 (symlink might have fixed that, but this is way more powerful.)&lt;br /&gt;
*make new directory &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  mkdir -p $VO_CMS_SW_DIR/sl3/var/lib/rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*install rpm rpmdb&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rpm --define &amp;quot;_rpmlock_path $VO_CMS_SW_DIR/sl3/var/lib/rpm/lock&amp;quot; --root $VO_CMS_SW_DIR/sl3 --dbpath $VO_CMS_SW_DIR/sl3/var/lib/rpm/ --relocate /=$VO_CMS_SW_DIR/sl3 -Uvh --nodeps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**if you keep having SElinux trouble (errors with lsetfilecon message), try with --nocontexts switch&lt;br /&gt;
*install other rpms with same command  &lt;br /&gt;
**ignore errors like&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  /sbin/ldconfig: Can&amp;#039;t create temporary cache file /etc/ld.so.cache~: Permission denied&lt;br /&gt;
  error: %post(apt-0.5.15cnc6-8.SL.cern.i386) scriptlet failed, exit status 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*copy the following files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  cp $VO_CMS_SW_DIR/sl3/usr/lib/rpm/macros ~/.rpmmacros&lt;br /&gt;
  cp $VO_CMS_SW_DIR/sl3/usr/lib/rpm/rpmpopt-4.2.3 ~/.popt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*create an init.sh script file (maybe later cat &amp;gt;&amp;gt; ~/.bashrc??)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  #!/bin/sh&lt;br /&gt;
  if [ -z $VO_CMS_SW_DIR ]&lt;br /&gt;
  then&lt;br /&gt;
    echo &amp;quot;VO_CMS_SW_DIR not set. Exiting...&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
  fi&lt;br /&gt;
  if [ -z $LD_LIBRARY_PATH ];&lt;br /&gt;
  then&lt;br /&gt;
    export LD_LIBRARY_PATH=$VO_CMS_SW_DIR/sl3/usr/lib&lt;br /&gt;
  else&lt;br /&gt;
    export LD_LIBRARY_PATH=$VO_CMS_SW_DIR/sl3/usr/lib:$LD_LIBRARY_PATH&lt;br /&gt;
  fi&lt;br /&gt;
  export PATH=$VO_CMS_SW_DIR/sl3/bin:$VO_CMS_SW_DIR/sl3/usr/bin:$PATH&lt;br /&gt;
  export SCRAM_ARCH=slc3_ia32_gcc323&lt;br /&gt;
  export BUILD_ARCH=slc3_ia32_gcc323&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*source init.sh&lt;br /&gt;
&lt;br /&gt;
==== aptinstaller ====&lt;br /&gt;
*set VO_CMS_SW_DIR if not done already!!&lt;br /&gt;
*download aptinstaller.sh here (yes, it&amp;#039;s modified) [http://mon.iihe.ac.be/trac/t2b/attachment/wiki/SL4_x86_64_WNs/aptinstaller.sh?format=raw aptinstaller.sh]&lt;br /&gt;
*run ./aptinstaller.sh setup -arch slc3_ia32_gcc323&lt;br /&gt;
*eval &amp;lt;tt&amp;gt;$VO_CMS_SW_DIR/aptinstaller.sh config -path $VO_CMS_SW_DIR&amp;lt;/tt&amp;gt; (or with -csh)&lt;br /&gt;
*apt-get update&lt;br /&gt;
*apt-get install ...&lt;br /&gt;
*all cms users now need to have their environment prepared by the init.sh script.&lt;br /&gt;
**well, certainly the SCRAM_ARCH part. as long as the curl.so.2 is never called by one of the jobs, it&amp;#039;ll be all ok.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SL4.4 x86_64 pre ===&lt;br /&gt;
Use correct apt version without chaningin system rpm&lt;br /&gt;
Nothing actually prevents one to install a complete SL4 distro on the CMS path. Given the huge size of the cms software, nobody will notice.&lt;br /&gt;
*set VO_CMS_SW_DIR&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export VO_CMS_SW_DIR=$PWD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*get the following rpms from sl4 (examples from sl4.4)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm&lt;br /&gt;
curl-7.12.1-8.rhel4.x86_64.rpm&lt;br /&gt;
libidn-0.5.6-1.x86_64.rpm&lt;br /&gt;
popt-1.9.1-18_nonptl.x86_64.rpm&lt;br /&gt;
rpm-4.3.3-18_nonptl.x86_64.rpm&lt;br /&gt;
rpm-build-4.3.3-18_nonptl.x86_64.rpm&lt;br /&gt;
rpmdb-SL-44-0.20061019.x86_64.rpm&lt;br /&gt;
rpm-libs-4.3.3-18_nonptl.x86_64.rpm&lt;br /&gt;
xorg-x11-Mesa-libGLU-6.8.2-1.EL.13.37.2.x86_64.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*and possibly also (but for this one the alias &amp;#039;which&amp;#039; should be modified as it is hardcoding the path)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
which-2.16-4.x86_64.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*you can use this script to fetch them [http://mon.iihe.ac.be/trac/t2b/attachment/wiki/SL4_x86_64_WNs/wgetrpms.sh?format=raw wgetrpms.sh]&lt;br /&gt;
&lt;br /&gt;
*make new directory &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  mkdir -p $VO_CMS_SW_DIR/sl4/var/lib/rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*first install rpm rpmdb&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rpm --define &amp;quot;_rpmlock_path $VO_CMS_SW_DIR/sl4/var/lib/rpm/lock&amp;quot; --root $VO_CMS_SW_DIR/sl4 --dbpath $VO_CMS_SW_DIR/sl4/var/lib/rpm/ --relocate /=$VO_CMS_SW_DIR/sl4 -Uvh --nodeps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**if you keep having SElinux trouble (errors with lsetfilecon message), try with --nocontexts switch&lt;br /&gt;
*install other rpms with same command  &lt;br /&gt;
**ignore errors like&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  /sbin/ldconfig: Can&amp;#039;t create temporary cache file /etc/ld.so.cache~: Permission denied&lt;br /&gt;
  error: %post(apt-0.5.15lorg3.2-1.el4.rf.x86_64) scriptlet failed, exit status 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*create an init.sh script file (maybe later cat &amp;gt;&amp;gt; ~/.bashrc??)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  #!/bin/sh&lt;br /&gt;
  if [ -z $VO_CMS_SW_DIR ]&lt;br /&gt;
  then&lt;br /&gt;
    echo &amp;quot;VO_CMS_SW_DIR not set. Exiting...&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
  fi&lt;br /&gt;
  if [ -z $LD_LIBRARY_PATH ];&lt;br /&gt;
  then&lt;br /&gt;
    export LD_LIBRARY_PATH=$VO_CMS_SW_DIR/sl4/usr/lib64&lt;br /&gt;
  else&lt;br /&gt;
    export LD_LIBRARY_PATH=$VO_CMS_SW_DIR/sl4/usr/lib64:$LD_LIBRARY_PATH&lt;br /&gt;
  fi&lt;br /&gt;
  export PATH=$VO_CMS_SW_DIR/sl4/bin:$VO_CMS_SW_DIR/sl4/usr/bin:$PATH&lt;br /&gt;
  export SCRAM_ARCH=slc4_ia32_gcc345&lt;br /&gt;
  export BUILD_ARCH=slc4_ia32_gcc345&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*source init.sh&lt;br /&gt;
*modify the default aptinstaller.sh&lt;br /&gt;
**use the following patch&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- aptinstaller.sh     2007-02-06 18:16:53.000000000 +0100&lt;br /&gt;
+++ aptinstaller-sl4.sh 2007-05-04 17:21:52.000000000 +0200&lt;br /&gt;
@@ -150,7 +150,7 @@&lt;br /&gt;
&lt;br /&gt;
   // Locations of binaries&lt;br /&gt;
       Bin {&lt;br /&gt;
-             methods &amp;quot;/usr/@LIBDIR_NAME@/apt/methods/&amp;quot;;&lt;br /&gt;
+             methods &amp;quot;@ROOTDIR@/sl4/usr/@LIBDIR_NAME@/apt/methods/&amp;quot;;&lt;br /&gt;
              gzip &amp;quot;/bin/gzip&amp;quot;;&lt;br /&gt;
              dpkg &amp;quot;/usr/bin/dpkg&amp;quot;;&lt;br /&gt;
              dpkg-source &amp;quot;/usr/bin/dpkg-source&amp;quot;;&lt;br /&gt;
@@ -207,7 +207,7 @@&lt;br /&gt;
     seed=&amp;quot;glibc glibc-32bit coreutils bash tcsh zsh pdksh perl tcl tk perl-Tk&lt;br /&gt;
           readline openssl ncurses XFree86-libs&lt;br /&gt;
           e2fsprogs krb5-libs freetype fontconfig XFree86-Mesa-libGLU XFree86-Mesa-libGL&lt;br /&gt;
-          xorg-x11-deprecated-libs xorg-x11-libs xorg-x11-Mesa-libGLU xorg-x11-Mesa-libGL compat-libstdc++-33 fglrx_6_8_0 libidn&amp;quot;&lt;br /&gt;
+          xorg-x11-deprecated-libs xorg-x11-libs xorg-x11-Mesa-libGLU xorg-x11-Mesa-libGL compat-libstdc++-33 fglrx_6_8_0 libidn curl&amp;quot;&lt;br /&gt;
&lt;br /&gt;
     if [ &amp;quot;$unsupportedDistribution&amp;quot; != &amp;quot;false&amp;quot; ]&lt;br /&gt;
     then&lt;br /&gt;
@@ -288,6 +288,12 @@&lt;br /&gt;
            rpm -q $p --list | grep &amp;#039;\.so&amp;#039; | sed &amp;#039;s!^.*/Provides: !&amp;#039;&lt;br /&gt;
            rpm -q $p --list | grep &amp;#039;/bin/&amp;#039; | sed &amp;#039;s!^Provides: !&amp;#039;&lt;br /&gt;
          done&lt;br /&gt;
+          for q in $seed; do&lt;br /&gt;
+            p=&amp;quot;--dbpath $rootdir/sl4/var/lib/rpm/ --root $rootdir/sl4 $q&amp;quot;&lt;br /&gt;
+            rpm -q $p --provides | grep -v &amp;quot;not installed&amp;quot; | sed &amp;#039;s!&amp;lt;*=.*!!; s!^Provides: !&amp;#039;&lt;br /&gt;
+            rpm -q $p --list | grep &amp;#039;\.so&amp;#039; | sed &amp;#039;s!^.*/Provides: !&amp;#039;&lt;br /&gt;
+            rpm -q $p --list | grep &amp;#039;/bin/&amp;#039; | sed &amp;#039;s!^Provides: !&amp;#039;&lt;br /&gt;
+          done&lt;br /&gt;
       fi&lt;br /&gt;
       echo; echo &amp;quot;%description&amp;quot;; echo &amp;quot;Seeds RPM repository from the base system.&amp;quot;&lt;br /&gt;
       echo; echo &amp;quot;%prep&amp;quot;; echo &amp;quot;%build&amp;quot;; echo &amp;quot;%install&amp;quot;; echo &amp;quot;%files&amp;quot;;&lt;br /&gt;
@@ -398,11 +404,13 @@&lt;br /&gt;
 generateAptConfiguration $arch&lt;br /&gt;
 (echo &amp;quot;rpm http://$server $serverDir/$arch $groups&amp;quot;; \&lt;br /&gt;
  echo &amp;quot;rpm-src http://$server $serverDir/$arch $groups&amp;quot;; ) &amp;gt; $architecture/etc/apt/sources.list&lt;br /&gt;
-relocateVariables $arch&lt;br /&gt;
+#relocateVariables $arch&lt;br /&gt;
&lt;br /&gt;
 rm -rf $rootdir/$rpmdb&lt;br /&gt;
 mkdir -p $rootdir/$rpmdb&lt;br /&gt;
 rpm --define &amp;quot;_rpmlock_path $rpmlock&amp;quot; --dbpath $rootdir/$rpmdb --initdb&lt;br /&gt;
+relocateVariables $arch&lt;br /&gt;
+rpm --define &amp;quot;_rpmlock_path $rpmlock&amp;quot; --dbpath $rootdir/$rpmdb --rebuilddb&lt;br /&gt;
&lt;br /&gt;
 seed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**or the revisited version [http://mon.iihe.ac.be/trac/t2b/attachment/wiki/SL4_x86_64_WNs/aptinstaller-sl4.sh?format=raw aptinstaller-sl4.sh]&lt;br /&gt;
&lt;br /&gt;
*run aptinstaller.sh with setup and config option&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  $VO_CMS_SW_DIR/aptinstaller.sh setup -path $VO_CMS_SW_DIR -arch slc4_ia32_gcc345 &lt;br /&gt;
  eval &amp;lt;tt&amp;gt;$VO_CMS_SW_DIR/aptinstaller.sh config -arch slc4_ia32_gcc345 -path  $VO_CMS_SW_DIR -sh&amp;lt;/tt&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*https://twiki.cern.ch/twiki/bin/view/CMS/CMSSW_aptinstaller#Installation_instructions_for_sl&lt;br /&gt;
*test the installation&lt;br /&gt;
**logout and re-login&lt;br /&gt;
**run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export VO_CMS_SW_DIR=$PWD&lt;br /&gt;
source $VO_CMS_SW_DIR/cmsset_default.sh&lt;br /&gt;
scramv1 list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**you should see the list of installed software&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>