Unable to load module
am 16.03.2006 06:00:52 von gpranoto
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/Es sbase/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
Re: Unable to load module
am 18.03.2006 18:23:57 von nobull67
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/Es sbase/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/Ess base/Essbase.so
(both the file and the directories)?
Re: Unable to load module
am 21.03.2006 04:47:22 von gpranoto
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
Re: Unable to load module
am 21.03.2006 18:42:25 von nobull67
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.
Re: Unable to load module
am 27.03.2006 07:39:03 von gpranoto
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