Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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

by LittleJack (Beadle)
on Aug 08, 2022 at 00:04 UTC ( #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/ 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?


Replies are listed 'Best First'.
Re: Strawberry Perl can't find a module installed at a non-standard location
by LanX (Sage) 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?

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
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-10-07 08:21 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (29 votes). Check out past polls.