Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Strawberry Perl can't find a module installed at a non-standard location

by LittleJack (Beadle)
on Aug 08, 2022 at 00:04 UTC ( [id://11146013]=perlquestion: print w/replies, xml ) Need Help??

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

I need to test what happens when a module is installed at a non-standard location.

So I installed HTML::Template using:

cpanm -l "C:/Users/Me/SecretModules" HTML::Template

And installation was successful.

When I go to use it (from Eclipse), like this:

Package::DummyModule; use lib 'C:/Users/Me/SecretModules/lib/perl5'; use Text::HTML;

It says that it can't find the module:

Can't locate Text/HTML.pm in @INC (you may need to install the Text::H +TML module) (@INC contains: C:/Users/Me/SecretModules/lib/perl5/MSWin +32-x64-multi-thread [etc]

So I'm confused. The module is installed at C:/Users/Me/SecretModules/lib/perl5 and there's a packlist file in C:/Users/Me/SecretModules/lib/perl5/MSWin32-x64-multi-thread/auto — but why can't Strawberry Perl find the module? Why does it automatically append the multi-thread directory? Can I install in such a way that it's non-multi-thread compatible?

TIA

Replies are listed 'Best First'.
Re: Strawberry Perl can't find a module installed at a non-standard location
by LanX (Saint) on Aug 08, 2022 at 00:12 UTC

      Oh my god the shame. In my defence it's Monday morning where I am and I had not had my coffee.

      How do I deleted?!

      No seriously, thanks.

        "How do I deleted?!"

        Actually you don't. See "How do I change/delete my post?" for more about that.

        Don't worry too much about what you did. We've all probably done similar things at one time or another; I certainly have.

        — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-23 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found