Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Installing (lotsa) modules

by Zaxo (Archbishop)
on Oct 11, 2001 at 10:28 UTC ( [id://118184]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Installing (lotsa) modules

You can install Bundles from CPAN:

# perl -MCPAN -e 'shell' cpan> b # (get a list of some 130 Bundles) cpan> install Bundle::LWP etc...
This will install large numbers of related modules.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Installing (lotsa) modules
by Fletch (Bishop) on Oct 11, 2001 at 16:17 UTC

    You can also create your own bundles, or if you have a box that's already got what you want installed you can use the autobundle command to get CPAN.pm to make one for you using what's currently installed. See the section "POPULATE AN INSTALLATION WITH LOTS OF MODULES" in perldoc CPAN.

      You can also create your own bundles

      Would modules that are not pure Perl still need a working compiler on the target machine? Or could they be complied on the donor machine and bundled onto the target machine fully formed?

        Would modules that are not pure Perl still need a working compiler on the target machine?

        Sure. All that a bundle does is to depend on a lot of other packages (those listed in the bundle), and so CPAN.pm just installs the dependencies as usual.

        Or could they be complied on the donor machine and bundled onto the target machine fully formed?

        Yes and no. Usually no, except when you build an entire distribution or when "donor" and target machine run exactly identical software. "Binary" modules (those using XS) usually not only depend on the exact perl version and its configuration, but usually also on the exact library versions they were linked against, and on their configurations. So if you can make perl and all libraries on the target the same as on the "donor" machine, copying will very likely work.

        If you look at any binary Linux distribution (e.g. Debian, Redhat, Ubuntu, Slackware), you can see why they can distribute compiled perl modules: The distribution development team controls compiler, libraries, perl, and perl modules, both versions and configurations. The packaging system has its own way of dependency tracking, and takes care of either updating a perl package after a library was updated, or keeping an old version of the library around for a perl package.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://118184]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.