Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

perl modules on osx

11 views
Skip to first unread message

Noah

unread,
Jul 27, 2011, 2:38:52 PM7/27/11
to mac...@perl.org
Hi there,

okay this is a beginners question. I am trying to figure out the best
cpan strategy for OSX. what is the best installation option for
installing a cpan module to mac osx? I cant find the module in macports
or fink packages.

I did download it and attempting to install manually but found I have a
bunch of prerequisites that are not found. Is there a way to automate
their installation. Should I be looking to do this entire perl module
installation with installing cpan through perl directly?

Warning: prerequisite HTML::Form 0.02 not found.
Warning: prerequisite HTML::TreeBuilder 0 not found.
Warning: prerequisite HTTP::Cookies 0 not found.
Warning: prerequisite HTTP::Request 0 not found.
Warning: prerequisite HTTP::Response 0 not found.
Warning: prerequisite HTTP::Status 0 not found.
Warning: prerequisite LWP 5.48 not found.
Warning: prerequisite LWP::RobotUA 0 not found.
Warning: prerequisite LWP::UserAgent 0 not found.
Warning: prerequisite Tie::Persistent 0.901 not found.
Warning: prerequisite URI 0 not found.
Warning: prerequisite URI::Escape 0 not found.
Warning: prerequisite URI::URL 0 not found.
Warning: prerequisite URI::http 0 not found.
Warning: prerequisite User 1.05 not found.
Warning: prerequisite WWW::Search 2.35 not found.
Warning: prerequisite XML::XPath 0 not found.

Cheers

John Delacour

unread,
Jul 27, 2011, 3:59:53 PM7/27/11
to mac...@perl.org
At 11:38 -0700 27/07/2011, Noah wrote:

>...this is a beginners question. I am trying to figure out the best

>cpan strategy for OSX. what is the best installation option for
>installing a cpan module to mac osx? I cant find the module in
>macports or fink packages.
>
>I did download it and attempting to install manually but found I
>have a bunch of prerequisites that are not found. Is there a way to
>automate their installation. Should I be looking to do this entire
>perl module installation with installing cpan through perl directly?

Yes, provided you are using the Perl Apple installed or, which is
most unlikely from what you have said, a version you have installed
in /usr/local.

Make sure you have installed the Developer Tools from your Mac OS X
disks, without which you won't be able to compile the modules.

Then, in Terminal, type

sudo cpan

and you will be asked for info needed to set up CPAN for use. You can
choose to have prerequisites installed for modules, and I think this
is the default.

Once you are set up, then installing modules is very straightforward.
Just type sudo cpan and then

install Some::Module

When you have finished with CPAN make sure always to do

exit

or

q

To exit to the bash shell otherwise you will have problems with a locked file.

JD

0 new messages