genghisken / ps1

Pan-STARRS and ATLAS code
3 stars 0 forks source link

C++ YAML library in CentOS7 is not compatible with ATLAS or PS1 C++ ingester code #125

Closed genghisken closed 4 years ago

genghisken commented 6 years ago

The original C++ ingester code relies on YAML 0.3 - the default version installed with YUM on CentOS6. In CentOS7 the default version is YAML 0.5. The two libraries are incompatible and the yaml-cpp03 version (plus dev files) must be installed on CentOS7 to get it to work. Additionally, Makefile_ddc must be altered to refer to the yaml-cpp03 library. And Config.h must be modified to include the old header version.

#include "yaml-cpp03/yaml.h"

The real solution is to upgrade my C++ code to use the new API, but this is a non-trivial task.

NOTE: The Pan-STARRS code must also be altered when migrating to CentOS7 (which will happen within the next 6 months).

genghisken commented 4 years ago

Solution is implemented, but could do with upgrading the YAML interface in the C++ code. This is non-trivial, and needs to be done in both ATLAS and Pan-STARRS code.