最近、自分で苦労したことのストレス発散にブログ書いてるようなことが多いような。
AC 面接で、試験官に Cell についていろいろ触発されてしまったので。
ということで、久しぶりに Cell で遊んでいるわけですが。
前やった時は、Fedora でやったんで特に問題なかったんだけど、なんか YDL でやったらインストールできなくて。
同じ問題で困ってる人多そう、ってことで。
前の時は、Cell いじりも、SD なテレビでガシガシやってたもんですから、非常に退屈ですぐやめちゃったんだけど。
思ってみれば、VNC, SSH あ~!ということになぜ気付かなかったのだろう、で今はリモートでやってます。
Cell SDK のダウンロード
ここからダウンロードできます。
たぶん、RHEL 5.1 でいいんじゃないかな?と。(YDL ってベースなんだっけ
なんか、IBM のユーザー登録が必要だったりします。
Cell SDK のインストール...のはずが。
"IBM SDK for Multicore Acceleration" ってページについたら、ダウンロードできるようになるわけですが。
Installation Instructions に書いてあるとおり、インストールしてみる。
- Install the Linux Operating System (RHEL5.1) on the target hardware.
- Install the SDK prerequisites using YUM
yum install rsync sed tcl wget - Stop the YUM updater daemon
/etc/init.d/yum-updatesd stop - Download the attached SDK installer RPM and ISO image(s) into a temporary directory such as /tmp/cellsdkiso. The Extras ISO is optional.
- Install the SDK Installer using RPM
rpm -ivh cell-install-3.0.0-1.0.noarch.rpm - Install the SDK
cd /opt/cell
./cellsdk --iso /tmp/cellsdkiso install - Add exclusions to the YUM configuration file /etc/yum.conf
exclude=blas kernel numactl oprofile - Restart the YUM updater daemon
/etc/init.d/yum-updatesd start
問題発生...
この手順のとおり、インストールしてみるんだけど、なぜか 6 番で止まる。
何回やっても止まる。
cellsdk INFO-2023: Trying to install or update cell-product-license
cellsdk INFO-2023: Trying to install or update cell-devel-license
cellsdk INFO-2033: cellsdk is unable to find the SDK files in the yum repositories.
cellsdk INFO-2033: Please be sure you used the --iso flag or that you can connect to the network.
と、出てきて止まる。
コマンドは、ダウンロードページのやつをコピペしたので、問題ないはず。
ネットワークもつながってるはず...なんで?
いろいろ調べてるうちに、これを発見。
なるほど。
I noticed my distro was found as Fedora. I looked at the script to see why it wasn't RHEL and there's a section where it says:
for file in `ls /etc/*-release 2>/dev/null; do
((redhat += `grep -ic "red hat" $file` ))
done
if (( redhat > 0)); then
distro = "RHEL"
else
distro = "Fedora"
fi
無理やり解決編
/opt/cell/cellsdk を弄ります。
いろいろ手段はありますが、これが一番手っ取り早いです。
なんか、Fedora の方でインストールすればすんなりいくような、いかないような...ってのは気にしない。
# Some machines have BOTH /etc/redhat-release and /etc/fedora-release.
# The file contents seem to correctly indicate what's installed,
# regardless of the filename.
#let redhat=0
#for file in `ls /etc/*-release 2>/dev/null`; do
# ((redhat += `grep -ic "red hat" $file`))
#done
#if ((redhat > 0)); then
distro="RHEL"
#else
# distro="Fedora"
#fi
log TRACE2 4058 "distro=$distro"
だけど、やっぱりうまくいかないです。
しかしこれは何となく察しがついて、一度削除しないとだめっぽいみたいな。
もし、一度 cellsdk install してしまった場合は
./cellsdk uninstall
してから、手順を最初からやり直してみると、うまくいくと思います。
以上...
これから、Cell 遊びについて、いろいろ書くかもしれないです。

コメントする