I have installed Policy Server R12.8 on RHEL7.2, and I found that I get errors regarding python modules when trying to run yum on the system:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, May 3 2017, 07:55:04)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
If you cannot solve this problem yourself, please go to
the yum faq at:
I noticed this only happens if I have sourced the ca_ps_env.ksh script before running yum. How can I solve this issue?
Policy Server R12.8 on RHEL7
When you need to run OS functions instead Policy Server tools and commands, you do not need to source Policy Server environment variables script. This makes the OS functions to use libraries specified in the Policy Server environment variables script.
This is mentioned in the documentation at the following location:
So in order to run yum properly, do not source the ca_ps_env.ksh script.