openresty / openresty

High Performance Web Platform Based on Nginx and LuaJIT

Home Page:https://openresty.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LD_LIBRARY_PATH doesn't work really in Luaffi

panghuhu12138 opened this issue · comments

When I use openresty's LuaFFI module to call my own dynamic library depending on openssl_1.1.1q's libcrypto and libssl where is in /use/local/lib64(it is not the system's own, system's OpenSSL
Version is 1.1.1f), it is a problem that I env LD_LIBRARY_PATH=/usr/local/lib64 in nginx.conf, rparh is also used, but it still runs linking /usr/lib64(system OpenSSL).I print my own dynamic library's ldd message, it looks like correctly, but I call OpenSSL's api openssl_version(), it shows 1.1.1f. How can I fix it? Ty