Re: How to update perl on FreeBSD 4.9R

From: Paul Schmehl (pauls_at_utdallas.edu)
Date: 10/09/04

  • Next message: Bill Moran: "Re: resolv.conf missing"
    Date: Fri, 08 Oct 2004 17:24:11 -0500
    To: Danny <nocmonkey@gmail.com>, David Jenkins <david.jenkins@gmail.com>
    
    

    --On Friday, October 08, 2004 04:40:40 PM -0400 Danny <nocmonkey@gmail.com>
    wrote:
    >
    > mx1# use.perl port Makefile.PL
    > Usage:
    > /usr/local/bin/use.perl port -> /usr/bin/perl is the perl5 port
    > /usr/local/bin/use.perl system -> /usr/bin/perl is the system perl
    > mx1#
    >
    > "port" as in the name of the port you are using? I have never really
    > worked with perl before.
    >
    Are you familiar with the FreeBSD ports system? FreeBSD installs perl in
    the base system, but there is also a version of perl in the ports. The
    ports version is much newer than the system version, and for what you want,
    you would want the port version of perl.

    However, I would *not* install a CPAN module in FreeBSD. I would use the
    ports system to install the module as well. You can use "locate" to find
    the port you need.

    > I am following the instructions here:
    > http://www.cpan.org/modules/INSTALL.html
    >
    > Specifically at this step:
    >
    > perl Makefile.PL
    >
    > in my case, I would do use.perl port Makefile.pl? Or use.perl Makefile.pl?
    >
    No. *After* you install the port of perl from the FreeBSD ports system
    (/usr/ports/lang/perl5.8), *then* you run "use.perl port" from the CLI.
    This has *nothing* to do with installing a CPAN module. This is how you
    update perl on your system to a newer version than the base, system version.

    > Either way, I have tried both, and I get:
    >
    > mx1# /usr/local/bin/use.perl Makefile.PL
    > Usage:
    > /usr/local/bin/use.perl port -> /usr/bin/perl is the perl5 port
    > /usr/local/bin/use.perl system -> /usr/bin/perl is the system perl
    > mx1#
    >
    If you understand usage statements, this one is telling you the commands
    that are available for the use.perl script - port and system. If you want
    to use the ports version of perl, you type use.perl port. If you want to
    use the system version of perl, you type use.perl system ***at the
    commandline***. This has *nothing* to do with CPAN modules.

    However, once you've installed the ports version of perl, I would use the
    ports version of CPAN modules as well. You will have much less trouble
    that way.

    However, it's beginning to look like you have a lot of reading to do before
    you'll understand what I'm talking about.

    Paul Schmehl (pauls@utdallas.edu)
    Adjunct Information Security Officer
    The University of Texas at Dallas
    AVIEN Founding Member
    http://www.utdallas.edu
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Bill Moran: "Re: resolv.conf missing"

    Relevant Pages

    • Re: help with grep looking for cats and dogs
      ... >others would commonly do with perl one-liners. ... Actually perl is still in the base system. ... the perl scripts needed to install and/or compile and install ... I've had to go back to the base system for some ports when making ...
      (comp.unix.sco.misc)
    • Re: mod_perl HELP!
      ... >> Don't link stuff like perl unless you know what you are doing. ... That takes a while with over 200 ports. ... or you had it when you tried to install mod_perl? ... > instead of bsdpan modules to replace them and if so how to remove the ...
      (freebsd-questions)
    • Re: how to build Spamassassin
      ... The ports collection is great for certain things. ... it for spam assassin on 4.9 Stable. ... Install Perl 5.8.2 from ports ... Install Spam assassin from ports ...
      (freebsd-questions)
    • Re: upgrading perl
      ... If you want to switch to the ports version of perl, ... You can also install all the CPAN modules using the base system, ...
      (freebsd-questions)
    • Re: Updating Ports Index
      ... I installed perl, so I'm no longer getting the 'perl: ... >Subject: Updating Ports Index ... >For some reason, I can't seem to update the index for the ports database: ... >was a minimal install, do I need to install something else for the 'make ...
      (freebsd-questions)