{"id":762,"date":"2012-04-17T16:53:21","date_gmt":"2012-04-17T23:53:21","guid":{"rendered":"http:\/\/yan.lalife.net\/?p=762"},"modified":"2026-01-20T05:07:43","modified_gmt":"2026-01-20T05:07:43","slug":"ldconfig-change-lib-path","status":"publish","type":"post","link":"http:\/\/www.lalife.net\/?p=762","title":{"rendered":"ldconfig &#8212; change lib path"},"content":{"rendered":"<p>Sometimes it&#8217;s preferred to install libraries into non-default locations, such as \/usr\/local\/,<br \/>\nbut how to let the system know where to find them?<\/p>\n<p>ldconfig can be used to change the lib path,<\/p>\n<p>Ex. To have the system be able to find libraries under \/usr\/local\/lib for myapp<\/p>\n<p>vi \/etc\/ld.so.conf.d\/myapp.conf<br \/>\n\/usr\/local\/lib<br \/>\n#ldconfig<\/p>\n<p>To check result<br \/>\n#ldconfig -v<\/p>\n<p># ldconfig -l \/path\/to\/lib\/missing.lib.so<\/p>\n<p>Great articles about shared libraries.<br \/>\nhttp:\/\/www.cyberciti.biz\/faq\/linux-setting-changing-library-path\/<br \/>\nhttp:\/\/www.cyberciti.biz\/tips\/linux-shared-library-management.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it&#8217;s preferred to install libraries into non-default locations, such as \/usr\/local\/, but how to let the system know where to find them? ldconfig can be used to change the lib path, Ex. To have the system be able to &hellip; <a href=\"http:\/\/www.lalife.net\/?p=762\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[43,44],"class_list":["post-762","post","type-post","status-publish","format-standard","hentry","category-linux-command","tag-ldconfig","tag-linux"],"_links":{"self":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=762"}],"version-history":[{"count":1,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":1878,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions\/1878"}],"wp:attachment":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}