Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling HTCondor

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to decompress the installation package:

    cd /path/to/HTCONDOR

    tar -xvf htcondor-8_9_2.tar.gz

  3. 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
  4. Run the following command to edit the config file of HTCondor:
    cp configure_redhat buildarm.sh
    1. Open the config file of HTCondor.

      vi buildarm.sh

    2. 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 "$@"
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. 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
  6. Run the following commands to perform the compilation and installation:

    make -j 64

    make install