What is the default location for dll on a linux system?

After researshes, I know dll files can be used under linux system. I'm able to use them when I have a specific path to give.

Is there a path where to put them which linux look up automatically, equivalent to

C:\Windows\System32 ?

Some sites recommended usr/local/lib, but linux doesn't look there automatically.

1 Answer

The file /etc/ld.so.conf contains the list of directories the dynamic linker will attempt to automatically load libraries from. This file often includes other configuration files under the /etc/ld.so.conf.d directory.

After modifying this file you will need to update the cache using by running ldconfig as root.

Some distro's have other tools to manage this file for you. If the ld.so.conf file contains a comment claiming it is auto generated, you should refer to your distro's documentation on how to make changes.

7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like