[GE dev] Instruction of how to build SGE 6.2u3 on CentOS 5.3

pine_ml pine_ml at 163.com
Tue Jul 28 09:17:09 BST 2009


    [ The following text is in the "gb2312" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

First of all, thanks, hintak!
With your help, I have builded sge 6.2u3 successfully.

Following are my method to build sge 6.2u3 on CentOS 5.3 successfully.
Hope it is useful for somebody else because sge's build is awesome on Fedoara/CentOS.

--> get source tar ball
    [] get sge 6.2u3's source code
        ge-V623_TAG-src-all_modules.tar.gz
    [] get Berkeley DB's source code
        db-4.7.25.tar.gz

 --> build Berkeley DB
    [] unpack Berkeley DB's source
        tar zxvf db-4.7.25.tar.gz
    [] enter its directory
        cd db-4.7.25
    [] enter build directory
        cd build_unix
    [] configure
        ../dist/configure --enable-rpc --enable-posixmutexes
    [] make
        make
    [] install, and remember your DB's target path (as MyDbPath)
         make install

    Note: you can specify the target path in ../dist/configure --prefix=/path/to/your/target --enable-rpc --enable-posixmutexes

  --> install Motif/OpenMotif
    yum install openmotif*

  --> install openJDK
    yum install openjdk*

  --> install libXpm.devel-i386
    yum install libXpm.devel-i386

  --> modify two aimk files
    [] aimk for krb
        set SECLIBS_STATIC    = "-lssl -lcrypto" # added by c.k
        #set SECLIBS_STATIC    = "$OPENSSL_HOME/lib/libssl.a $OPENSSL_HOME/lib/libcrypto.a"
    [] aimk.site for java
        if ( ! $?JAVA_HOME ) then
           #set JAVA_BIN = `which \java`
           # modified by c.k
           set JAVA_BIN = '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java'

           if ( -e "$JAVA_BIN" ) then
                 #if (( -e "$JAVA_BIN" ) && ("$JAVA_BIN" != "/usr/bin/java")) then
              set JAVAV = `$JAVA_BIN -version |& head -1`
              set JAVAV = `expr "$JAVAV" : 'java version "1\.\([0-9]\)*"'`

              if ( $JAVAV >= 4 ) then
                 setenv JAVA_HOME `expr //$JAVA_BIN : '//\(.*\)/bin/.*'`
              endif
           endif

           # following code section is added by c.k
           if (( -e "$JAVA_BIN" ) && ("$JAVA_BIN" == "/usr/bin/java")) then
              #set argv = ( -no-jni $* )
                set JAVA_HOME = '/nowhere'
           endif

        endif
    [] aimk.site for DB
        #set BERKELEYDB_HOME = /off_home/gridengine/db-4.4.20/$buildarch
       #modified by c.k
        set BERKELEYDB_HOME = /usr/local/BerkeleyDB.4.7 #remember your MyDbPath?

  --> modify build.xml for sun's private java library
    [] <target name="all" depends="detect_jvm_lib, drmaa"/>

 --> build the dependency tool 'sge_depend'
    [] ./aimk -only-depend -no-dump
    [] ./scripts/zerodepend
    [] ./aimk -no-dump depend

  --> build SGE
    [] ./aimk -no-dump





________________________________
??YEAH.NET?????????????<http://www.yeah.net/?from=footer>



More information about the gridengine-users mailing list