Je Rog
Je Rog

Reputation: 5993

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

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?

Upvotes: 0

Views: 117

Answers (1)

Leon Timmermans
Leon Timmermans

Reputation: 30225

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

Upvotes: 2

Related Questions