Archive for the tag 'Modules'

CPAN - query, download and build perl modules from CPAN sites

Interactive mode:

perl -MCPAN -e shell;

Batch mode:

use CPAN;
autobundle, clean, install, make, recompile, test

Example:


root@laptop:~# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)

cpan[1]> test
CPAN: Storable loaded ok (v2.18)
CPAN: LWP::UserAgent loaded ok (v5.819)
CPAN: Time::HiRes loaded ok (v1.9711)

I would like to connect to one of the following sites to get ‘authors/01mailrc.txt.gz’:

http://www.perl.org/CPAN/
ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes]

Source: Man Page - http://theoryx5.uwinnipeg.ca/CPAN/perl/lib/CPAN.html

SBDavid

How to install missing perl modules

How to install missing perl modules.

What is CPAN?

CPAN is the Comprehensive Perl Archive Network, a large collection of Perl software and documentation. You can begin exploring from either http://www.cpan.org/, http://www.perl.com/CPAN/ or any of the mirrors listed at http://www.cpan.org/SITES.html.

Note that CPAN is also the name of a Perl module, CPAN.pm, which is used to download and install Perl software from the CPAN archive. This FAQ covers only a little about the CPAN module and you may find the documentation for it by using perldoc CPAN via the command line or on the web at http://search.cpan.org/dist/CPAN/lib/CPAN.pm

Cpan is the easiest method to install new perl modules.

perl -e shell -MCPAN
install Bundle::DBD::mysql

Adding extra modules to Apache, by compiling in DirectAdmin.

Any module that needs to be compiled in will have a –with-module type flag which will need to be used. To add this flag, run the following:

cd /usr/local/directadmin/customapache
vi configure.apache_ssl

Add your –with-module line to the end of the file, where –with-module is to be replaced with required entry for the module you’re installing.

Make sure the character exists at the end of all lines except the last one.

./build clean
./build apache_mod_ssl

Then restart apache.

Source: http://directadmin.com/

After logging into Webmin, I get the error message - You do not have access to any Webmin modules.

Follow these steps to fix it:

Login to your server via telnet or at the console as root.

Edit the file

/etc/webmin/webmin.acl

and make sure the line starting with root: or admin: (depending on which you use to login to Webmin) exists and looks like :

admin: acl

Login to Webmin again, and go into the Webmin Users module, which will be the only one you have access to.

Click on your username in the list, grant yourself access to all the modules, and click Save.

How do I install new modules in webmin

Once you have downloaded a new module as a .wbm file, enter the Webmin Configuration module and click on the Webmin Modules button. Then use the form at the top of the page to install the module either from the local file system of the server Webmin is running on, or uploaded from the client your browser is on.

« Prev - Next »