Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling SGE

  1. Use PuTTY to log in to the SGE master host as the root user.
  2. Run the following commands on PuTTY to decompress the SGE installation package:
    cd /path/to/SGE
    tar -xvf sge-8.1.9.tar.gz
    cd sge-8.1.9/source
  3. Run the bootstrap.sh script.
    sh scripts/bootstrap.sh
  4. Modify the aimk file.
    1. Open the file.
      vi aimk
    2. Press i to enter the insert mode, and add "-L/usr/lib64 -lcurses" to the end of -lpthread in lines 330, 1852, and 2664 in the aimk file.
      330: set LIBS = "-lm -lpthread -L/usr/lib64 -lcurses"
      1852:set LIBS - "-lsocket -lnsl -lm -lpthread -L/usr/lib64 -lcurses -lthread -lkstat"
      2664:set SGE_LIBS = "-lsge -lpthread -L/usr/lib64 -lcurses"
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Set the environment variable SGE_ROOT.
    export SGE_ROOT=/path/to/SGE_ROOT
  6. Run the following commands to compile the software:
    ./aimk -parallel 32
    echo y | ./scripts/distinst -all -local -noexit