JDK1.5のインストール その1
昨日portsにjdk1.5があったので本日トライしてみる。portsの楽さを満喫しているのだが、どんな動きをするのかも知らないとダメやな〜と思って/usr/ports/java/jdk15/Makefileを覗いてみる。
.if defined(WITHOUT_WEB)とあるのがどうやらbrowser plugin抜きみたい。
SUN_LINUX_JDK_VERSION= 1.4.2 とあったので
SUN_LINUX_JDK_VERSION= 1.5.0へ変更する。
LINUX_BOOTSTRAP_JDKS= ${LOCALBASE}/linux-sun-jdk1.4.2も同じく
LINUX_BOOTSTRAP_JDKS= ${LOCALBASE}/linux-sun-jdk1.5.0
BUILD_DEPENDS+= ${JDK14DIR}/bin/javac:${PORTSDIR}/java/linux-sun-jdk14も同じく
BUILD_DEPENDS+= ${JDK14DIR}/bin/javac:${PORTSDIR}/java/linux-sun-jdk15へ。
勝手に変更してもええもんかいな(心配)
必要なファイルをServer上の/usr/ports/distfile/に上げる。
- bsd-jdk15-patches-2.tar.bz2
- jdk-1_5_0-bin-scsl.zip
- jdk-1_5_0-src-scsl.zip
- jdk-1_5_0_05-linux-i586.bin
tmkbsd# cd /usr/local/java/jdk15 tmkbsd# make WITHOUT_WEB=yes install clean --snip-- Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 21 errors 12 warnings gmake[3]: *** [.compile.classlist] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2
あちゃ〜、エラーで止まってしまいました。ググってみたところ、エラーの詳細はhttp://forum.java.sun.com/thread.jspa?threadID=628776&tstart=135
と同じで対処方まで出ていました。
file:///usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.javaの
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location- find_vma failed
をコメントアウトしましたが、再度make installしようとすると
tmkbsd# make WITHOUT_WEB=yes install clean ===> Building for jdk-1.5.0p2_1 ERROR: You must have LINPROCFS mounted before starting to build the native JDK 1.5.0. You may do it with the following commands: # kldload linprocfs and # mount -t linprocfs linprocfs /compat/linux/proc *** Error code 1
19日追記:
JDK1.4だが同じような現象を経験された方がいました。
http://nat054.ictnet.ne.jp/~masayuki/wiliki/wiliki.cgi?FreeBSD
id:yellow_73:20041119