in reply to Re: Customary Perl setup on Apple Mac OS X?
in thread Customary Perl setup on Apple Mac OS X?

OS X is not like that anymore so Fink is just another level of code management to the things you want

So, when building your own software, where do you install to? That is to say, what do you use for your "--prefix" when you "./configure" it?

Then it's just a matter of running cpan from the shell and switching to cpanp from there if you prefer.

Into which directory will modules be installed using that method?

  • Comment on Re^2: Customary Perl setup on Apple Mac OS X?

Replies are listed 'Best First'.
Re^3: Customary Perl setup on Apple Mac OS X?
by Your Mother (Archbishop) on Aug 05, 2008 at 06:02 UTC

    The great thing is I don't know the answer and I don't have to care. It just works. I have 5.10 on this thing. I left the default install in place and just made /usr/bin/perl point to my new perl. The perl installation walks you through that question/setting.

    moo@cow[50]~>sl /usr/bin/perl lrwxr-xr-x 1 root wheel 25 Mar 23 10:53 /usr/bin/perl@ -> /usr/loc +al/bin/perl5.10.0

    I can check various critters with perldoc -l but I've never once had to set up anything special for paths except the symlink for the new perl. That's the joy of root. If you don't do it as root, there are some great posts here about local CPAN installs. Here are a couple of examples of locations on this box but I had no idea where they'd be before checking-

    moo@cow[51]~>pd -l Storable /usr/local/lib/perl5/5.10.0/darwin-2level/Storable.pm moo@cow[52]~>pd -l Catalyst /usr/local/lib/perl5/site_perl/5.10.0/Catalyst.pm
      I'm timid about messing with my mac's system files, so I've "opted" for a local, non-root install of my cpan library. I'd like to update to 5.10 however. Is there no reason to be concerned about symlinking to a local perl install? What is the best alternative to a symlink?

        If you don't link to the other perl you just have to call it from your scripts instead so-

        #!/usr/bin/perl

        becomes-

        #!/usr/local/bin/perl
        moo@cow[58]~>/usr/local/bin/perl -v This is perl, v5.10.0 built for darwin-2level...

        Or /opt/ or wherever you put it. I think. If I'm wrong someone will likely correct me. In the sysadmins and masochists I mentioned before, I'm pretty solidly in the second set. :)