PPC JavaSDK -- OpenBlocks

Debian が、入った所で、Javaも入れてみる。PPC用のVMは、IBMが配布している。

developerWorks : Technical Topics : Java™ technology : IBM Developer kits : Linux : Download information

IBMのユーザ登録が必要だけど。。

32bit版を、落としてきた。

ibm-java-sdk-6.0-5.0-linux-ppc.tgz

/usr/share/
配下で、展開して
/usr/share/ibm-java-ppc-60
が、インストール先だ。

profileを、以下のようにして。

hoge@LinuxServer:~$ cat .bash_profile 
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi

export JAVA_HOME=/usr/share/ibm-java-ppc-60
export PATH=${JAVA_HOME}/bin:$PATH


しかし、これだと

hoge@LinuxServer:~$ java
dl failure on line 739Error: failed /usr/share/ibm-java-ppc-60/jre/lib/ppc/j9vm/libjvm.so,
 because libstdc++.so.5: cannot open shared object file: No such file or directory

で、動かない。

apt-getする。

apt-get install libstdc++.so.5

hoge@LinuxServer:~$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxp3260sr5-20090529_04(SR5))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux ppc-32 jvmxp3260sr5-20090519_35743 (JIT enabled, AOT enabled)
J9VM - 20090519_035743_bHdSMr
JIT  - r9_20090518_2017
GC   - 20090417_AA)
JCL  - 20090529_01

とりあえず、動いたみたいだ。。