Wednesday, 5 October 2011

Installing Perl Modules

Method 1 - Using CPAN

At the prompt run the following command

perl -MCPAN -eshell

Then you can search for a module using "i /RPC::XML/" and install using "install RPC::XML"

Method 2 - Using FreeBSD ports

All perl modules in the ports tree are prefaced with "p5" so its easy to find using locate and grep:

locate p5 | grep RPC-XML

cd /usr/ports/net/p5-RPC-XML
make install

No comments:

Post a Comment