Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

XSLoader can't load Storable.dll

by louhevly (Novice)
on Feb 06, 2017 at 18:39 UTC ( [id://1181198]=perlquestion: print w/replies, xml ) Need Help??

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

Greetings oh wise ones:

I'm running the apache_1.3.41-win32-x86-src.msi on windows 10 using cygwin's Perl version v5.22.3. XSLoader and Storable are both up to date. My problem is that when I try to load Storable I get:

Can't load '/usr/home/louhevly/lib/perl5/5.22/x86_64-cygwin-threads/auto/Storable/Storable.dll' for module Storable: Permission denied at /usr/home/louhevly/lib/perl5/5.22/XSLoader.pm line 95.

The relevant part of my code is:

#!/usr/bin/perl -w BEGIN { open STDERR, ">/usr/home/louhevly/error.log" or die $!; use lib '/usr/home/louhevly/lib/perl5/5.22'; use lib '/usr/home/louhevly/lib/perl5/vendor_perl/5.22'; use lib '/usr/home/louhevly/lib/perl5/5.22/x86_64-cygwin-threads'; } use strict; use Data::Dumper; use Storable;

Data/Dumper's .dll loads fine from the same directory and with the same permissions

user:/usr/home/louhevly/lib/perl5/5.22/x86_64-cygwin-threads/auto $ ls -lR Data/ Storable/ Data/: total 0 drwxr-xr-x+ 1 user Ninguno 0 Jan 25 08:03 Dumper/ Data/Dumper: total 40 -rwxr-xr-x 1 user Ninguno 38419 Jan 15 13:54 Dumper.dll* Storable/: total 96 -rwxr-xr-x 1 user Ninguno 96275 Jan 15 13:55 Storable.dll*

I'm stumped (though I have a sneaking suspicion I'll be feeling like a pretty silly grasshopper when the light dawns). Thanks for listening.

Replies are listed 'Best First'.
Re: XSLoader can't load Storable.dll
by dave_the_m (Monsignor) on Feb 06, 2017 at 20:30 UTC
    You don't show the permissions of the two top-level directories themselves. I would suspect that there are bad permissions on the Storable/ direcory. What does this show:
    ls -ld Data/ Storable/

    Dave.

      Here you go:

      user:/usr/home/louhevly/lib/perl5/5.22/x86_64-cygwin-threads/auto $ ls -ld Data/ Storable/ drwxr-xr-x 1 user Ninguno 0 Jan 25 08:03 Data// drwxr-xr-x 1 user Ninguno 0 Jan 25 08:03 Storable//
        Well those permissions look fine. Have you tried running the script directly from the command line, or is it being invoked by apache?

        Dave.

Re: XSLoader can't load Storable.dll ( depends.exe )
by Anonymous Monk on Feb 07, 2017 at 22:23 UTC

      I downloaded depends.exe (http://www.dependencywalker.com/depends22_x86.zip) but it won't run from the command line (Win 10); it just hangs. The website says up to Win 8, so maybe it hasn't been developed for 10.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found