Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Compile a perl module from a shared object in Unix (AIX)

by Kyomizudera (Initiate)
on Jan 17, 2013 at 17:16 UTC ( #1013822=perlquestion: print w/replies, xml ) Need Help??
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/ #I do see the corresponding .so file. /opt/perl/installsitearch/auto/LibExt/CatGetS/
How can I generate the from /CatGetS/

Thanks for any wisdom. J

Replies are listed 'Best First'.
Re: Compile a perl module from a shared object in Unix (AIX)
by Corion (Pope) 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 in the @INC to refer to the through some manipulation of the perl environment or the perl script? Thanks J


        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.