Professional Web Applications Themes

Unable to load module - PERL Modules

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 ...

  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. #2

    Default Re: Unable to load module


    [email]gpranotohotmail.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

  3. #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

  4. #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

  5. #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

Similar Threads

  1. #26129 [Opn->Bgs]: Unable to load dynamic module
    By sniper@php.net in forum PHP Development
    Replies: 0
    Last Post: November 5th, 05:32 AM
  2. #26129 [Opn]: Unable to load dynamic module
    By gman at speakeasy dot net in forum PHP Development
    Replies: 0
    Last Post: November 5th, 04:37 AM
  3. #26129 [NEW]: Unable to load dynamic module
    By gman at speakeasy dot net in forum PHP Development
    Replies: 0
    Last Post: November 5th, 04:03 AM
  4. #15229 [Com]: unable to load dynamic module
    By deadlysix at deadlysix dot com in forum PHP Development
    Replies: 0
    Last Post: October 3rd, 03:07 PM
  5. Can't load DBI module
    By RC in forum PERL Modules
    Replies: 3
    Last Post: July 30th, 01:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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