Re: perl modules installation on OSX

2010-02-17 Thread Brian Friday

On Feb 16, 2010, at 10:29 AM, Noah wrote:

> what is the most recommended way to install perl modules on OSX? directly 
> from CPAN via perl or shall I install them from MACports?

Before you install anything you will need to make sure that you have Xcode 
installed as that includes all the tools needed for compiling software on OSX. 
Some CPAN modules may require libraries or headers that are not installed on 
your system and so you may need to install those yourself or get the libraries 
from http://opensource.apple.com.

If you will be using macports for other software, I would also stick with it 
for your perl modules. 

If you want to stick with a stock install of OSX, your not using macports and 
your using the perl Apple ships with the operating system I highly recommend 
using local::lib instead of installing modules directly into the system. This 
way the modules you use and the ones shipped with the OS and upgraded by Apple 
remain distinct. 

I have not found any drawbacks yet to using local::lib and you can install 
either the latest CPAN or CPANPLUS and use either version to maintain, install 
or upgrade your existing perl modules.

- Brian




Re: perl modules installation on OSX

2010-02-17 Thread David Cantrell
On Tue, Feb 16, 2010 at 04:17:40PM -0500, Daniel Staal wrote:

> As of perl 5.10 it is standard with perl, and the old cpan module/client
> has been depreciated.  The plan is to remove the old client altogether.

The only core modules that are deprecated are:

  Class::ISA
  Pod::Plainer
  Shell
  Switch

At least according to Module::CoreList.

-- 
David Cantrell | even more awesome than a panda-fur coat

Vegetarian: n: a person who, due to malnutrition caused by
  poor lifestyle choices, is eight times more likely to
  catch TB than a normal person


Re: perl modules installation on OSX

2010-02-16 Thread Daniel Staal

On Tue, February 16, 2010 2:35 pm, Noah wrote:
> Hi there,
>
> It was suggested that cpanplus is useful.   What are the pros and cons
> of cpanplus?

Basically, it's the next generation cpan client.  Most of the really big
advantages are if you decide to script it: It has a _much_ better, and
more flexible, API.  It's also cleaned up some of the cruft that's
migrated into cpan over the years, and organized it a bit better.

As of perl 5.10 it is standard with perl, and the old cpan module/client
has been depreciated.  The plan is to remove the old client altogether.

So, the biggest advantage at the moment is that you won't have to set up a
new client in a couple of years when cpan gets removed from the perl core.
 ;)

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---



Re: perl modules installation on OSX

2010-02-16 Thread Sherm Pendley
On Tue, Feb 16, 2010 at 1:29 PM, Noah  wrote:
>
> what is the most recommended way to install perl modules on OSX? directly
> from CPAN via perl or shall I install them from MACports?

It depends - how comfortable are you with building *nix software from
source? That is, can you understand the output of "make; make test"
and diagnose any problems that might crop up? If not, then
ActiveState's Perl & PPM might be a better choice for you.

Whatever you choose, you should use it and nothing else. Trying to
manage dependencies among multiple package managers is a nightmare.

sherm--

-- 
Cocoa programming in Perl:
http://www.camelbones.org


Re: perl modules installation on OSX

2010-02-16 Thread Noah

Hi there,

It was suggested that cpanplus is useful.   What are the pros and cons 
of cpanplus?


--- snip ---

I rely on cpanplus. I prefer it to cpan.
   http://search.cpan.org/dist/CPANPLUS/

 snip ---

Cheers,

Noah

Packy Anderson wrote:
Oh, decidedly via the CPAN shell.  Unless you don't have a compiler 
loaded on your system...


On Tue, Feb 16, 2010 at 1:29 PM, Noah > wrote:


Hi there,

what is the most recommended way to install perl modules on OSX?
directly from CPAN via perl or shall I install them from MACports?


Cheers,

Noah




--
Packy Anderson

Email:  packyander...@gmail.com 
GVoice: (646) 833-8832


Re: perl modules installation on OSX

2010-02-16 Thread Packy Anderson
Oh, decidedly via the CPAN shell.  Unless you don't have a compiler loaded
on your system...

On Tue, Feb 16, 2010 at 1:29 PM, Noah  wrote:

> Hi there,
>
> what is the most recommended way to install perl modules on OSX? directly
> from CPAN via perl or shall I install them from MACports?
>
>
> Cheers,
>
> Noah
>



-- 
Packy Anderson

Email:  packyander...@gmail.com
GVoice: (646) 833-8832