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
/usr/ports/net/p5-RPC-XML
/usr/ports/net/p5-RPC-XML/Makefile
/usr/ports/net/p5-RPC-XML/distinfo
/usr/ports/net/p5-RPC-XML/pkg-descr
/usr/ports/net/p5-RPC-XML/pkg-plist

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s