Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Despite several posts here and elsewhere, I have still not been successful in installing a Perl module (DateTime). It seems that there is some very basic stuff that I have missed. It has been surprisingly difficult to get this to work.

What I need is a step-by-step idiots guide to configure a new Mac (OS X 10.4.10) for the installation of Perl modules, in particular DateTime. When I've got it sorted for one Mac, I'm going to repeat the process for other Macs.

Note that the idiots guide MUST be something that anyone can follow, and its got to go through the entire process. What I have in mind goes as follows(its been gleaned from previous posts and websearches, and I don't claim that it is the right way or the best way to do it) and I invite your comments or suggestions;

1 Make hidden files visible. This allows you to see what's being installed and where it is being installed. Open Terminal (Applications => Utilities => Terminal) and type the command defaults write AppleShowAllFiles Yes. The next time you open a finder window, it will show the hidden files.

Note: You'll never find the likes of usr/bin/perl unless you do this.

2 Install a C compiler. Insert Mac OS X Install DVD, execute XCode Tools => XCodeTools.mpkg, follow the prompts and accept the defaults.

Note: For some reason, you need a C compiler to run and some other stuff.

3 Terminal operations (make sure your computer is connected to the internet before starting)

3a Open Terminal (Applications => Utilities => Terminal)

3b Type the command sudo perl –MCPAN –e shell

3c Input password (it's the same password as your login)

3d Do some general maintenance by typing the following commands;

install Mac::Carbon

install Bundle::LWP

install Bundle::CPAN

3e Install the module, for example by typing the following commands;

look DateTime

perl Makefile.PL

make test

Note: Having gone through this process, it is now throwing up the message Can't locate Params/ in @INC

Any help or suggestions on where I have gone wrong would be appreciated.

In reply to Configuring Mac OS X to Install Perl Modules by Perrmoss

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (3)
    As of 2018-06-18 00:50 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (107 votes). Check out past polls.