Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Howto Build Perl "Statically" Under Home Directory

by monkfan (Curate)
on Mar 29, 2007 at 07:11 UTC ( #607171=perlquestion: print w/replies, xml ) Need Help??
monkfan has asked for the wisdom of the Perl Monks concerning the following question:

Most revered monks,
I've already installed Perl version 5.8.7 in my home directory. But it is build dynamically:
bioinfo@sf3:~/.perl/bin[504]$ file perl perl: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, +not stripped
Is there a way to build it "statically" so that all the Perl library can be installed in my home in whole. Unlike now, those libraries has to be called from other places:
bioinfo@sf3:~/.perl/bin[506]$ ldd perl => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/
This dynamically build Perl has given me a problem, because the Apache server where my CGI script resides (needing newer Perl compiler) and those libraries are stored in different machines in my office network.

I've looked through ./Configure --help, but it doesn't seem to indicate how to build it statically.


Replies are listed 'Best First'.
Re: Howto Build Perl "Statically" Under Home Directory
by Tux (Abbot) on Mar 29, 2007 at 07:54 UTC

    You can try to call Configure -Uusedl, but I think that will also disable the use of dynamic loaded modules

    You mighjt also need to move all modules from dynamic_ext to static_ext

    All-in-all I don't think this is the best approach. Better would be to use $LD_LIBRARY_PATH or whatever variable your system supports for the search path of your dynamic libraries.

    Enjoy, Have FUN! H.Merijn

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://607171]
Approved by GrandFather
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-06-23 08:40 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.