Is there a way to list all required dynamic libraries by perl?

∥☆過路亽.° 提交于 2019-12-25 08:56:52

问题


As we know many perl modules depends on some dynamic libraries to function,loaded by DynLoader(I don't know if there's any other way to load .so though).

./perl_programe

Is there a way to list all required dynamic libraries for a specific perl programe?


回答1:


Try this script:

#! /usr/bin/perl
do shift;
print "$_\n" for @DynaLoader::dl_shared_objects;

It takes the script to check as first (and only) argument. e.g. ./dyna perl_programe



来源:https://stackoverflow.com/questions/6872732/is-there-a-way-to-list-all-required-dynamic-libraries-by-perl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!