[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Math::Random for Mac?



On Mon, Feb 01, 1999 at 02:02:06PM -0500, kevin livingstone wrote:
} Hi-
} I need to generate some random numbers and permuted strings for an
} analysis. The Random.pm from CPAN looks like it will do the trick, but I
} can't seem to get it going under MacPerl (this could be due to my ignorance
} however). The syntax check spits out: # Can't find loadable object for
} module Math::Random. I could move over to Unix, but I'd like to stay on my
} Mac if possible. Has anyone got this module to work on a Mac or can you
} offer suggestions to get it working on the Mac?

Sounds like it's an .xs...  Yep, sure enough:

  CPAN.pm: Going to build JVENIER/MathRandom-0.6.tar.gz

Writing Makefile for Math::Random
mkdir blib
mkdir blib/lib
mkdir blib/lib/Math
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Math
mkdir blib/arch/auto/Math/Random
mkdir blib/lib/auto
mkdir blib/lib/auto/Math
mkdir blib/lib/auto/Math/Random
mkdir blib/man3
cp Random.pm blib/lib/Math/Random.pm
cp example.pl blib/lib/Math/example.pl
gcc -c  -I/usr/local/include -O    -DVERSION=\"0.60\" -DXS_VERSION=\"0.60\" -fPIC -I/usr/local/lib/perl5/5.00502/sun4-sunos/CORE  com.c

So if you really need this, it's time to buy a MacOS compiler if you
don't already have one and pay attention to the "how to build an XS"
thread.  Or maybe, if you're lucky, Chris or Arved or someone else
who can build XS will take pity.

} 
} TIA
} -kevin
} 
} 

-- 
Paul Schinder
schinder@pobox.com

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch