发新话题
打印

[CELL编程] 关于如何在ubuntu 7.04安装IBM CELL SDK 2.1(原创)

关于如何在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

TOP

我这里没有tck8.4-dev这个包,请问是如何安装上的。这个是不是打字错了?google里查不到这个包。
sdk3.0也出了,能不能给一个在ubuntu下安装的教程?我没有装fedora。

TOP

回复 2楼 的帖子

恩,好像是打错字了。你试一下tcl8.4-dev
还有,过几天准备装ubuntu 7.10了,到时候我在更新一个SDK3.0的。ubuntu 7.04和7.10应该都差不多

TOP

希望楼主到时候把7.10安装SDK3.0的方法尽快整理出来。辛苦了

TOP

第6步没有成功,提示信息如下:
type: ./cellsdk_ubuntu build: not found

不是很理解这一步,为什么要进入到/opt/ibm/cell-sdk/prototype这个目录?type指的是shell命令还是指输入的意思?无论我输入 ./cellsdk_ubuntu build还是type  ./cellsdk_ubuntu build 都不行,因为在这个目录下根本没有这个cellsdk_ubuntu文件。

还有一个环境变量的问题,/opt/ibm/systemsim-cell/bin/systemsim 这个systemsim得去掉吧。

我装上了,启动时就出现一个systemsim-cell,接着什么反应也没有。

[ 本帖最后由 moogle 于 2007-10-12 13:53 编辑 ]

TOP

提示: 作者被禁止或删除 内容自动屏蔽

TOP

发新话题