[LON-CAPA-admin] Perl Script Function "ln" supported?

Stefan Bisitz st.bisitz at ostfalia.de
Tue Nov 20 08:51:10 EST 2012

Hi Mark,

Thanks for your information.

I just talked to the LON-CAPA administrator of the domain where the 
issue occurred "here" for the first time. He confirmed the issue, as CC 
and AU. It's an Ubuntu Server with 64 Bit.

Sorry to ask again: Are you sure you don't get an error message in 
Construction Space? We get the error message on the other server and on 
our (development) server where the function doesn't work.
<script type="loncapa/perl">
$a = ln(0.05);
<startouttext />
a: $a
<endouttext />

I need to ask more:
Do you have evidence that these problems using ln() have ever worked on 
the machines where the error occurs now?

 From what we found in our debugging session yesterday (nothing...), we 
still wonder where and how this function is offered by LON-CAPA anyway.

I plan to file a bug report - especially if it can be confirmed that the 
function should work, used to work and doesn't work anymore.

Stefan Bisitz

Am 19.11.2012 20:51 schrieb Lucas, Mark:
> Stefan,
> I was just getting ready to ask about this. We had this pop up just last night.
> We had an instructor start getting 'bombs' on a problem that uses ln().
> It did not get caught in construction space.
> I just checked out a problem and I get the error messages on all our access
> servers when I log in as a student and check out problem, but I don't get the
> message on our library servers when I do the same thing. I also, as stated
> above, do not get the error message in construction space (necessarily in
> construction space).
> What is different about perl on the library servers? One of my library servers
> is 64-bit (Centos5.3) and the other is 32-bit (Centos 5.3).
> Mark
> On Nov 19, 2012, at 12:59 PM, Stefan Bisitz wrote:
>> Hi,
>> The perl script function "ln" (not "log" or "log10") seems to be
>> supported by LON-CAPA, but not officially. The Script Functions help
>> doesn't list it and it's not a perl function.
>> The issue:
>> Some LON-CAPA servers do not support "ln" and complain "Undefined
>> subroutine &main::ln ..." while others calculate the correct value.
>> So, why does it work on some servers? Should it work on all? If so, why
>> isn't it currently?
>> Any hints?
>> Thanks,
>> Stefan Bisitz
>> _______________________________________________
>> LON-CAPA-admin mailing list
>> LON-CAPA-admin at mail.lon-capa.org
>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin

More information about the LON-CAPA-admin mailing list