{"id":273,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=273"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"get-needed-libraries-for-an-application","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=273","title":{"rendered":"Get\n needed libraries for an application"},"content":{"rendered":"<p>To get a nice printout of which libraries are required by a given application, cut and paste the text below into your <code>.profile<\/code>. Once you&#8217;ve done that, you can just type<\/p>\n<pre>getlibs appname<\/pre>\n<p>(where <code>appname<\/code> is the name of the application you want to investigate) in your Terminal to find the needed libraries.<\/p>\n<pre>\ngetlibs()\n{\n        if [ \"$#\" = \"0\" ]; then\n                echo \"No executable specified.\"\n                return 1\n        fi\n        if [ -f \"$1\" ]; then\n                objdump --all-headers \"$1\" | grep NEEDED | awk '{\nprint $2 }'\n        else\n                echo \"Can't find executable '$1'.\"\n                return 1\n        fi\n        return 0\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To get a nice printout of which libraries are required by a given application, cut and paste the text below into your .profile. Once you&#8217;ve done that, you can just type getlibs appname (where appname is the name of the application you want to investigate) in your Terminal to find the needed libraries. getlibs() { [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[10],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","tag-scripting"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}