Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Testing for a module's presence

by jpk236 (Monk)
on Feb 06, 2005 at 02:42 UTC ( [id://428413]=note: print w/replies, xml ) Need Help??


in reply to Testing for a module's presence

if you're running FreeBSD, or a similar operating system, you could do something as follows:
#>pkg_info | grep -i "MODULE"
Justin

Replies are listed 'Best First'.
Re^2: Testing for a module's presence
by DrHyde (Prior) on Feb 07, 2005 at 10:53 UTC
    This assumes that you only install modules using your OSes packaging system.
      Why wouldn't you want to? That's the beauty of FreeBSD.

      Justin

        FreeBSD doesn't support every module ever written, and it certainly wouldn't support modules that the user has authored himself. Plus, if you install from FreeBSD ports, you are limited to using the version of Perl that FreeBSD is presently supporting.

        I really enjoy the power and beauty of the FreeBSD ports system, and use it very often. However, when it comes to CPAN.pm, it has its own beauty that often outshines even the ports system.

        I allow the ports to install the Perl Ports that they depend on, but I always compile my own version of Perl. I have a Cpan script that install modules that I need and set config for Cpan. This way I don't have to go to each port and install the modules. I have another script that takes the perl tar file and installs it in /usr/local/perl-?.?? dir, links /usr/local/perl to the new perl dir and then runs the Cpan script to set the config and install the modules. The Cpan config is set to "follow" all dependent modules. I find this much more convenient than using all the ports, which use the BSDpan module.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found