Using ldconfig on Linux

后端 未结 2 1337
悲哀的现实
悲哀的现实 2021-01-31 10:28

Let\'s say I \'ve added a library foo.so.1.1.1 to a path that is included in /etc/ld.so.conf When I run ldconfig on the system I get the links foo.so.1.1 and foo.so

2条回答
  •  清酒与你
    2021-01-31 11:08

    Just make the symlink yourself:

    ln -s /usr/lib/foo.so.1.1.1 /usr/lib/foo.so
    

    Note that for applications to use libraries in this manner, they need to be explicitly linked against the unversioned shared object. IE: this is a mechanism to bypass the dynamic loader's version matching system completely.

提交回复
热议问题