[LON-CAPA-admin] 64 bit
Michael W Edwards
mwedward at uiuc.edu
Tue Oct 26 14:43:49 EDT 2004
Guy,
>-----Original Message-----
>From: lon-capa-admin-admin at mail.lon-capa.org
[mailto:lon-capa-admin-admin at mail.lon-capa.org] On Behalf Of Guy
Albertelli II
>Sent: Tuesday, October 26, 2004 12:11
>To: lon-capa-admin at mail.lon-capa.org
>Subject: Re: [LON-CAPA-admin] 64 bit
>
>Hi Mike,
>
>> - Modified distprobe with fake info so it would build Lon-Capa
>> correctly.
>
>If you get a chance, could you modify distprobe to output SuSE when it
detects that it is a SuSE machine, and I can modify
>locapafiles.lpml to do the right thing.
I was having problems even getting it to pickup my faked Fedora or Red
Hat install, so I just "edited" it out. I'll see what I can come up
with.
>
>> - Guy was nice enough to compile up an x86_64 version of tth.so for
me.
>
>You can get this from
>http://install.loncapa.org/resources/tth.so.x86_64.perl-5.8.3
>
>> - Hacked up lonnet.pm's setup_random_from_rndseed to reduce the 64bit
>> randoms I was getting into the range desired by
>> Math::Random::random_set_seed
>
>Can you send me these diffs?
Here's the error which led me to the changes for lonnet.pm:
[Fri Oct 15 15:05:37 2004] [error] Usage:
random_set_seed(@seed)\n at seed[0,1] must be two integers in the range
(1,1) to (2147483562,2147483398)\nand usually comes from a call to
random_get_seed() or\nrandom_seed_from_phrase($phrase). at
/home/httpd/lib/perl/Apache/lonnet.pm line 4899\n
Here's the diffs for lonnet.pm, very simple fix, I added the logthis
line to make sure things were behaving :
test-srv1:/src/loncapa-1.2.1/loncom/lonnet/perl # diff
/src/loncapa-1.2.1/loncom/lonnet/perl/lonnet.pm
/home/httpd/lib/perl/Apache/lonnet.pm
4898a4899,4906
>
########################################################################
#######
> #
> # added a mod by largest number requested to avoid my 64bit issues
:)
> #
>
########################################################################
#######
> $num1 = $num1 % 2147483562;
> $num2 = $num2 % 2147483398;
> &logthis("num1: $num1, num2: $num2");
Mike Edwards
ATLAS
University of Illinois Urbana Champaign
More information about the LON-CAPA-admin
mailing list