Subscribed unsubscribe Subscribe Subscribe

Sun Grid Engine を Ubuntu でビルドする

またもや自分用のメモ。時間があったら DRMAA の Ruby バインディングも試してみよう。

必要なパッケージ

  • csh
  • javacc
  • junit
  • lesstif2-dev
  • libpam-dev
  • libpq-dev
  • libssl-dev
  • libdb4.5-dev
  • libkrb5-dev
  • libreadline-java
  • libxpm-dev
  • libxmu-dev
  • man2html
  • sun-java6-jdk
  • swig

ビルド手順

1. ソースを CVS レポジトリからチェックアウトする
% cvs -d:pserver:guest@cvs.sunsource.net:/cvs co gridengine
2. source ディレクトリに移動
% cd source
3. 環境変数をセット
% setenv JAVA_HOME /usr/lib/jvm/java-6-sun
4. 依存関係の抽出
% ./aimk -only-depend
% scripts/zerodepend
% ./aimk depend
5. source/aimk.site を編集
#set OPENSSL_SOVERSION = 0.9.7l
#set OPENSSL_HOME = /vol2/tools/SW/openssl-0.9.7l-origin/$buildarch
set OPENSSL_SOVERSION = `pkg-config  --modversion openssl`
set OPENSSL_HOME = /usr

#set POSTGRES_HOME = /vol2/tools/SW/postgresql-7.3.2/$buildarch
set POSTGRES_HOME = /usr

#set BERKELEYDB_HOME = /vol2/SW/db-4.4.20/$buildarch
set BERKELEYDB_HOME = /usr
set BDB_INCLUDE_SUBDIR =
set BDB_LIB_SUBDIR =
set BDB_LIB_SUFFIX =
#set BDB_LIB_SUFFIX = -4

#set KRB_HOME = /vol2/tools/SW/krb5/$buildarch
set KRB_HOME = /usr

set INSURE4_LIBDIR = /vol2/tools/insure4/lib.alpha4

#set MAN2HTMLPATH = /vol2/tools/SW/$buildarch/bin

set MAN2HTML = /usr/bin

#set GROFFPATH = /vol2/tools/SW/$buildarch/bin
set GROFFPATH = /usr/bin

#set SWIG = /vol2/tools/SW/swig-1.3.22/$buildarch/bin/swig
set SWIG = /usr/bin

#set PERL = /vol2/tools/SW/$buildarch/bin/perl
set PERL = /usr/bin
#set TCLSH = /vol2/tools/SW/$buildarch/bin/tclsh8.3
set TCLSH = /usr/bin
6. source/build.properties を編集
#javacc.home=${jgdi_libs.dir}/javacc-4.0
javacc.home=/usr/share/java
#libs.junit.classpath=/vol2/tools/SW/java/junit3.8.1/junit.jar
libs.junit.classpath=/usr/share/java/junit.jar
7. source/libs/jgdi/run_util.properties を編集
#READLINE_JAVA_HOME=/vol2/tools/SW/libreadline-java-0.8.0
READLINE_JAVA_HOME=/usr

#READLINE_JAVA_JAR=$READLINE_JAVA_HOME/libreadline-java.jar
READLINE_JAVA_JAR=/usr/share/libreadline-java.jar

#READLINE_LIB_PATH=$READLINE_JAVA_HOME/$ARCH/lib
READLINE_LIB_PATH=/usr/lib/jni

#JUNIT_JAR=/vol2/tools/SW/java/junit3.8.1/junit.jar
JUNIT_JAR=/usr/share/java/junit.jar
8. aimk を実行
% ./aimk