Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Adding perl modules

Adding perl modules
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2005
Status: Offline
Reply With Quote
May 25, 2005, 10:14 AM
 
Can someone give me some simple directions for adding perl modules to OS X 10.4.1?



I have done this on Red Hat, but am just starting to do perl coding on OS X.

Thanks in advance for your help....
---------------------------------------------------------------------------

15.4" MBP - 2.33 GHz - 2 GB RAM - 256 MB VRAM - 120 GB HD
     
Grizzled Veteran
Join Date: Jan 2002
Location: Melbourne, Australia
Status: Offline
Reply With Quote
May 27, 2005, 06:09 AM
 
CPAN is your friend. You can either use the cpan script or the CPAN Perl module. Information about the cpan script is available in the man page (man cpan). To use the module (my preferred method) you do:
Code:
sudo perl -MCPAN -e shell
If it is the first time you have done that you will have to configure it, in most cases you can just accept the defaults. After the configuration has completed you will be in the cpan prompt:
Code:
cpan>
here you can install modules (amongst other things). For example to install LWP::Bundle you would type:
Code:
install LWP::Bundle
and it will set off fetching, building and installing that module and any dependancies. 'install' is one of many available commands, type help for more info.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:33 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2