CentOS4.6+Java 1.4.2.01

ちょっと、古い環境を構築せねばならない事となり。


CentOS4.6 に Java1.4.2.01 を入れようとしたのですが・・・


Sunのサイトより、Linux版のパッケージをダウンロード。
j2sdk-1_4_2_01-linux-i586-rpm.bin
んでもって、RPMを作るべく、実行するのだが・・・

# chown 755 ./j2sdk-1_4_2_01-linux-i586-rpm.bin
# ./j2sdk-1_4_2_01-linux-i586-rpm.bin
                           Sun Microsystems, Inc.
                        Binary Code License Agreement

                                   for the

JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION, VERSION 1.4.2_X
(snip)
For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A.
(LFI#130039/Form ID#011801)

Do you agree to the above license terms? [yes or no] 
yes
Unpacking...
tail: cannot open `+473' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted.  Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.

あれ・・・?
RPMが作れない。


色々調べたところ、カーネルのバージョンが新しすぎる事が原因でした。

なので、検証機で置いてあった、CentOS4.2にてRPMを作成。

# ./j2sdk-1_4_2_01-linux-i586-rpm.bin 
                           Sun Microsystems, Inc.
                        Binary Code License Agreement

                                   for the

JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION, VERSION 1.4.2_X
(snip)
For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A.
(LFI#130039/Form ID#011801)

Do you agree to the above license terms? [yes or no] 
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: j2sdk-1_4_2_01-linux-i586.rpm  
Done.

おk。


CentOS4.6 の環境にRPMFTP転送して、インストール完了。


ちょっとハマったw


解決出来て良かった。


でわ。