Yes -- the module directories are readable by all.

Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662



                                                                           
             "Timothy Johnson"                                             
             <[EMAIL PROTECTED]                                             
             kpoint.com>                                                To 
                                       "Ray Gebbie" <[EMAIL PROTECTED]>,  
             07/06/2006 12:49          <beginners@perl.org>                
             PM                                                         cc 
                                                                           
                                                                   Subject 
                                       RE: Errors with dynamic extensions  
                                       loading when running from jsp       
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Are you sure that the user the jsp is running under has permissions to
the module directory?

-----Original Message-----
From: Ray Gebbie [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 12:45 PM
To: beginners@perl.org
Subject: Errors with dynamic extensions loading when running from jsp


I have a pretty simple script that I am running on AIX 5.3 using
Perl 5.8.2. The script runs fine standalone, but when trying to run
it from a jsp running on a web site, I get the following:

ERROR: Can't load '/usr/opt/perl5/lib/5.8.2/aix-thread-
multi/auto/Socket/Socket.so' for module Socket: Bad address
at /usr/opt/perl5/lib/5.8.2/aix-thread-multi/XSLoader.pm line 68.
ERROR: at /usr/opt/perl5/lib/5.8.2/aix-thread-multi/Socket.pm line 399
ERROR: Compilation failed in require
at /usr/opt/perl5/lib/5.8.2/Net/FTP.pm line 17.
ERROR: BEGIN failed--compilation aborted
at /usr/opt/perl5/lib/5.8.2/Net/FTP.pm line 17.
ERROR: Compilation failed in require
at /www/a/scripts/list_approved_images.pl line 19.
ERROR: BEGIN failed--compilation aborted
at /www/a/scripts/list_approved_images.pl line 19.

Here are the first few lines of the script:
#!/usr/bin/perl

push(@INC, "/usr/opt/perl5/lib/5.8.2");

foreach $IN (@INC) {
        print "$IN\n";
}

$FTP_SERVER = "11.48.42.36";
$FTP_LOGIN = "federated\/\$da-MDCftpimages";
$FTP_PASSWORD = "3A!wyZ42eg";
$FTP_MODE = "b";

$FILDIR = "/Macys_Delivery/approved";

$DATE_TIME = `date +\"%y%m%d%H%M%S\"`;
chomp $DATE_TIME;

use Net::FTP;

I am assumming that I need to set something in the environment, but
I don't know what. I have not found any useful info in the
documentation or on this email list. If anyone can point me to more
info, or even give me a solution, it would be greatly appreciated.

Thank you.

Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to