覆盖NPU-Exporter或Ascend Device Plugin的service文件时出现OPENSSL_1_1_0 not defined

问题描述

将NPU-Exporter或Ascend Device Plugin设置为开机启动,执行systemctl enable xxxxx.service时出现如下错误。

systemctl: relocation error: /usr/lib64/libssl.so.1.1: symbol BIO_dgram_sctp_wait_for_dry version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference

可能原因

执行证书导入功能时设置了“LD_LIBRARY_PATH”环境变量导致报错。

解决方法

若是在执行其他命令时出现该报错,请执行如下命令解决。

rm /etc/ld.so.conf.d/ascend_dl_so.conf
ldconfig