From owner-freebsd-questions Wed Feb 13 9:28:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from uk2.kanda-systems.net (uk2.kanda-systems.net [193.195.117.202]) by hub.freebsd.org (Postfix) with ESMTP id 5E16337B405 for ; Wed, 13 Feb 2002 09:28:18 -0800 (PST) Received: from localhost.kanda-systems.net (localhost.kanda-systems.net [127.0.0.1]) by uk2.kanda-systems.net (Postfix) with ESMTP id C95DB3C2A3; Wed, 13 Feb 2002 18:33:11 +0000 (GMT) Date: Wed, 13 Feb 2002 18:33:11 +0000 (GMT) From: Jason Taylor X-X-Sender: Reply-To: To: GB Cc: Subject: Re: CPAN, Perl modules and FreeBSD In-Reply-To: <002801c1b4ae$9ee2d6e0$6d01a8c0@CITYMOUSE> Message-ID: <20020213183029.C50421-100000@uk2.kanda-systems.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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