From owner-freebsd-questions@FreeBSD.ORG Mon Dec 10 18:10:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C5E216A417 for ; Mon, 10 Dec 2007 18:10:31 +0000 (UTC) (envelope-from andy@xecu.net) Received: from mg5.xecu.net (mg5.xecu.net [216.127.136.199]) by mx1.freebsd.org (Postfix) with ESMTP id 76CEA13C43E for ; Mon, 10 Dec 2007 18:10:31 +0000 (UTC) (envelope-from andy@xecu.net) Received: from localhost (unknown [127.0.0.1]) by mg5.xecu.net (Postfix) with ESMTP id 1A5A7645B; Mon, 10 Dec 2007 13:10:23 -0500 (EST) X-Virus-Scanned: amavisd-new at xecu.net Received: from mg5.xecu.net ([127.0.0.1]) by localhost (mg5.xecu.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G-Vq8nMEw4Tg; Mon, 10 Dec 2007 13:10:14 -0500 (EST) Received: from shell.xecu.net (shell.xecu.net [216.127.136.216]) by mg5.xecu.net (Postfix) with ESMTP id DDE3863CA; Mon, 10 Dec 2007 13:10:14 -0500 (EST) Date: Mon, 10 Dec 2007 13:10:28 -0500 (EST) From: Andy Dills To: Jay Aikat In-Reply-To: <475D781D.8020707@email.unc.edu> Message-ID: <20071210130522.P48709@shell.xecu.net> References: <475D781D.8020707@email.unc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: math:random X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2007 18:10:31 -0000 On Mon, 10 Dec 2007, Jay Aikat wrote: > Hi, When I run a perl script that uses math:random, I get the > following: > > Can't locate Math/Random.pm in @INC (@INC contains: > /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach > /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl > /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at xyz.pl line > 46. > BEGIN failed--compilation aborted at xyz.pl line 46. > > This machine is a 4.10-RELEASE, with perl, version 5.005_03. But I am getting > this on several machines running different versions of FreeBSD with different > perl versions as well. > > How do I fix this? Searched online a lot, but no resolution. Thanks much for > any help on fixing this, You perhaps installed the module into the base perl distribution before installing the ports perl and doing a "use.perl ports", or perhaps you didn't install the module at all (Math::Random isn't part of the base perl distribution). cd /usr/ports/math/p5-Math-Random && make install Andy --- Andy Dills Xecunet, Inc. www.xecu.net 301-682-9972 ---