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

Re: [MacPerl] Problem with Random module



>> Nonetheless, when I try to run the example.pl script, I get the error:
>>   
>> # Math/Random.pm did not return a true value.
>> File 'Data:MacPerl ü:Math-Random-0.6-bin-1-MacOS:example.pl'; Line 2
>> # BEGIN failed--compilation aborted.
>> File 'Data:MacPerl ü:Math-Random-0.6-bin-1-MacOS:example.pl'; Line 2
>> 
>> associated with the line:
>> 
>> use Math::Random qw(:all);
>> 
>> Since I've worked hard to follow all the directions I could find, I'm 
>> puzzled as to why I still can't get this thing to work!
>> 
>Since I built it for MacPerl I thought I'd better answer this one. :-)

I was hoping you might have time!  Unfortunately, I'm still stuck.  I did 
have to unstuff the MacBinary library again as you mentioned.  However, I 
still get the same error message from MacPerl.  My MacPerl f folder is on 
a disk partition called Data, so the path is:

Data:MacPerl f:site_perl

The files you describe below are all inside the site_perl folder, and I 
double checked to make sure that the path "Data:MacPerl f:site_perl" is 
listed in my search paths under Preferences.  I must have some unobvious 
thing slightly misset - if/when I find it, I'll let you know!  By the 
way, I also used BBEdit to make sure the files were in Mac text format, 
even though I did use your build from the beginning.

-Rick

>
>I just (in the last 10 minutes) downloaded, unpacked, installed and tested
>this bad boy, and it's OK, so what I'm thinking is that maybe you didn't
>put the shared library in the right place.
>
>This module will want you to put Random.pm into :site_perl:Math, assuming
>you have HD:MacPerl f:site_perl as one of your search paths (and you say
>you do), AND the shared library (appropriate to your platform) into either
>:site_perl:MacPPC:auto:Math:Random or
>:site_perl:MacCFM68K:auto:Math:Random.
>
>Note: this is somewhat confusing at first glance - the shared library
>called Random sits inside a folder called Random, whereas the PM file
>Random.pm is in a folder named Math.
>
>If you unpacked with Stuffit, be advised that the shared library is still
>a MacBinary and needs to be unstuffed itself.
>
>This should do it. Good luck. Arved


===================================================
Texas A&M University
Dept. of Geology & Geophysics
MS 3115
College Station, TX  77843-3115
Tel: 409 862 8653   Fax: 409 845 6162
===================================================



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org