Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: FreeBSD Ports vs. CPAN

by include (Novice)
on Mar 16, 2005 at 17:18 UTC ( #440033=note: print w/replies, xml ) Need Help??

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

      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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://440033]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2022-01-22 05:31 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (61 votes). Check out past polls.