From owner-freebsd-questions@FreeBSD.ORG Mon Dec 10 18:03:47 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 1338116A473 for ; Mon, 10 Dec 2007 18:03:47 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id DD90713C44B for ; Mon, 10 Dec 2007 18:03:46 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 6A4FF654FD for ; Mon, 10 Dec 2007 12:03:46 -0600 (CST) Date: Mon, 10 Dec 2007 12:03:46 -0600 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: <336C7F9E6C35AA130A674BCB@utd59514.utdallas.edu> In-Reply-To: <475D781D.8020707@email.unc.edu> References: <475D781D.8020707@email.unc.edu> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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:03:47 -0000 --On Monday, December 10, 2007 12:32:13 -0500 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 need to install the appropriate perl module - in this case Math::Random. FreeBSD ports contain many of the perl modules. Most are in the format p5-Foo-Bar. To find them, go to /usr/ports and type "make search key=Math-Random" (for example.) pauls@utd59514# ls /usr/ports/math/p5-Math-Random p5-Math-Random/ p5-Math-Random-MT/ p5-Math-Random-MT-Auto/ p5-Math-Random-OO/ p5-Math-RandomOrg/ So, cd to /usr/ports/math/p5-Math-Random, make install clean and your problem will be solved. -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/