|Problems? Is your data what you think it is?|
Configuring Mac OS X to Install Perl Modulesby Perrmoss (Initiate)
|on Sep 22, 2007 at 07:27 UTC||Need Help??|
Perrmoss has asked for the
wisdom of the Perl Monks concerning the following question:
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 com.apple.finder 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 Makefile.pl 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;
3e Install the module, for example DateTime.pm by typing the following commands;
Note: Having gone through this process, it is now throwing up the message Can't locate Params/Validate.pm in @INC
Any help or suggestions on where I have gone wrong would be appreciated.