http://www.perlmonks.org?node_id=1013822

Kyomizudera has asked for the wisdom of the Perl Monks concerning the following question:

O perl monks, I seek your collective wisdom.

Recently I discovered that several perl modules had been erased and that backups did not exist for the particular folder the modules exist in. I tried updating - reinstalling etc but the modules are not available from the (AIX .bff) files. I did however find the .so file counterparts to the .pm files that are Supposed to be installed. I have searched around for how to generate a perl module from a shared object but it seems that there is no good documentation.

#I am supposed to have /opt/perl/installsitearch/LibExt/CatGetS.pm #I do see the corresponding .so file. /opt/perl/installsitearch/auto/LibExt/CatGetS/CatGetS.so
How can I generate the CatGetS.pm from /CatGetS/CatGetS.so

Thanks for any wisdom. J

Replies are listed 'Best First'.
Re: Compile a perl module from a shared object in Unix (AIX)
by Corion (Patriarch) on Jan 17, 2013 at 17:23 UTC

    The two are companion files, but you cannot generate one from the other.

    You haven't told us where these files are supposed to come from, but a cursory Google search suggests that they are somehow related to SUMA. I can only suggest you contact them to supply you with the appropriate files...

      Is there a way to trick perl into referencing the .so file since it is a binary form or the perl module? Can I force the script that is calling for the CatGetS.pm in the @INC to refer to the CatGetS.so through some manipulation of the perl environment or the perl script? Thanks J

        No.

        The .so belongs to the .pm file, but they are different things and you cannot get one from the other. The .so file is not a compiled .pm file. You cannot get from one file to the other file.