perl -MCPAN -e shell question - need a howto

Andy Firman andy at
Fri Jan 14 07:20:56 PST 2005

On Fri, Jan 14, 2005 at 03:08:23PM +0000, Gary Hayers wrote:
> Andy Firman wrote:
> >Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports.
> >
> >su-2.05b# perl -v
> >This is perl, v5.8.5 built for i386-freebsd-64int
> >
> >When using perl -MCPAN -e shell, I can install the bundle fine,
> >but the when I try to install XML::DOM, or Text::Aspell, they fail.
> >
> >Where can I go for help on getting the bsdpan ports installed?
> >Or is there a howto on this stuff because I am clueless?
> >
> >Thanks,
> >Andy
> If you have the Ports tree installed you can install it from the ports tree
> # cd /usr/ports/textproc/p5-XML-DOM && make install clean

Understood.  But I am having a hard time figuring out how Perl modules 
"should" get installed on a system.

One can use perl -MCPAN -e shell to install modules right?
One can install from source in /usr/local/src right?
One can install perl p5-Bla-Bla-1.03 from the ports right?

Which is the right way?

I have learned in the past it is very good practice to stick with the
system package management system if at all possible.  It will save
you in the future big time with dependancey problems.
Hence my hesitation with moving forward by throwing anything at the problem.

More information about the freebsd-questions mailing list