java on FreeBSDインストール備忘録diablo-jdk15http://journal.mycom.co.jp/news/2006/04/06/342.html # portinstall java/diablo-jdk15 [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 88 packages found (-0 +3) ... done] ** Port marked as IGNORE: java/diablo-jdk15: :\n Because of licensing restrictions, you must fetch the distribution\n manually. Please access\n \n http://www.FreeBSDFoundation.org/cgi-bin/download?download=diablo-caffe-freebsd6-i386-1.5.0_07-b00.tar.bz2\n \n with a web browser and \"Accept\" the End User License Agreement for\n \"Caffe Diablo 1.5.0\". Please place the downloaded\n diablo-caffe-freebsd6-i386-1.5.0_07-b00.tar.bz2 in /usr/ports/distfiles.\n 上記ファイルをdistfilesに入れたあと再度portinstallを実行。 tomcat55# portinstall www/tomcat55 /etc/profileに以下の文言を追加。←どうやらZSHから見てない気もするので要確認 #java settings export JAVA_HOME=/usr/local/diablo-jdk1.5.0 export PATH=$PATH:$JAVA_HOME/bin 起動は以下の通り。 #/usr/local/tomcat5.5/bin/shutdown.sh ※/usr/local/etc/rc.d/tomcat55 startでも起動できるはずだが何もおこらない 自動起動の設定(正しく動作するかは未確認) /etc/rc.confに以下を追加 tomcat55_enable="YES" mod_jk# portinstall www/mod_jk2-apache2 /usr/local/etc/apache2/httpd.confの以下の行を修正 #LoadModule jk2_module libexec/apache/mod_jk2.so 上記のようにコメントアウトされてるので#を外す <IfModule mod_jk2.c> JkSet config:file /usr/local/etc/apache2/workers2.properties </IfModule> 上記3行を適当な位置に追加 /usr/local/etc/apache2/workers2.propertiesは以下のような内容にする。 #mod_jk2 のログ設定 [logger.file:0] level=ERROR file=/var/log/mod_jk2.log #共有メモリの設定 [shm:] disabled=1 [channel.socket:localhost:8009] [uri:/servlets-examples/*] [uri:/jsp-examples/*] http://www.hijiki.net/archives/000087.html commons-codec# portinstall java/jakarta-commons-codec 環境変数JAVA_HOMEを未設定ししないと途中で停止するので注意。 jdk5インストールログ(途中で中断)ベータ版である旨の表示が出たこと、またjdk1.4.2のファイルを要求されたことから途中で中断。以下は中断時のログ。 ===> jdk-1.5.0p3_4 depends on file: /usr/local/linux-sun-jdk1.4.2/bin/javac - not found ===> Verifying install for /usr/local/linux-sun-jdk1.4.2/bin/javac in /usr/ports/java/linux-sun-jdk14 ===> linux-sun-jdk-1.4.2.12 You must manually fetch the J2SE SDK self-extracting file for the Linux platform (j2sdk-1_4_2_12-linux-i586.bin) from http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_12-oth-JPR&SiteId=JSC&TransactionId=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/jdk15. *** Error code 1 Stop in /usr/ports/java/jdk15. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall7275.0 make ** Fix the problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! java/jdk15 (unknown build error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed |