I understand that it’s a place to store a “Search path for dynamically loaded modules,” but I would be grateful if someone could please provide an example use case for $DLN_LIBRARY_PATH with Ruby.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since Ruby cannot be linked against user C extensions in advance, it loads them at runtime as shared libraries. These extensions have to be loaded from somewhere, and that’s exactly what
DLN_LIBRARY_PATHspecifies: the list of directories where shared objects or DLLs may be found.It is similar to the
LD_LIBRARY_PATHenvironment variable, which provides the same information for the dynamic linker on Unix-like systems.