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


in reply to FreeBSD Ports vs. CPAN

Hello All,,
I run various FreeBSD systems 4.X and 5.X since a couple of years and ever installed all perl modules via ports collection without any problem.
I just remember for all kind of port install ou upgrade, its great to have a look to /usr/ports/UPDATING, this simple text file gets updated every cvsup(date) and can help prevent mutch problems even in upgrading Perl, i remember this one:

20050201: AFFECTS: users of lang/perl5 and lang/perl5.8 ... (with the instructions to update)

Now as perlfan says "... but would forget to run the "use.perl port" command to tell the system that the new Perl is now located in /usr/local ..."

this only appens if you install the Perl package in the instalation of FreeBSD, and get a 5.6.2 installed,, in my case i step away this to install it later via ports (lang/Perl5.8) and everything runs automaticaly.

I think it's nice to say too i run Perl 5.8.6 under Jails running mod_perl / Mason / Bricolage and friends :D

To finalize, my practise is to have a ports collection up-to-date and always read the UPDATING.

Just my 2 cents; got for it via ports :D

Replies are listed 'Best First'.
Re^2: FreeBSD Ports vs. CPAN
by samizdat (Vicar) on Mar 16, 2005 at 17:49 UTC
    Thank you all for the insights! I do have BSDPAN riding herd, though it doesn't seem to tickle the package listing correctly ("no origin recorded"). I don't check UPDATING as often as I should, though I CVSup fairly regularly. Thanks for the tweak!!!
      There are many tips to fix your database of instaled ports/packages, lets rock.
      (that message i think he is saying you dont have Perl installed via ports)

      a very nice app to help you maintainning the installed ports is sysutils/portupgrade. just:
      #cd /usr/ports/sysutils/portupgrade ; make install clean ; rehash ; portversion | grep '<'
      (read UPDATING) and then
      #portupgrade -aR
      finaly fix the database
      #pkgdb -Fu

      #pkg_info perl-5\* | more
      (#ls -l /var/db/pkg/perl*)
      and you can see if you have Perl installed by ports/packages.
      if you have Perl installed but want to force a reinstall, do:
      #cd /usr/ports/lang/perl5.8 ; make FORCE_PKG_REGISTER=yes install
      read the last output normaly the file pkg_desc or message is outputed in he end of the instalation of any port. i recomend you take a look at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

      if you get loss just come to #FreeBSD @freenode.

      god PIP :) (port install party)
        Coolio, but I've gotten myself into portupgrade hell several times. It wants to rebuild everything for every port. :-( I think on a machine that you run it consistently on and follow through with, everything should be copacetic.

        Thanks for the tips though. I have a machine that is fairly clean now, so it should be doable.
        Two additions to your portupgrade sequence, for the benefit of others:
        • add FORCE_PKG_REGISTER=yes to the make install clean
        • rehash only exists as a builtin in csh

        It's chuffing away now... :D