For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > March 2006 > Unable to load module









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Unable to load module
gpranoto@hotmail.com

2006-03-16, 3:56 am

Hi,

I had to do a workaround during installation of a Perl module. Since
the client's machine does not permit installation of a C compiler, I
had to compile the module on another machine running the same OS and
Perl. I copied the pm file and directory under lib and auto. This
method seems to work. However it works only for the user who is the
owner of the *.pm and module directory under auto. When trying to run
a script using the module as a different user it gave me this error

Can't load
'/usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Essbase/Essbase.so'
for module Essbase: The file access permissions do not allow the
specified action. at
/usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line 229.
at test_scb.pl line 27
Compilation failed in require at test_scb.pl line 27.
BEGIN failed--compilation aborted at test_scb.pl line 27.

Has anyone seen anything similar to this?

Regards,
Gerd

nobull@mail.com

2006-03-18, 9:55 pm


gpranoto@hotmail.com wrote:

> [...] it works only for the user who is the
> owner of the *.pm and module directory under auto. When trying to run
> a script using the module as a different user it gave me this error
>
> Can't load
> '/usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Essbase/Essbase.so'
> for module Essbase: The file access permissions do not allow the
> specified action. at
> /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line 229.
> at test_scb.pl line 27


If you'll excuse the blindingly obvious, have you checked the
permissions on
/usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/Essbase/Essbase.so
(both the file and the directories)?

Gerd

2006-03-20, 9:55 pm

Yes. Actually those are the first things I checked. Changed file and
directory permissions to 777. The error above came up after I changed
the permissions.

Gerd

nobull@mail.com

2006-03-21, 9:58 pm

Gerd wrote:

> Yes. Actually those are the first things I checked.


What things? Please quote sufficient contrext.

> Changed file and
> directory permissions to 777. The error above came up after I changed
> the permissions.


This may be some weird AIX security thing. Perhaps it refuses to
execute globally writable files.

Gerd

2006-03-27, 3:57 am

Hi,

We finally solved the problem. You were right, it was due to
permissions. We overlooked the permission of some of the libraries not
located under perl. Once set to 755, it started working. Thanks for
your replies.

Regards,
Gerd

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com