Proper way to install module that uses shared libs

B

B

Hi All,

Does anyone know the proper way to install a Perl module on Linux that
loads several shared libraries? For standard libs that comes with
Perl, the .so files are in the ${PERL_HOME}/i386-linux-thread-multi/
auto directory. Is this where my libs should go also? I do not want to
depend on LD_LIBRARY_PATH if at all possible. Also, what about
managing versions? Is there a document that describes best practices
for handling this scenario?

many thanks,

B
 
L

Leon Timmermans

Hi All,

Does anyone know the proper way to install a Perl module on Linux that
loads several shared libraries? For standard libs that comes with Perl,
the .so files are in the ${PERL_HOME}/i386-linux-thread-multi/ auto
directory. Is this where my libs should go also? I do not want to depend
on LD_LIBRARY_PATH if at all possible. Also, what about managing
versions? Is there a document that describes best practices for handling
this scenario?

many thanks,

B

Module::Build or ExtUtils::MakeMaker can take care of all of that,
there's no need to deal with that yourself.

Regards,

Leon
 
B

Ben Bullock

Does anyone know the proper way to install a Perl module on Linux that
loads several shared libraries? For standard libs that comes with
Perl, the .so files are in the ${PERL_HOME}/i386-linux-thread-multi/
auto directory. Is this where my libs should go also? I do not want to
depend on LD_LIBRARY_PATH if at all possible. Also, what about
managing versions? Is there a document that describes best practices
for handling this scenario?

There are a lot of documents describing best practices in Perl, and
usually they disagree with each other. I'm not clear if you're a module
author or someone trying to install modules. If you're a module author,
then I recommend trying "Module::Starter" and "Module::Install" and
rooting around CPAN's documentation. If you're someone trying to install
modules, the best advice is to use cpan (a command line program which
comes with Perl) or ppm (comes with ActiveState Perl) if you are on
Windows.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top