Compiling SGE
- Use PuTTY to log in to the SGE master host as the root user.
- 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
- Run the bootstrap.sh script.
sh scripts/bootstrap.sh
- Modify the aimk file.
- Open the file.
vi aimk
- 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"
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Set the environment variable SGE_ROOT.
export SGE_ROOT=/path/to/SGE_ROOT
- Run the following commands to compile the software:
./aimk -parallel 32 echo y | ./scripts/distinst -all -local -noexit
Parent topic: Compiling and Installing SGE