Compiling Condor on Summit
From SCECpedia
Jump to navigationJump to search
This page is to gather notes on compiling Condor on Summit. I compiled v8.8.2 with blahp for glite support.
Summit is a Power PC system, so few, if any, precompiled binaries exist. Additionally, many libraries installed on Summit are in unconventional locations, making linking them in difficult. I found it was simpler to install user-space copies of many of the libraries Condor requires.
Steps
I compiled this guide after I completed the install, so there's a chance I left something out. These are the steps as I best remember them.
- Download Condor source from the website. I used v8.8.2.
- Unzip the Condor source.
- Load the following modules:
- module load cmake
- module load curl
- module load sqlite
- Install the following dependencies:
- PCRE
- UUID
- Globus Toolkit (I used 6.0).
- Munge
- Boost. I installed v1.66, since that's one of the versions Condor seemed to expect in the externals/bundles/boost directory. Note that Summit does have several versions of Boost which can be loaded via modules, but I couldn't get Condor to pick them up correctly.
- I tried to install PAM also, but there seemed to be an error in the autoconf setup and I couldn't build it. I was able to get Condor to build without it.
- Make the following edits to condor-8.8.2/CMakeLists.txt . (If this file doesn't exist, run the cmake command a few steps below, which will create the file). I'm sure there are other ways to get this into cmake, but this seemed to work.
- In line 30, add
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I<path/to/pcre/include> -I</path/to/uuid/include> -I</path/to/globus_toolkit/include> -I</path/to/munge/include> -I</path/to/boost/include>")
You may also need to add the path to sqlite3.h, if it's not picked up from the module. - On the next line, add
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} <all the entries you added to CMAKE_C_FLAGS>")
- On the next line, add
set(CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS} -L<path/to/pcre/lib> -L</path/to/uuid/lib> -L</path/to/globus_toolkit/lib> -L</path/to/munge/lib> -L</path/to/boost/lib>")
- In line 30, add
- Add Globus libraries to your LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=</path/to/globus_toolkit/lib>:$LD_LIBRARY_PATH
- BLAHP support is required to get glite to compile (which is needed for rvGAHP). I was unable to get Condor to install blahp using the default configuration. Condor is supposed to initially look for libraries on the system, but when it couldn't find