Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
36 replies Latest Post - ‏2008-11-13T00:57:34Z by SystemAdmin
SystemAdmin
SystemAdmin
10114 Posts
ACCEPTED ANSWER

Pinned topic installing sdk 3 on ps3 - FC8

‏2008-09-04T02:50:52Z |
i have successfully installed fedora core 8 on my ps3, but when trying to install the sdk - i get this error -
file://tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml - no such file or directory

i have the iso's for the sdk and the extras in my /tmp/cellsdkiso directory

there is no gcc compiler on my computer because when i typed some example code and saved as .c file it would not compile.

i have been working on this for about 2 weeks and am really running out of ways to do this.

please help! i am a complete newb.
Updated on 2008-11-13T00:57:34Z at 2008-11-13T00:57:34Z by SystemAdmin
  • CellServ
    CellServ
    1346 Posts
    ACCEPTED ANSWER

    Re: installing sdk 3 on ps3 - FC8

    ‏2008-09-04T14:31:35Z  in response to SystemAdmin
    That sounds like the ISOs have not been mounted. Run df and you should see them mounted like this:

    /opt/SDK30/Fedora/CellSDK-Devel-Fedora_3.0.0.1.0.iso
    129154 129154 0 100% /tmp/sdk/CellSDK-Devel-Fedora_3.0.0.1.0
    /opt/SDK30/Fedora/CellSDK-Extras-Fedora_3.0.0.1.0.iso
    85148 85148 0 100% /tmp/sdk/CellSDK-Extras-Fedora_3.0.0.1.0

    If not, try running this to mount them:

    /opt/cell/cellsdk --iso /tmp/cellsdkiso mount

    Make sure the directory you pass to --iso has the Fedora ISOs in it.
    --
    IBM SDK Service Administrator
    • SystemAdmin
      SystemAdmin
      10114 Posts
      ACCEPTED ANSWER

      Re: installing sdk 3 on ps3 - FC8

      ‏2008-09-08T22:31:31Z  in response to CellServ
      ok, when i type -
      cd /opt/cell
      ./cellsdk --iso /tmp/cellsdkiso install

      i get - (please note: i don't have anything in the cd rom, should i? )

      root@ps3 ~# cd /opt/cell
      root@ps3 cell# ./cellsdk --iso /tmp/cellsdkiso install
      cellsdk INFO-2023: Trying to install or update cell-product-license
      cellsdk INFO-2019: yum groupinstall 'Cell Runtime Environment' 'Cell Development Tools' 'Cell Development Libraries' 'Cell Programming Examples' 'Cell Simulator' 'Cell Performance Tools'
      file:///tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml'
      Trying other mirror.
      CellSDK-Open-Fedora-cbea 100% |=========================| 1.1 kB 00:00
      CellSDK-Devel-Fedora-cbea 100% |=========================| 1.1 kB 00:00
      CellSDK-Devel-Fedora-ppc6 100% |=========================| 1.1 kB 00:00
      CellSDK-Extras-Fedora-cbe 100% |=========================| 1.1 kB 00:00
      Excluding Packages in global exclude list
      Finished
      Setting up Group Process
      Package cell-devel-license - 3.0.0-1.0.noarch already installed and latest version
      Resolving Dependencies
      --> Running transaction check
      ---> Package numactl-devel.ppc64 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1()(64bit) for package: numactl-devel
      ---> Package dacs.ppc64 0:3.0.0-19 set to be updated
      ---> Package blas-devel.ppc64 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      --> Processing Dependency: gcc-gfortran for package: blas-devel
      --> Processing Dependency: libblas.so.3()(64bit) for package: blas-devel
      ---> Package ppu-mass-devel.ppc 0:4.5.0-10 set to be updated
      ---> Package spu-gcc-c++.ppc 0:4.1.1-107 set to be updated
      ---> Package dacsman.noarch 0:3.0-6 set to be updated
      ---> Package ppu-binutils.ppc 0:2.17.50-32 set to be updated
      ---> Package cell-libs.ppc 0:3.0-16 set to be updated
      ---> Package cell-libs.ppc64 0:3.0-16 set to be updated
      ---> Package ppu-gcc.ppc 0:4.1.1-57 set to be updated
      --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: ppu-gcc
      ---> Package cell-demos.ppc64 0:3.0-10 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: cell-demos
      --> Processing Dependency: numactl for package: cell-demos
      ---> Package cell-extras-documentation.noarch 0:3.0-5 set to be updated
      ---> Package alf-examples-source.noarch 0:3.0.0-7 set to be updated
      ---> Package spu-mass-devel.ppc 0:4.5.0-10 set to be updated
      ---> Package ppu-simdmath.ppc64 0:3.0-5 set to be updated
      ---> Package cell-examples-source.noarch 0:3.0-11 set to be updated
      ---> Package spu-newlib.ppc 0:1.15.0-82 set to be updated
      ---> Package libspe2.ppc 0:2.2.0-91 set to be updated
      ---> Package ppu-simdmath.ppc 0:3.0-5 set to be updated
      ---> Package alfman.noarch 0:3.0-10 set to be updated
      ---> Package alf.ppc 0:3.0.0-9 set to be updated
      ---> Package cell-libs-devel.ppc 0:3.0-16 set to be updated
      ---> Package alf.ppc64 0:3.0.0-9 set to be updated
      ---> Package libspe2-devel.ppc 0:2.2.0-91 set to be updated
      ---> Package alf-devel.ppc64 0:3.0.0-9 set to be updated
      ---> Package alf-devel.ppc 0:3.0.0-9 set to be updated
      ---> Package simdman.noarch 0:3.0-6 set to be updated
      ---> Package ppu-simdmath-devel.ppc64 0:3.0-5 set to be updated
      ---> Package libspe.ppc 0:1.2.2-2 set to be updated
      ---> Package cell-examples.ppc64 0:3.0-11 set to be updated
      ---> Package cell-libs-source.noarch 0:3.0-16 set to be updated
      ---> Package libspe2-devel.ppc64 0:2.2.0-91 set to be updated
      ---> Package spu-gdb.ppc 0:6.6.50-12 set to be updated
      --> Processing Dependency: libexpat.so.0 for package: spu-gdb
      ---> Package dacs-devel.ppc64 0:3.0.0-19 set to be updated
      ---> Package ppu-gcc-c++.ppc 0:4.1.1-57 set to be updated
      ---> Package cell-libs-devel.ppc64 0:3.0-16 set to be updated
      ---> Package blas-devel.ppc 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      --> Processing Dependency: libblas.so.3 for package: blas-devel
      ---> Package spu-binutils.ppc 0:2.17.50-33 set to be updated
      ---> Package libspe.ppc64 0:1.2.2-2 set to be updated
      ---> Package cell-tutorial.ppc 0:3.0-6 set to be updated
      ---> Package spu-simdmath-devel.ppc 0:3.0-5 set to be updated
      ---> Package cell-documentation.noarch 0:3.0-5 set to be updated
      ---> Package ppu-simdmath-devel.ppc 0:3.0-5 set to be updated
      ---> Package libspe2man.noarch 0:2.2.0-5 set to be updated
      ---> Package cell-demos-source.noarch 0:3.0-10 set to be updated
      ---> Package cell-tutorial-source.noarch 0:3.0-6 set to be updated
      ---> Package cell-buildutils.noarch 0:3.0-11 set to be updated
      ---> Package spu-gcc.ppc 0:4.1.1-107 set to be updated
      ---> Package cell-extras-Fedora-license.noarch 0:3.0.0-1.0 set to be updated
      ---> Package numactl-devel.ppc 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: numactl-devel
      ---> Package ppu-gdb.ppc 0:6.6.50-28 set to be updated
      ---> Package ppu-mass-devel.ppc64 0:4.5.0-10 set to be updated
      ---> Package elfspe2.ppc 0:2.2.0-91 set to be updated
      ---> Package libspe2.ppc64 0:2.2.0-91 set to be updated
      --> Running transaction check
      ---> Package numactl-devel.ppc64 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1()(64bit) for package: numactl-devel
      ---> Package blas-devel.ppc64 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      ---> Package cell-demos.ppc64 0:3.0-10 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: cell-demos
      --> Processing Dependency: numactl for package: cell-demos
      ---> Package gcc-gfortran.ppc 0:4.1.2-33 set to be updated
      --> Processing Dependency: libgfortran.so.1 for package: gcc-gfortran
      --> Processing Dependency: libgfortran = 4.1.2-33 for package: gcc-gfortran
      --> Processing Dependency: gcc = 4.1.2-33 for package: gcc-gfortran
      --> Processing Dependency: libmpfr.so.1 for package: gcc-gfortran
      ---> Package glibc-devel.ppc 0:2.7-2 set to be updated
      --> Processing Dependency: glibc-headers for package: glibc-devel
      --> Processing Dependency: glibc-headers = 2.7-2 for package: glibc-devel
      ---> Package compat-expat1.ppc 0:1.95.8-3 set to be updated
      ---> Package atlas.ppc64 0:3.6.0-12.fc8 set to be updated
      --> Processing Dependency: libgfortran.so.1()(64bit) for package: atlas
      ---> Package blas-devel.ppc 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      ---> Package atlas.ppc 0:3.6.0-12.fc8 set to be updated
      ---> Package numactl-devel.ppc 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: numactl-devel
      --> Running transaction check
      ---> Package numactl-devel.ppc64 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1()(64bit) for package: numactl-devel
      ---> Package blas-devel.ppc64 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      ---> Package cell-demos.ppc64 0:3.0-10 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: cell-demos
      --> Processing Dependency: numactl for package: cell-demos
      ---> Package libgfortran.ppc 0:4.1.2-33 set to be updated
      ---> Package glibc-headers.ppc 0:2.7-2 set to be updated
      --> Processing Dependency: kernel-headers for package: glibc-headers
      --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
      ---> Package gcc.ppc 0:4.1.2-33 set to be updated
      --> Processing Dependency: libgomp.so.1 for package: gcc
      --> Processing Dependency: libmudflap.so.0 for package: gcc
      --> Processing Dependency: libmudflapth.so.0 for package: gcc
      ---> Package mpfr.ppc 0:2.3.0-1.fc8 set to be updated
      ---> Package blas-devel.ppc 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      ---> Package libgfortran.ppc64 0:4.1.2-33 set to be updated
      ---> Package numactl-devel.ppc 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: numactl-devel
      --> Running transaction check
      ---> Package numactl-devel.ppc64 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1()(64bit) for package: numactl-devel
      ---> Package blas-devel.ppc64 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      ---> Package cell-demos.ppc64 0:3.0-10 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: cell-demos
      --> Processing Dependency: numactl for package: cell-demos
      ---> Package libmudflap.ppc 0:4.1.2-33 set to be updated
      ---> Package libgomp.ppc 0:4.1.2-33 set to be updated
      ---> Package blas-devel.ppc 0:3.1.1-4.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-4.fc8 for package: blas-devel
      ---> Package kernel-headers.ppc 0:2.6.25.14-69.fc8 set to be updated
      ---> Package numactl-devel.ppc 0:0.9.10-1 set to be updated
      --> Processing Dependency: libnuma.so.1 for package: numactl-devel
      --> Finished Dependency Resolution
      Error: Missing Dependency: blas = 3.1.1-4.fc8 is needed by package blas-devel
      Error: Missing Dependency: libnuma.so.1 is needed by package cell-demos
      Error: Missing Dependency: libnuma.so.1()(64bit) is needed by package numactl-devel
      Error: Missing Dependency: libnuma.so.1 is needed by package numactl-devel
      Error: Missing Dependency: numactl is needed by package cell-demos
      cellsdk ERROR-0039: yum groupinstall 'Cell Runtime Environment' 'Cell Development Tools' 'Cell Development Libraries' 'Cell Programming Examples' 'Cell Simulator' 'Cell Performance Tools' failed with rc=1
      root@ps3 cell#
      ---
      please help!!! this has become one of my goals in life at this point :0)
      • CellServ
        CellServ
        1346 Posts
        ACCEPTED ANSWER

        Re: installing sdk 3 on ps3 - FC8

        ‏2008-09-08T22:35:27Z  in response to SystemAdmin
        Do you see the ISOs mounted after you run cellsdk mount as I listed above?

        They should also be mounted after your install command.

        Do you have access to the internet from this machine? At least some of these packages will try to download from bsc.es.

        --
        IBM SDK Service Administrator
        • SystemAdmin
          SystemAdmin
          10114 Posts
          ACCEPTED ANSWER

          Re: installing sdk 3 on ps3 - FC8

          ‏2008-09-08T23:05:52Z  in response to CellServ
          yes, i can get internet from firefox in fc8.

          yes, i see the iso's mounted after i run cellsdk mount

          what is the syntax to mount after my install command?

          i appreciate any help you can give, i am studying this stuff i promise, just a little behind that's all, thanks
          • SystemAdmin
            SystemAdmin
            10114 Posts
            ACCEPTED ANSWER

            Re: installing sdk 3 on ps3 - FC8

            ‏2008-09-08T23:16:21Z  in response to SystemAdmin
            i have tried ./cellsdk --iso /tmp/cellsdkiso install --iso /tmp/cellsdkiso mount to no avail

            also, why is the script looking for this -
            file:///tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml'
            Trying other mirror

            why would it be in the /tmp/sdk/CellSDK etc etc directory? i do not have CellSDK-Open-Fedora on my hard drive, is this supposed to be within the mounted iso's ?

            thanks so much for your help.
            • CellServ
              CellServ
              1346 Posts
              ACCEPTED ANSWER

              Re: installing sdk 3 on ps3 - FC8

              ‏2008-09-09T15:49:11Z  in response to SystemAdmin
              The reference to CellSDK-Open-Fedora is because the installed is searching for Open source packages, and by default it checks for a local mount point, and then should fail over to downloading from bsc.es.

              Based on the errors, you do not have blas or numactl, so you might want to install the base versions of those with:

              yum -y install blas numactl

              With the ISOs mounted, try these install commands:

              yum -y install cell-examples-source.noarch

              yum -y install cell-libs.ppc

              and see if either one works. The first should download from bsc.es and the second should install from the mounted ISOs.
              --
              IBM SDK Service Administrator
              • SystemAdmin
                SystemAdmin
                10114 Posts
                ACCEPTED ANSWER

                Re: installing sdk 3 on ps3 - FC8

                ‏2008-09-09T23:45:30Z  in response to CellServ
                when i type yum -y install blas numactl i get -
                root@ps3 ~# yum -y install blas numactl
                file:///tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml'
                Trying other mirror.
                CellSDK-Open-Fedora-cbea 100% |=========================| 1.1 kB 00:00
                file:///tmp/sdk/CellSDK-Devel-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Devel-Fedora/cbea/repodata/repomd.xml'
                Trying other mirror.
                CellSDK-Devel-Fedora-cbea 100% |=========================| 1.1 kB 00:00
                file:///tmp/sdk/CellSDK-Devel-Fedora/ppc64/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Devel-Fedora/ppc64/repodata/repomd.xml'
                Trying other mirror.
                CellSDK-Devel-Fedora-ppc6 100% |=========================| 1.1 kB 00:00
                file:///tmp/sdk/CellSDK-Extras-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Extras-Fedora/cbea/repodata/repomd.xml'
                Trying other mirror.
                CellSDK-Extras-Fedora-cbe 100% |=========================| 1.1 kB 00:00
                Excluding Packages in global exclude list
                Finished
                Setting up Install Process
                Parsing package install arguments
                No package blas available.
                No package numactl available.
                Nothing to do
                root@ps3 ~#
                • SystemAdmin
                  SystemAdmin
                  10114 Posts
                  ACCEPTED ANSWER

                  Re: installing sdk 3 on ps3 - FC8

                  ‏2008-09-10T00:11:21Z  in response to SystemAdmin
                  i ran
                  yum -y install cell-examples-source.noarch

                  yum -y install cell-libs.ppc

                  and it looks like they installed but...

                  to see if my compiler is now working...

                  root@ps3 ~# which spu-gcc
                  /usr/bin/which: no spu-gcc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
                  root@ps3 ~#

                  so i guess i don't have a compiler still?
                  • SystemAdmin
                    SystemAdmin
                    10114 Posts
                    ACCEPTED ANSWER

                    Re: installing sdk 3 on ps3 - FC8

                    ‏2008-09-10T00:16:09Z  in response to SystemAdmin
                    i am following along with this tutorial (except i am running fc8 instead of ydl 5) via -
                    http://www.ibm.com/developerworks/library/pa-linuxps3-1/

                    and trying to run the spe_distance.c code but get -
                    root@ps3 ~# which spu-gcc
                    /usr/bin/which: no spu-gcc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
                    root@ps3 ~# spu-gcc /root/ps3-utils-2.2.0/spe_distance.c -o spe_distance
                    bash: spu-gcc: command not found
                    root@ps3 ~#

                    where can i go from here? thanks for your help man, i need to be able to do this.
                    • CellServ
                      CellServ
                      1346 Posts
                      ACCEPTED ANSWER

                      Re: installing sdk 3 on ps3 - FC8

                      ‏2008-09-10T18:05:38Z  in response to SystemAdmin
                      I'm not sure why cellsdk is not installing these packages from your mounted ISOs. It could be an issue with F8, since we didn't test on it, but I'd still think it would work. You might have to do some manual installation.

                      The following will show you all of the packages you need to get installed:

                      /opt/cell/cellsdk verify | egrep "default|mandatory" | grep "not installed"

                      I'd then suggesting running yum install on each package. Worst case you can also install them from the mounted ISOs with rpm -i .

                      --
                      IBM SDK Service Administrator
  • SystemAdmin
    SystemAdmin
    10114 Posts
    ACCEPTED ANSWER

    Re: installing sdk 3 on ps3 - FC8

    ‏2008-09-10T18:31:26Z  in response to SystemAdmin
    This maybe unrelated, but when I installed FC8 on the PS3 I had to change the name of the device file for cdrom in /etc/auto.misc
    "cd -fstype=iso9660,ro,nosuid,nodev :/dev/sr0"
    This may have nothing to do with your problem though...
    • SystemAdmin
      SystemAdmin
      10114 Posts
      ACCEPTED ANSWER

      Re: installing sdk 3 on ps3 - FC8

      ‏2008-09-13T00:01:30Z  in response to SystemAdmin
      i was able to manually install the first few packages via yum, but i am missing a dependency with blas-devel, how do i get it? please see the below
      Installed: alfman.noarch 0:3.0-10
      Complete!
      root@ps3 ~# yum install blas-devel
      file:///tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml'
      Trying other mirror.
      CellSDK-Open-Fedora-cbea 100% |=========================| 1.1 kB 00:00
      CellSDK-Devel-Fedora-cbea 100% |=========================| 1.1 kB 00:00
      CellSDK-Devel-Fedora-ppc6 100% |=========================| 1.1 kB 00:00
      CellSDK-Extras-Fedora-cbe 100% |=========================| 1.1 kB 00:00
      Excluding Packages in global exclude list
      Finished
      Setting up Install Process
      Parsing package install arguments
      Resolving Dependencies
      --> Running transaction check
      ---> Package blas-devel.ppc 0:3.1.1-2.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-2.fc8 for package: blas-devel
      --> Processing Dependency: libblas.so.3 for package: blas-devel
      ---> Package blas-devel.ppc64 0:3.1.1-2.fc8 set to be updated
      --> Processing Dependency: libblas.so.3()(64bit) for package: blas-devel
      --> Processing Dependency: blas = 3.1.1-2.fc8 for package: blas-devel
      --> Running transaction check
      ---> Package atlas.ppc 0:3.6.0-12.fc8 set to be updated
      --> Processing Dependency: libgfortran.so.1 for package: atlas
      ---> Package blas-devel.ppc 0:3.1.1-2.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-2.fc8 for package: blas-devel
      ---> Package atlas.ppc64 0:3.6.0-12.fc8 set to be updated
      --> Processing Dependency: libgfortran.so.1()(64bit) for package: atlas
      ---> Package blas-devel.ppc64 0:3.1.1-2.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-2.fc8 for package: blas-devel
      --> Running transaction check
      ---> Package libgfortran.ppc64 0:4.1.2-33 set to be updated
      ---> Package libgfortran.ppc 0:4.1.2-33 set to be updated
      ---> Package blas-devel.ppc 0:3.1.1-2.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-2.fc8 for package: blas-devel
      ---> Package blas-devel.ppc64 0:3.1.1-2.fc8 set to be updated
      --> Processing Dependency: blas = 3.1.1-2.fc8 for package: blas-devel
      --> Finished Dependency Resolution
      Error: Missing Dependency: blas = 3.1.1-2.fc8 is needed by package blas-devel
      root@ps3 ~#
      • SystemAdmin
        SystemAdmin
        10114 Posts
        ACCEPTED ANSWER

        Re: installing sdk 3 on ps3 - FC8

        ‏2008-09-13T05:41:52Z  in response to SystemAdmin
        thanks to you, i now have spu-gcc installed by installing each package via yum, but some could not install because they are missing, i will post a list of the ones that are missing next.

        here's what i have got so far - i have the spu-gcc working, but am missing gcc

        root@ps3 ~# which spu-gcc
        /usr/bin/spu-gcc
        root@ps3 ~# spu-gcc /root/ps3-utils-2.2.0/spe_distance.c -o spe_distance
        root@ps3 ~# embedspu calculate_distance_handle spe_distance spe_distance_csf.o
        Cannot find gcc
        root@ps3 ~#

        here's what i have yet to install -
        root@ps3 ~# /opt/cell/cellsdk verify | egrep "default|mandatory" | grep "not installed"
        default CellDevelopmentLibraries blas-devel not installed
        default CellProgrammingExamples cell-demos not installed
        default CellRuntimeEnvironment blas not installed
        default CellDevelopmentLibraries numactl-devel not installed
        default CellRuntimeEnvironment numactl not installed
        where can i get blas and numactl ?
        • SystemAdmin
          SystemAdmin
          10114 Posts
          ACCEPTED ANSWER

          Re: installing sdk 3 on ps3 - FC8

          ‏2008-09-13T12:39:31Z  in response to SystemAdmin
          I'm running YDL 6 on a PS3 and have been having similar problems. I've been using the FC7 rpm version of the SDK.

          I have got it to work now, by running

          YUM install blas

          and

          YUM install numactl

          They said they worked ok but the blas examples with the SDK would not compile (don't forget to enter the touch *.c command to force a compile rather than use the object files supplied), but some searching showed that RPMs had been generated in /tmp/cellsdk/openSRC

          I installed all these and it works fine. All the blas examples in the SDK, compile and run perfectly.

          For help on where to find the code examples see (you will need to untar them first to run)

          http://www.ibm.com/developerworks/library/pa-sdkexamples/index.html

          Hope this helps, John
          • SystemAdmin
            SystemAdmin
            10114 Posts
            ACCEPTED ANSWER

            Re: installing sdk 3 on ps3 - FC8

            ‏2008-09-14T16:56:29Z  in response to SystemAdmin
            when i type yum install blas it says no package available - what should i do ?

            root@ps3 ~# yum install blas
            Existing lock /var/run/yum.pid: another copy is running as pid 2404.
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            Another app is currently holding the yum lock; waiting for it to exit...
            file:///tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml'
            Trying other mirror.
            CellSDK-Open-Fedora-cbea 100% |=========================| 1.1 kB 00:00
            file:///tmp/sdk/CellSDK-Devel-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Devel-Fedora/cbea/repodata/repomd.xml'
            Trying other mirror.
            CellSDK-Devel-Fedora-cbea 100% |=========================| 1.1 kB 00:00
            file:///tmp/sdk/CellSDK-Devel-Fedora/ppc64/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Devel-Fedora/ppc64/repodata/repomd.xml'
            Trying other mirror.
            CellSDK-Devel-Fedora-ppc6 100% |=========================| 1.1 kB 00:00
            file:///tmp/sdk/CellSDK-Extras-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Extras-Fedora/cbea/repodata/repomd.xml'
            Trying other mirror.
            CellSDK-Extras-Fedora-cbe 100% |=========================| 1.1 kB 00:00
            Excluding Packages in global exclude list
            Finished
            Setting up Install Process
            Parsing package install arguments
            No package blas available.
            Nothing to do
            root@ps3 ~#
            • CellServ
              CellServ
              1346 Posts
              ACCEPTED ANSWER

              Re: installing sdk 3 on ps3 - FC8

              ‏2008-09-15T18:46:10Z  in response to SystemAdmin
              The blas RPMs should be in the mounted ISOs:

              /tmp/sdk/CellSDK-Devel-Fedora_3.0.0.1.0/ppc64/blas-3.0-6.ppc.rpm
              /tmp/sdk/CellSDK-Devel-Fedora_3.0.0.1.0/ppc64/blas-3.0-6.ppc64.rpm
              /tmp/sdk/CellSDK-Devel-Fedora_3.0.0.1.0/ppc64/blas-devel-3.0-6.ppc.rpm
              /tmp/sdk/CellSDK-Devel-Fedora_3.0.0.1.0/ppc64/blas-devel-3.0-6.ppc64.rpm

              Do you see them there?

              If you have the Fedora BLAS installed it might not install the SDK version because of the versioning. If so, remove the Fedora version and install the SDK one by hand.

              --
              IBM SDK Service Administrator
              • SystemAdmin
                SystemAdmin
                10114 Posts
                ACCEPTED ANSWER

                Re: installing sdk 3 on ps3 - FC8

                ‏2008-09-27T22:14:34Z  in response to CellServ
                no, the blas rpm's are not there, how do i install the SDK one by hand?
                thanks for your help! 4 weeks and still at it, not giving up!
                • CellServ
                  CellServ
                  1346 Posts
                  ACCEPTED ANSWER

                  Re: installing sdk 3 on ps3 - FC8

                  ‏2008-09-29T20:29:09Z  in response to SystemAdmin
                  > redMoon wrote:
                  > no, the blas rpm's are not there, how do i install the SDK one by hand?

                  see my post on Sep 15, 2008 01:46:10 PM about manually installing the RPMs.

                  --
                  IBM SDK Service Administrator
          • SystemAdmin
            SystemAdmin
            10114 Posts
            ACCEPTED ANSWER

            Re: installing sdk 3 on ps3 - FC8

            ‏2008-10-07T02:19:45Z  in response to SystemAdmin
            i tried to see what i am missing in the sdk - i am still missing libnuma.so.1 (64 bit) although it is in the directory you specified on my machine already, and i have installed the 64 bit rpm already, any ideas?
            root@ps3 ~# /opt/cell/cellsdk verify | egrep "default|mandatory" | grep "not installed"
            default CellProgrammingExamples cell-demos not installed
            default CellDevelopmentLibraries numactl-devel not installed
            root@ps3 ~# yum install numactl-devel
            file:///tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Open-Fedora/cbea/repodata/repomd.xml'
            Trying other mirror.
            CellSDK-Open-Fedora-cbea 100% |=========================| 1.1 kB 00:00
            CellSDK-Devel-Fedora-cbea 100% |=========================| 1.1 kB 00:00
            CellSDK-Devel-Fedora-ppc6 100% |=========================| 1.1 kB 00:00
            file:///tmp/sdk/CellSDK-Extras-Fedora/cbea/repodata/repomd.xml: Errno 5 OSError: Errno 2 No such file or directory: '/tmp/sdk/CellSDK-Extras-Fedora/cbea/repodata/repomd.xml'
            Trying other mirror.
            CellSDK-Extras-Fedora-cbe 100% |=========================| 1.1 kB 00:00
            Excluding Packages in global exclude list
            Finished
            Setting up Install Process
            Parsing package install arguments
            Resolving Dependencies
            --> Running transaction check
            ---> Package numactl-devel.ppc64 0:0.9.10-1 set to be updated
            --> Processing Dependency: libnuma.so.1()(64bit) for package: numactl-devel
            ---> Package numactl-devel.ppc 0:0.9.10-1 set to be updated
            --> Finished Dependency Resolution
            Error: Missing Dependency: libnuma.so.1()(64bit) is needed by package numactl-devel
            root@ps3 ~#
        • CellServ
          CellServ
          1346 Posts
          ACCEPTED ANSWER

          Re: installing sdk 3 on ps3 - FC8

          ‏2008-09-15T19:06:10Z  in response to SystemAdmin
          > root@ps3 ~# spu-gcc /root/ps3-utils-2.2.0/spe_distance.c -o spe_distance
          > root@ps3 ~# embedspu calculate_distance_handle spe_distance spe_distance_csf.o
          > Cannot find gcc
          > root@ps3 ~#
          >

          If you were missing ppu-gcc it would show up in your cellsdk verify output as "not installed", so this much be "regular" gcc, so I'd say start with yum install gcc .
          --
          IBM SDK Service Administrator
          • SystemAdmin
            SystemAdmin
            10114 Posts
            ACCEPTED ANSWER

            Re: installing sdk 3 on ps3 - FC8

            ‏2008-09-27T22:17:09Z  in response to CellServ
            i have ran yum install gcc
            and then
            root@ps3 ~# spu-gcc /root/ps3-utils-2.2.0/spe_distance.c -o spe_distance
            root@ps3 ~# embedspu calculate_distance_handle spe_distance spe_distance_csf.o

            but it just comes up with
            root@ps3 ~#
            and does nothing?
            • SystemAdmin
              SystemAdmin
              10114 Posts
              ACCEPTED ANSWER

              Re: installing sdk 3 on ps3 - FC8

              ‏2008-09-29T18:29:43Z  in response to SystemAdmin
              it is best if you use FC7 or YDL6 for the Cell SDK 3.

              you can follow these instructions

              http://hlgao.com/home/content/view/23/34/

              if you are using YDL6 or FC8, just follow it from step 3. the cell ide had problems with the eclipse on FC8 when I tried it. FC7 works like magic.
              • SystemAdmin
                SystemAdmin
                10114 Posts
                ACCEPTED ANSWER

                Re: installing sdk 3 on ps3 - FC8

                ‏2008-09-30T00:34:38Z  in response to SystemAdmin
                yes, i would prefer to use fc7 but i cannot find the iso anywhere online, the even this very ibm site has a broken link
            • CellServ
              CellServ
              1346 Posts
              ACCEPTED ANSWER

              Re: installing sdk 3 on ps3 - FC8

              ‏2008-09-29T20:30:15Z  in response to SystemAdmin
              > redMoon wrote:
              > but it just comes up with
              > root@ps3 ~#
              > and does nothing?

              It didn't create calculate_distance_handle ?
              --
              IBM SDK Service Administrator
              • SystemAdmin
                SystemAdmin
                10114 Posts
                ACCEPTED ANSWER

                Re: installing sdk 3 on ps3 - FC8

                ‏2008-09-30T00:41:58Z  in response to CellServ
                no! it didn't create calculate_distance_handle
                • CellServ
                  CellServ
                  1346 Posts
                  ACCEPTED ANSWER

                  Re: installing sdk 3 on ps3 - FC8

                  ‏2008-09-30T18:22:12Z  in response to SystemAdmin
                  Just noticed one problem, you're using embedspu instead of ppu-embedspu (provided by ppu-binutils).

                  If that still fails, check for a return code.

                  --
                  IBM SDK Service Administrator
                  • SystemAdmin
                    SystemAdmin
                    10114 Posts
                    ACCEPTED ANSWER

                    Re: installing sdk 3 on ps3 - FC8

                    ‏2008-10-02T01:16:05Z  in response to CellServ
                    i used ppu-embedspu and it did not generate the file as far as i can tell.
                    how do i check for a return code?
                    • SystemAdmin
                      SystemAdmin
                      10114 Posts
                      ACCEPTED ANSWER

                      Re: installing sdk 3 on ps3 - FC8

                      ‏2008-10-02T01:34:26Z  in response to SystemAdmin
                      does anybody know where i can get a copy of the fedora core 7 iso for the ps3 so that I can work on the cell be sdk?
                      i have searched bit torrent and cannot get anything, and the ibm site has a link that is no longer active.
                      HELP!
                      i am about to abandon my current installation, i am missing a dependency for numactl - libnuma.so.1 , i tried yum install libnuma.so.1 to no avail.
                      any ideas?
                      • CellServ
                        CellServ
                        1346 Posts
                        ACCEPTED ANSWER

                        Re: installing sdk 3 on ps3 - FC8

                        ‏2008-10-02T16:15:15Z  in response to SystemAdmin
                        This prints the return code: echo $?
                        (should be "echo space 'dollar sign' 'question mark'" in case the forum mangles that)

                        /usr/lib/libnuma.so.1 is provided by numactl-0.9.10-1.ppc.rpm

                        --
                        IBM SDK Service Administrator
                        • SystemAdmin
                          SystemAdmin
                          10114 Posts
                          ACCEPTED ANSWER

                          Re: installing sdk 3 on ps3 - FC8

                          ‏2008-10-07T02:21:08Z  in response to CellServ
                          i type echo $ at the command line and get
                          $
                          where should i be typing "echo $"?
                          • CellServ
                            CellServ
                            1346 Posts
                            ACCEPTED ANSWER

                            Re: installing sdk 3 on ps3 - FC8

                            ‏2008-10-07T14:41:27Z  in response to SystemAdmin
                            The 64 bit libnuma.so.1 should be installed in /usr/lib64 by numactl.ppc64

                            The command is "echo $?" - note the question mark at the end.

                            --
                            IBM SDK Service Administrator
                            • SystemAdmin
                              SystemAdmin
                              10114 Posts
                              ACCEPTED ANSWER

                              Re: installing sdk 3 on ps3 - FC8

                              ‏2008-10-12T03:04:56Z  in response to CellServ
                              when i type "echo $?"
                              it returns "0".

                              what is that telling us?

                              i have installed numactl-0.9.8-4.fc8.ppc64.rpm, yet the libnuma.so.1 is not in usr/lib64 .

                              please advise.
                              • CellServ
                                CellServ
                                1346 Posts
                                ACCEPTED ANSWER

                                Re: installing sdk 3 on ps3 - FC8

                                ‏2008-10-13T16:36:07Z  in response to SystemAdmin
                                An "echo $?" of 0 after ppu-embedspu means the command completed successfully, so I'm not sure why you're not getting the binary.

                                Can you try the following and post the results (plus the compile commands as a result of the make)?

                                make clean
                                ls
                                make
                                ls

                                As for numactl, what does rpm -ql numactl.ppc64 return? On my machine it shows:

                                /usr/bin/memhog
                                /usr/bin/migratepages
                                /usr/bin/numactl
                                /usr/bin/numademo
                                /usr/bin/numastat
                                /usr/lib64/libnuma.so.1
                                /usr/share/man/man5/numa_maps.5.gz
                                /usr/share/man/man8/numactl.8.gz

                                confirming that it has installed /usr/lib64/libnuma.so.1. You might try rpm -V numactl.ppc64 to verify installation of this package.
                                --
                                IBM SDK Service Administrator
                                • SystemAdmin
                                  SystemAdmin
                                  10114 Posts
                                  ACCEPTED ANSWER

                                  Re: installing sdk 3 on ps3 - FC8

                                  ‏2008-11-09T01:48:35Z  in response to CellServ
                                  the results of the commands you gave me to type are here:
                                  root@ps3 ~]# rpm -V numactl.ppc64
                                  package numactl.ppc64 is not installed
                                  root@ps3 ~# make clean
                                  make: *** No rule to make target `clean'. Stop.
                                  root@ps3 ~# ls
                                  anaconda-ks.cfg install.log.syslog Public
                                  Desktop Music spe_distance
                                  Documents Pictures spe_distance_csf.o
                                  Download ps3-utils-2.2.0 Templates
                                  install.log ps3-utils-2.2.0.tar.bz2 Videos
                                  root@ps3 ~# make
                                  make: *** No targets specified and no makefile found. Stop.
                                  root@ps3 ~# ls
                                  anaconda-ks.cfg install.log.syslog Public
                                  Desktop Music spe_distance
                                  Documents Pictures spe_distance_csf.o
                                  Download ps3-utils-2.2.0 Templates
                                  install.log ps3-utils-2.2.0.tar.bz2 Videos
                                  root@ps3 ~#

                                  not sure why numactly 64 is not installed, i've tried everything i know...
                                  • CellServ
                                    CellServ
                                    1346 Posts
                                    ACCEPTED ANSWER

                                    Re: installing sdk 3 on ps3 - FC8

                                    ‏2008-11-10T16:32:43Z  in response to SystemAdmin
                                    Run the make commands in your compile directory so I can see the commands it runs during compilation.

                                    What happens when you run yum install numactl.ppc64 ?

                                    --
                                    IBM SDK Service Administrator
                                    • SystemAdmin
                                      SystemAdmin
                                      10114 Posts
                                      ACCEPTED ANSWER

                                      Re: installing sdk 3 on ps3 - FC8

                                      ‏2008-11-13T00:57:34Z  in response to CellServ
                                      well sir my 90 days of owning a PS3 are now over. I took it back to Wal Mart. I had tried to yum install numactl ppc64 several times before, it just wasn't working. I must study linux before i feel ready to begin re-attempting this, the system was way way too slow anyway, when i partitioned it i tried to do it by cylinders and the swap file was all wrong. sigh...
                                      thanks for your help cellserv, i shall try, try again when money and time permit.