Currently only works with RHEL 6.
OpenCV should be built for RHEL5 and RHEL7 now.