http://www.perlmonks.org?node_id=624984


in reply to Reinstalling perl from scratch on OS X

I've installed a separate perl using macports and haven't had any problems installing from CPAN. Once macports is installed all you gotta do is sudo port install perl. You can also sudo port search perl to see what perl related software is available to you via ports.

Has anyone else had good/bad experiences with the port system?



-silent11

Replies are listed 'Best First'.
Re^2: Reinstalling perl from scratch on OS X
by halley (Prior) on Jul 05, 2007 at 17:47 UTC
    My only beef with the port system, which is not particular to macports, but to any packaging manager, is how you manage the multiple libraries of available modules. If you use port, you should probably use it for common modules too (and there are many, like p5-www-mechanize).

    If it's not on the macports list (and there are many), then it feels ugly to try to use CPAN to manage a second packaging layer on top of that, and not know whether the module you're requesting will end up building a constellation of modules that are unproven on your platform.

    The last alternative is to go through the dependency hell yourself in your own local PERLLIB directory, which is only slightly more unsavory and has the same pitfalls.

    When I did more development on Red Hat Linux, the same deal applied to their repository, but I got familiar with how to repackage most CPAN modules with cpanflute at the time, so I could at least work with one installation library path. With macports, I'm not familiar with this route: how to make a port file for a CPAN module, so it would install safely in the same tree with other port-installed p5-* modules.

    --
    [ e d @ h a l l e y . c c ]