Unable to load module

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Unable to load module

    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

    gpranoto@hotmail.com Guest

  2. Similar Questions and Discussions

    1. #26129 [Opn->Bgs]: Unable to load dynamic module
      ID: 26129 Updated by: sniper@php.net Reported By: gman at speakeasy dot net -Status: Open +Status: ...
    2. #26129 [Opn]: Unable to load dynamic module
      ID: 26129 User updated by: gman at speakeasy dot net Reported By: gman at speakeasy dot net Status: Open Bug Type: ...
    3. #26129 [NEW]: Unable to load dynamic module
      From: gman at speakeasy dot net Operating system: WinXP Pro PHP version: 4.3.4 PHP Bug Type: Dynamic loading Bug...
    4. #15229 [Com]: unable to load dynamic module
      ID: 15229 Comment by: deadlysix at deadlysix dot com Reported By: dev at myesys dot com Status: Closed Bug...
    5. Can't load DBI module
      I used REdhat Linux 7.2 for PostgreSQL 7.1.3 database I installed DBI and DBD modules without problem. But when I test it by PER_DL_DEBUG=255...
  3. #2

    Default Re: Unable to load module


    [email]gpranoto@hotmail.com[/email] 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)?

    nobull@mail.com Guest

  4. #3

    Default Re: Unable to load module

    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

    Gerd Guest

  5. #4

    Default Re: Unable to load module

    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.

    nobull@mail.com Guest

  6. #5

    Default Re: Unable to load module

    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

    Gerd Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139