最近ajaxの話題が多い。
とりあえず良く分かってないが環境を構築してみることに・・・
さて、jdkのバージョンはなんで行くか
# cd /usr/ports/java/jdk15 |
これはそうとうな依存関係になっている
ためしに1.4だと
| # cd /usr/ports/java/jdk14 # make clean ===> Cleaning for zip-2.32 ===> Cleaning for unzip-5.52_2 ===> Cleaning for m4-1.4.4 ===> Cleaning for nspr-4.6.3 ===> Cleaning for open-motif-2.2.3_2 ===> Cleaning for linux-sun-jdk-1.4.2.12 ===> Cleaning for gmake-3.81_1 ===> Cleaning for javavmwrapper-2.3 ===> Cleaning for ldconfig_compat-1.0_8 ===> Cleaning for xorg-libraries-6.9.0 ===> Cleaning for imake-6.9.0 ===> Cleaning for linux_base-fc-4_9 ===> Cleaning for linux-xorg-libs-6.8.2_5 ===> Cleaning for gettext-0.14.5_2 ===> Cleaning for libdrm-2.0.2 ===> Cleaning for freetype2-2.2.1_1 ===> Cleaning for fontconfig-2.3.2_6,1 ===> Cleaning for perl-5.8.8 ===> Cleaning for rpm-3.0.6_13 ===> Cleaning for linux-fontconfig-2.2.3_5 ===> Cleaning for libtool-1.5.22_2 ===> Cleaning for libiconv-1.9.2_2 ===> Cleaning for pkg-config-0.21 ===> Cleaning for expat-2.0.0_1 ===> Cleaning for automake-1.4.6_2 ===> Cleaning for autoconf-2.13.000227_5 ===> Cleaning for popt-1.7_1 ===> Cleaning for linux-expat-1.95.8 ===> Cleaning for jdk-1.4.2p8_4 # |
こちらのほうが無難と判断しjdk1.4にすることにした。
jdk1.4のmake実行
| ===> jdk-1.4.2p8_4 : Due to licensing restrictions, certain files must be fetched manually. Please open http://www.sun.com/software/java2/download.html in a web browser and follow the "Download" link for the "Java 2 SDK 1.4.2". You will be required to log in and register, but you can create an account on this page. After registration and accepting the Sun Community Source License, download the SCSL Source file, j2sdk-1_4_2-src-scsl.zip and the SCSL Binaries file, j2sdk-1_4_2-bin-scsl.zip . In addition, please download the patchset, bsd-jdk14-patches-8.tar.gz, from http://www.eyesbeyond.com/freebsddom/java/jdk14.html. Please place the downloaded file(s) in /usr/ports/distfiles and restart the build. .*** Error code 1 Stop in /usr/ports/java/jdk14. |
いきなり怒られる。上記の指示に従い
http://www.sun.com/software/java2/download.html
から2つをダウンロード
- j2sdk-1_4_2-src-scsl.zip
- j2sdk-1_4_2-bin-scsl
http://www.eyesbeyond.com/freebsddom/java/jdk14.html
から1つをダウンロード
- bsd-jdk14-patches-8.tar.gz
以上3つのフアイルを /usr/ports/distfiles に配置
再度make
しばらく進んでまた怒られる
| ===> Compressing manual pages for open-motif-2.2.3_2 ===> Running ldconfig /sbin/ldconfig -m /usr/X11R6/lib ===> Registering installation for open-motif-2.2.3_2 ===> Returning to build of jdk-1.4.2p8_4 nd a/linux-sun-jdk14 ionId=noreg, place it in /usr/ports/distfiles and then run make again. *** Error code 1 Stop in /usr/ports/java/linux-sun-jdk14. *** Error code 1 Stop in /usr/ports/java/jdk14. |
一部ログが切れてしまっている(一番肝心なところ・・・)
linux-sun-jdk14をダウンロードして(アドレスが載っていたはず) /usr/ports/distfiles に配置しろと言うことだったので
Download Java 2 Platform, Standard Edition, v 1.4.2 (J2SE)
http://java.sun.com/j2se/1.4.2/download.html上記sunのサイトから j2sdk-1_4_2_12-linux-i586.bin をダウンロードして配置
さらにmake続行
・・・これで終わりだろと思っていたらまたもや・・・
| ===> Registering installation for rpm-3.0.6_13 ===> Returning to build of linux_base-fc-4_9 ===> Patching for linux_base-fc-4_9 ===> Configuring for linux_base-fc-4_9 ===> Building for linux_base-fc-4_9 ===> Installing for linux_base-fc-4_9 ===> linux_base-fc-4_9 conflicts with installed package(s): linux_base-8-8.0_6 They install files into the same place. Please remove them first with pkg_delete(1). *** Error code 1 Stop in /usr/ports/emulators/linux_base-fc4. *** Error code 1 Stop in /usr/ports/java/linux-sun-jdk14. *** Error code 1 Stop in /usr/ports/java/jdk14. |
どうやら linux_base-fc-4_9 を必要としているらしいが・・・linux_base-8-8.0_6がすでに入っていて
進めないのでそれを pkg_delete しろといっているのか
freebsdを構築時に使うかもと思って入れておいたのがここであだとなった。
とりあえず
| # pkg_delete linux_base-8-8.0_6 |
どうせ必要なら先に入れちゃうかということで
linux_base-fc4を導入
# cd /usr/ports/emulators/linux_base-fc4 |
ふう、今度こそ
| # cd /usr/ports/java/jdk14 # make |
何とか無事make完了!!☆^v(*^∇')乂('∇^*)v^☆ヤッタネ!! あとは
| # make install |
処理完了までマターリ待って(当方の環境で3時間超かかった)
これでjdkが完了
FreeBSD Java™ Project: http://www.freebsd.org/ja/java/
Apache Tomcat: http://tomcat.apache.org/
http://www.freebsdfoundation.org/downloads/java.shtml
http://www.gizo.net/bsd/tomcat.html
http://www.tera.ics.keio.ac.jp/person/koki/freebsd/freebsdjava.html
http://www.satoshiabe.jp/freebsd-jdk.html





