Re: math:random

2007-12-10 Thread Paul Schmehl
--On Monday, December 10, 2007 12:32:13 -0500 Jay Aikat 
[EMAIL PROTECTED] 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.)


[EMAIL PROTECTED] 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 ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: math:random

2007-12-10 Thread Andy Dills
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
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: math:random

2007-12-10 Thread Warren Block

On Mon, 10 Dec 2007, Paul Schmehl wrote:


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.)


If you know the name, whereis is less work:

% whereis p5-Math-Random
p5-Math-Random: /usr/ports/math/p5-Math-Random

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]