Click here to get back home

Unable to load module

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Unable to load module gpranoto 03-16-2006
Posted by gpranoto on March 16, 2006, 12:00 am
Please log in for more thread options


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


Posted by nobull@mail.com on March 18, 2006, 12:23 pm
Please log in for more thread options



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)?


Posted by Gerd on March 20, 2006, 10:47 pm
Please log in for more thread options


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


Posted by nobull@mail.com on March 21, 2006, 12:42 pm
Please log in for more thread options


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.


Posted by Gerd on March 27, 2006, 12:39 am
Please log in for more thread options


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


Similar ThreadsPosted
Which module should I use in order to load files over the internet? October 5, 2006, 3:38 pm
Looking for a base module that can automatically load sub modules June 27, 2007, 6:16 am
unable to connect to SuSE using net::ssh::perl module March 9, 2006, 10:23 pm
Cant load ...BerkeleyDB.so for module BerkeleyDB: libdb-4.4.so January 19, 2006, 1:53 pm
Encode::Guess load ISO-8859-1 March 27, 2006, 10:09 am
UNIVERSAL::can function failing under heavy load August 25, 2005, 11:56 am
download Modules from CPAN and then load into Perl Question October 15, 2004, 3:07 pm
Unable to connect a website using LWP February 23, 2006, 4:31 am
Perl unable to find modules August 12, 2004, 12:58 pm
Sockets - client unable to connect May 1, 2006, 5:28 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap