The following instructions install Cell SDK 2.0 on a PS3 running YDL (Yellow Dog Linux).
mkdir /mnt/cellsdk mount /dev/cdrom /mnt/cellsdkor mount the ISO directly:
mount -o loop CellSDK20.iso /mnt/cellsdk
yum groupremove "Cell SDK" "Cell Libraries"
cd /mnt/cellsdk/software ./cellsdk dependThe common missing packages are freeglut-devel, netpbm-devel, tcl/tk, and libX11-devel. They can be installed as follows:
yum -y install freeglut-devel netpbm-devel yum -y install tk-8.4 tk-devel tcl-devel yum -y install libX11-devel
./cellsdk install --nosim -fThe --nosim flag skips the installation of the Cell System Simulator and System Image since the SDK will be installed directly on PS3 hardware. The cellsdk script will fetch additional packages necessary to complete the SDK installation. The SDK toolchain is installed in /opt.
./cellsdk build -xIf you prefer to use GNU gcc, omit the -x flag.
Troubleshooting
/opt/ibmcmp/xlc/8.1/exe/ipa: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directoryadd the stdc++ library to your LD_LIBRARY_PATH.
setenv LD_LIBRARY_PATH /usr/lib/gcc/ppu/4.1.1/ # if you are using tcsh export LD_LIBRARY_PATH=/usr/lib/gcc/ppu/4.1.1/ # if you are using bashYou may need to add the export statement to cellsdk if you encounter the problem during the SDK build.
/usr/bin/ld: cannot find -lXmuadd a link form /usr/lib/libXmu.so.6 to /usr/lib/libXmu.so:
ln -s /usr/lib/libXmu.so.6 /usr/lib/libXmu.so
/usr/bin/ld: skipping incompatible /usr/lib/libglut.so when searching for -lgluttry the following solution which was sugested by Jeff Carson:
ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.soThis was verified to work on at least one PS3. If it doesn't work for you and figure out another solution, please let us know.