System Commands Yum and Cmake Are Unavailable

Symptom

After the Vision SDK software package is installed and environment variables are imported, the yum and cmake commands are unavailable. An error message is displayed, indicating that the problem is related to OpenSSL.

The following error message is displayed when the yum command is executed:

1
2
ImportError: /lib64/libcurl.so.4: symbol SSLv3_client_method version OPENSSL_1_1_0 not defined in file libssl.so.1.1 with link time reference
ModuleNotFoundError: No module named '_conf'

The following error message is displayed when the cmake command is executed:

symbol lookup error: /usr/lib64/libldap.so.2: undefined symbol: EVP_md2, version OPENSSL_3.0.0

Cause Analysis

After Vision SDK environment variables are imported, libssl.so or libcrypto.so of /mxVision-{version}/opensource/lib conflicts with libssl.so and libcrypto.so on which yum and cmake depend. (Replace {version} with the actual Vision SDK version number.)

Solution

When the yum or cmake command needs to be used, temporarily remove the opensource/lib path of Vision SDK from LD_LIBRARY_PATH. When compiling programs related to Vision SDK, you can add the link option add_link_options(-Wl,-rpath-link,${MX_SDK_HOME}/opensource/lib) to CMakeLists.txt to specify the link path. When running programs related to Vision SDK, add the opensource/lib path to the LD_LIBRARY_PATH environment variable.