Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

How can I make cpanm installed packages correctly

by logangha (Acolyte)
on Sep 14, 2022 at 17:58 UTC ( [id://11146881]=perlquestion: print w/replies, xml ) Need Help??

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

I used below command
cpanm Plack Twiggy Dancer Dancer::Plugin::WebSocket AnyEvent::Util
And when I try to run perl script with all these packages declared inside I get an error
D:\Perl>perl -c app.pl
Can't locate Dancer.pm in @INC (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at app.pl line 1. BEGIN failed--compilation aborted at app.pl line 1.
What configuration file I need to modify to include path where cpanm is installing these packages?

  • Comment on How can I make cpanm installed packages correctly

Replies are listed 'Best First'.
Re: How can I make cpanm installed packages correctly
by swl (Parson) on Sep 14, 2022 at 21:50 UTC

    Do you have more than one perl on your system? And if so are perl.exe and cpanm from the same directory?

    where perl where cpanm

    Both perl.exe and cpanm (and cpanm.bat) should be in the same bin directory, presumably C:/strawberry/perl/bin on your system.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-16 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found