将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 /usr/local/kmc/libcrypto*
执行ldconfig命令,再执行systemctl enable xxxxx.service命令。
rm /etc/ld.so.conf.d/ascend_dl_so.conf ldconfig ldd /usr/bin/systemctl | grep crypto
示例如下所示。
libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1
执行如下命令。
export LD_LIBRARY_PATH=/usr/lib64/ tee /etc/ld.so.conf.d/ascend_dl_so.conf <<- EOF /usr/local/kmc EOF ldconfig
再执行systemctl enable xxxxx.service命令。
若是在执行其他命令时出现该报错,请执行如下命令解决。
rm /etc/ld.so.conf.d/ascend_dl_so.conf ldconfig