----- Original Message ----- From: "Steve Chapel" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, December 02, 2007 12:01 PM
Subject: [Perldl] Problems with PDL::Gaussian


Hi,

When I run this program:

#!/usr/bin/perl
use strict;
use warnings;
use PDL;
use PDL::Gaussian;
my $x = new PDL::Gaussian([],[]);

using ActivePerl 5.8.8.820 and PDL 2.4.3 I get the following error:

Can't locate PDL/Slatec.pm in @INC (@INC contains: C:/Perl/site/lib
C:/Perl/lib .) at C:/Perl/site/lib/PDL/Gaussian.pm line 114, <DATA> line
206.
BEGIN failed--compilation aborted at C:/Perl/site/lib/PDL/Gaussian.pm line
114, <DATA> line 206.
Compilation failed in require at gaussian.pl line 5, <DATA> line 206.
BEGIN failed--compilation aborted at gaussian.pl line 5, <DATA> line 206.


Did you install using PPM ?

If so, you probably installed the PPM package available from the ActiveState repository. Unfortunately that build of PDL does no incorporate Slatec. There's a PPM package of PDL available from Randy Kobes' uwinnipeg repository that *does* incoroporate Slatec, so I would suggest installing it, instead:

ppm install http://theoryx5.uwinnipeg.ca/ppms/PDL.ppd

(You might first need to run 'ppm remove PDL'.)

Alternatively, if you install MinGW and dmake, you'll be able to build PDL from source (with ActiveState perl) -though there's probably not much to be gained by building from source, as opposed to using the uwinnipeg PPM package (except for the fun and the experience, of course :-)

Even if you do use the uwinnipeg PPM, there are still gains to be had from installing MinGW and dmake - in that various additional PDL capabilities will become available if MinGW and dmake are locatable (ie in your "path").

Cheers,
Rob

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to