openmeetingsをantを使用してCentOS上でコンパイルする。
openmeetingsが動作できる環境があるうえで必要なものを追加
subversionの確認
# rpm -qa | grep subversion
なければ
# yum install subversion
ソースのチェックアウト
# cd /usr/local/src # svn checkout http://openmeetings.googlecode.com/svn/trunk/singlewebapp/
# cd /opt # wget http://www.meisei-u.ac.jp/mirror/apache/dist/ant/binaries/apache-ant-1.8.2-bin.tar.gz # tar zxvf apache-ant-1.8.2-bin.tar.gz
以下の内容を/etc/profileの最後に記入してもOK
## java export JAVA_HOME=/usr/java/default export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar export ANT_HOME=/opt/apache-ant-1.8.2 export PATH=$ANT_HOME/bin:$PATH
# source /etc/profile
# cd /usr/local/singlewebapp # ant -f build_red5webapp.xml dist Buildfile: /usr/local/src/tmp2/singlewebapp/build_red5webapp.xml cleanForBinary: [delete] Deleting directory /usr/local/src/tmp2/singlewebapp/screen_compile [delete] Deleting directory /usr/local/src/tmp2/singlewebapp/bin [delete] Deleting: /usr/local/src/tmp2/singlewebapp/filetest.keystore prepare: [mkdir] Created dir: /usr/local/src/tmp2/singlewebapp/screen_compile [mkdir] Created dir: /usr/local/src/tmp2/singlewebapp/dist [copy] Copying 396 files to /usr/local/src/tmp2/singlewebapp/dist [copy] Copied 42 empty directories to 12 empty directories under /usr/local/src/tmp2/singlewebapp/dist (略)
[signjar] 警告: [signjar] 署名者の証明書は 6 か月以内に期限切れになります。 [signjar] キーストアのパスワードを入力してください: [signjar] Signing JAR: /usr/local/src/tmp2/singlewebapp/dist/red5/webapps/\ openmeetings/red5-screenshare/spring.jar to /usr/local/src/tmp2/singlewebapp/\ dist/red5/webapps/openmeetings/red5-screenshare/spring.jar as filetest [signjar] [signjar] 警告: [signjar] 署名者の証明書は 6 か月以内に期限切れになります。 [signjar] キーストアのパスワードを入力してください: dist: BUILD SUCCESSFUL Total time: 1 minute 57 seconds
distのディレクトリにopenmeetingsが作成されるので
# mv dist openmeetings # mv openmeetings /usr/local/