Prepare for installation

This topic will help you prepare your system for installation of the SDK.

Prepare your system by following these steps:
  1. If you have installed an older version of the SDK, you must remove it before you can install this version. See Uninstalling the SDK.
  2. If necessary, install or upgrade your operating system. See Operating system installation.
  3. Verify that your BladeCenter QS20 or BladeCenter QS21 has the right firmware level. See Hardware prerequisites.
  4. The YUM updater daemon must not be running when installing the SDK. To see if it is running, type the following command:
    # /etc/init.d/yum-updatesd status
    If the command returns a result similar to:
    # /etc/init.d/yum-updatesd status
    yum-updatesd (pid 12260) is running...
    then type the command:
    # /etc/init.d/yum-updatesd stop
    You will see a result similar to:
    # /etc/init.d/yum-updatesd stop
    Stopping yum-updatesd:                                     [  OK  ]
    Later in the installation process you will restart the daemon.
  5. If you previously added an exclude clause in the /etc/yum.conf file that includes the numactl, numactl-devel, blas, blas-debuginfo, blas-devel, oprofile or oprofile-debuginfo packages, temporarily remove the clauses to ensure that these packages are installed for the SDK.
  6. If you plan to install the FDPR-Pro component, it requires the compat-libstdc++ RPM. For RHEL 5.1 only, this RPM should be installed first, otherwise the install of the FDPR-Pro RPM will fail.
  7. For RHEL 5.1 cross compilation only (X86 and X86_64), you must build and install the compiler sysroot RPMs as described below. That is because these RPMs cannot be provided by SDK and can only be built if you have a RHEL 5.1 license For Fedora 7, these RPMs are supplied by the SDK and YUM installs them automatically. Follow these steps to build and install the sysroot on an X86 or X86_64 Red Hat Enterprise Linux (RHEL) 5.1 system:
    1. Download the ppu-sysroot.spec file from the Barcelona Supercomputing Center Web site: http://www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.0/sources/toolchain/rhel5-ppu-sysroot/ppu-sysroot.spec. Place this file in the /usr/src/redhat/SPECS directory.
    2. Copy the following RHEL 5.1 PowerPC® binary packages (from your PPC architecture RHEL 5.1 distribution medium, such as a CD) into the /usr/src/redhat/SOURCES directory:
      glibc-2.5-12.ppc.rpm
      glibc-2.5-12.ppc64.rpm
      glibc-devel-2.5-12.ppc.rpm
      glibc-devel-2.5-12.ppc64.rpm
      glibc-headers-2.5-12.ppc.rpm
      kernel-headers-2.6.18-8.el5.ppc.rpm
      gmp-4.1.4-10.el5.ppc.rpm
      gmp-4.1.4-10.el5.ppc64.rpm
      gmp-devel-4.1.4-10.el5.ppc.rpm
      gmp-devel-4.1.4-10.el5.ppc64.rpm
      Note: These RPM version numbers are correct at the time of writing. The might change with the final release of RHEL 5.1.
    3. You might have to edit the ppu-sysroot.spec file to match the version numbers of the final RHEL 5.1 release RPMs. Verify or edit the version numbers in the following 3 lines:
      %define glibc_version 2.5-12
      %define kernheaders_version 2.6.18-8.el5
      %define gmp_version 4.1.4-10.el5
    4. Type the following command to build the RHEL 5.1 ppu-sysroot RPMs:
      # rpmbuild -ba /usr/src/redhat/SPECS/ppu-sysroot.spec  
      This will create the following sysroot RPMs:
      /usr/src/redhat/RPMS/noarch/ppu-sysroot-rhel5-2.noarch.rpm
      /usr/src/redhat/RPMS/noarch/ppu-sysroot64-rhel5-2.noarch.rpm  
    5. Type the following commands to install them:
      # cd /usr/src/redhat/RPMS/noarch/
      # rpm -ivh ppu-sysroot-rhel5-2.noarch.rpm ppu-sysroot64-rhel5-2.noarch.rpm  
      The installation places the target library files into the /opt/cell/sysroot directory.
      Note: If you want to install the sysroot on multiple RHEL 5.1 host systems, you do not have to build the RPMs on each system. Just copy the compiler sysroot RPMs to each system and install them.