Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

DynaLoader, Permission denied

by sschneid (Deacon)
on Jul 22, 2003 at 17:55 UTC ( [id://276848]=perlquestion: print w/replies, xml ) Need Help??

sschneid has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

I have a module that uses Term::ReadKey. I am attempting to execute it (as root), and get the following error:

Can't load '/usr/local/lib/perl5/site_perl/5.6.1/PA-RISC2.0/auto/Term/ +ReadKey/ReadKey.sl' for module Term::ReadKey: Permission denied at /u +sr/local/lib/perl5/5.6.1/PA-RISC2.0/DynaLoader.pm line 206.
Line 206 of DynaLoader.pm reads:
my $libref = dl_load_file($file, $module->dl_load_flags) or croak("Can't load '$file' for module $module: ".dl_error());
I'm a bit lost as to the cause of the error, as I have the same setup on several other systems and do not encounter any problems.

Any help would be appreciated.

-s.

Replies are listed 'Best First'.
Re: DynaLoader, Permission denied
by cbro (Pilgrim) on Jul 22, 2003 at 18:51 UTC
    Check this node out. It covers and suggests solutions to exactly what you are describing.
    I found this doing a Super Search for "DynaLoader Can't load Permission denied".
    Update: Even though you are running this as root, it may point you to a solution :o)
      I'd think so, but it's running as root, and is world-readable. Here's some more random-pasting-stuff:
      [root@parrot:~]$ perl -le 'use Term::ReadKey;' Can't load '/usr/local/lib/perl5/site_perl/5.6.1/PA-RISC2.0/auto/Term/ +ReadKey/ReadKey.sl' for module Term::ReadKey: Permission denied at /u +sr/local/lib/perl5/5.6.1/PA-RISC2.0/DynaLoader.pm line 206. at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. [root@parrot:~]$
      and...
      [root@parrot:~]$ ls -la //usr/local/lib/perl5/5.6.1/PA-RISC2.0/Dyn* -r--r--r-- 1 bin bin 27315 Feb 15 2002 //usr/local/ +lib/perl5/5.6.1/PA-RISC2.0/DynaLoader.pm [root@parrot:~]$ ls -la /usr/local/lib/perl5/site_perl/5.6.1/PA-RISC2. +0/auto/Term/ReadKey/*.sl -rw-rw-rw- 1 bin bin 45056 Feb 15 2002 /usr/local/l +ib/perl5/site_perl/5.6.1/PA-RISC2.0/auto/Term/ReadKey/ReadKey.sl [root@parrot:~]$
      It's an HP 11i box, if it matters. Thanks for your suggestion.

      -s.
        Replying to myself...

        Libraries (ReadKey.sl) on HP-UX (bleh) need to be executable. So just in case anyone else encounters this problem... :)

        -s.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://276848]
Approved by adrianh
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-28 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found