Compiling HTCondor
- Use PuTTY to log in to the server as the root user.
- Run the following commands to decompress the installation package:
cd /path/to/HTCONDOR
tar -xvf htcondor-8_9_2.tar.gz
- Switch to the condor-8.9.2 directory:
cd htcondor-8_9_2
ls
build builder.sh build-on-linux.sh CITATION.cff CMakeLists.txt configure_redhat configure_uw doc docs externals LICENSE-2.0.txt msconfig nmi_tools NOTICE.txt src view
- Run the following command to edit the config file of HTCondor:cp configure_redhat buildarm.sh
- Open the config file of HTCondor.
vi buildarm.sh
- Press i to enter the insert mode and modify the file as follows:
#!/bin/sh echo "-------------------------------------------------------------------" echo "* NOTE: Attempting to configure a Red Hat-esk build" echo "* which builds against system libs and selectively " echo "* enables and disables portions of condor" echo "* If you are unsure, you should run \"cmake .\"" echo "*" echo "* add -D_DEBUG:BOOL=FALSE to get non-optimized code for debugging" echo "* Another option would be to run ccmake or cmake-gui" echo "* and select the options you care to build with" echo "-------------------------------------------------------------------" cmake \ -D_DEBUG:BOOL=TRUE \ -DWITH_CREAM:BOOL=FALSE \ -DNO_PHONE_HOME:BOOL=TRUE \ -DHAVE_BACKFILL:BOOL=FALSE \ -DHAVE_BOINC:BOOL=FALSE \ -DHAVE_KBDD:BOOL=TRUE \ -DHAVE_HIBERNATION:BOOL=TRUE \ -DWANT_CONTRIB:BOOL=ON \ -DWANT_MAN_PAGES:BOOL=TRUE \ -DWANT_FULL_DEPLOYMENT:BOOL=FALSE \ -DWANT_GLEXEC:BOOL=FALSE \ -D_VERBOSE:BOOL=TRUE \ -DBUILDID:STRING=RH_development \ -DWITH_GLOBUS:BOOL=FALSE \ -DWITH_VOMS:BOOL=FALSE \ -DSQLITE3_LIB:FILEPATH=/path/to/SQLITE/lib/libsqlite3.so \ -DHAVE_SQLITE3_H:FILEPATH=/path/to/SQLITE/include \ -DCMAKE_INSTALL_PREFIX:PATH=${PWD}/release_dir "$@" - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the config file of HTCondor.
- Run the following command to perform the configuration:
./buildarm.sh
... -- Configuring done -- Generating done -- Build files have been written to: /home/htcondor/condor-8.9.2
- Run the following commands to perform the compilation and installation:
make -j 64
make install
Parent topic: Deploying HTCondor