部分Linux系统设置LD_LIBRARY_PATH变量,并不能生效,此时需要将变量值写入/etc/ld.so.conf文件中,如下所示:
- include ld.so.conf.d/*.conf
- include /usr/local/lib64 /usr/local/gmssl/lib
- include /usr/lib64
- include /usr/local/openssl-1.1.0d/lib
然后执行如下命令即可生效。
sudo ldconfig /etc/ld.so.conf