关于如何在ubuntu 7.04安装IBM CELL SDK 2.1(原创)
1. Install required packages:
sudo apt-get install freeglut3 freeglut3-dev libxext-dev libxmu-dev flex byacc tcl8.4 tk8.4 gawk rpm tk8.4-dev tck8.4-dev
2. /bin/dash is the default sh in ubuntu. The install scripts of CELL SDK requires bash. You can:
change /bin/sh to bash:
cd /bin
rm sh
ln -s bash sh
Or:
execute the script using bash explicitly:
bash ./cellsdk install
3. Modify cellsdk script, applying the following patch:
patch -p1 < ./patch_cellsdk_ubuntu
4. Install CELL SDK by execute: ./cellsdk_ubuntu install
5. Add the following into PATH env:
/opt/cell/bin:/opt/ibm/systemsim-cell/bin/systemsim:/opt/ibm/cell-sdk/prototype/bin
6. cd /opt/ibm/cell-sdk/prototype and type "./cellsdk_ubuntu build"
7. Setup Simulator:
cd ~
mkdir sandbox
cp /opt/systemsim-cell/lib/cell/systemsim.tcl ~/sandbox/.systemsim.tcl
8. Start Simulator:
cd ~/sandbox
systemsim -g
patch_cellsdk_ubuntu:
--- cellsdk 2007-06-04 10:22:47.000000000 +0800
+++ cellsdk_ubuntu 2007-06-04 11:34:14.000000000 +0800
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# --------------------------------------------------------------
# (C) Copyright 2001,2006,
# International Business Machines Corporation,
@@ -139,7 +139,7 @@
grep -q "CHRP" /proc/cpuinfo
if [ $? -eq 0 ] ; then
CBE=1
- rpm -q $CBE_KERNEL > /dev/null 2>&1
+ #rpm -q $CBE_KERNEL > /dev/null 2>&1
if [ $? = 0 ] ; then
KERNEL_INSTALLED=1
else
@@ -1327,9 +1327,9 @@
fi
if [ "$rootpath" = "/" ]; then
- rpm -i $rpmopt $RPMLIST
+ rpm -i --nodeps $rpmopt $RPMLIST
else
- rpm -i $rpmopt --nodeps --noscripts --ignorearch --root $rootpath $RPMLIST
+ rpm -i --nodeps $rpmopt --noscripts --ignorearch --root $rootpath $RPMLIST
fi
if [ $? != 0 ] ; then
@@ -2014,7 +2014,7 @@
(( rpm_total++ ))
local pkg=${i/%.rpm/}
echo -n " $pkg ... "
- rpm -q --quiet --root $rootpath $pkg > /dev/null 2>&1
+ ##rpm -q --quiet --root $rootpath $pkg > /dev/null 2>&1
if [ $? != 0 ] ; then
echo " missing"
echo "--Missing $pkg" >> $SDKLOG