Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2002 18:33:11 +0000 (GMT)
From:      Jason Taylor <jason@kanda.com>
To:        GB <gregbrooks@blue-mouse.com>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: CPAN, Perl modules and FreeBSD
Message-ID:  <20020213183029.C50421-100000@uk2.kanda-systems.net>
In-Reply-To: <002801c1b4ae$9ee2d6e0$6d01a8c0@CITYMOUSE>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Feb 2002, GB wrote:

> Folks, a quick question:
>
> Problem: Using CPAN's install functionality messes up Perl.
>
> Background: In trying to prepare my box for WebGUI
> (www.plainblack.com/index.pl/webgui), I need to install several Perl
> modules. When installing them via CPAN using:
>
> # perl -MCPAN -e shell
> # install foo
> # install foo2
> (etcetera)
>
> one or more installs will inevitably begin downloading Perl 5.6.x, even
> when it's installed on the machine, AND even when I've indicated that
> CPAN should ask before installing dependencies.
>
> I've tried letting CPAN autoconfigure, as well as configuring manually.
>
> Specific questions:
>
> * Should I just skip -MCPAN and instead download tarballs that I would
> decompress/make/make test/make install? (Likely answer: Yes, but I want
> to know what's breaking the auto-install if at all possible.)
>
> * What version of Perl is installed as part of the standard 4.5-RELEASE?
>
> * Should I generally stick with the 4.5-installed version of Perl, or
> upgrade to the 5.6.x version in the ports tree? If I'm upgrading, how
> would I deinstall the original Perl installation? (It doesn't seem to be
> a pkg, but I may be missing something).

I'm in exactly the same situation as you.  The base perl system is
5.005_03

If you want to upgrade do what I just done, build & install from ports
then run:

use.perl port

This selects the version of perl installed from ports.

so perl -v = This is perl, v5.6.1 built for i386-freebsd

To switch back to the base perl use:

use.perl system

perl -v = This is perl, version 5.005_03 built for i386-freebsd

Very clever!!

Jason



>
> Grateful in advance,
> Greg
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020213183029.C50421-100000>