Why Do I get Can't locate Module/Find.pm in @INC

Reed

Ok so I've been trying to get this source up to work for my game but after I install all of the modules I receive this error in my terminal.

PS C:\Users\NAME\desktop\Luna> perl Run.pm
Can't locate Module/Find.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at Run.pm line 8.
BEGIN failed--compilation aborted at Run.pm line 8.

I don't understand why i'm getting it

and here is line 8

use Module::Find;

Does anyone know why this is happening?

Sinan Ünür

This points out why it is important to understand a bit about using the computer one chooses to use. In this case, you have two Perl installations. In one, perl.exe lives in c:\perl64\bin (I am assuming that is ActivePerl). The other perl.exe lives in c:\strawberry\perl\bin. It seems you managed to install (possibly via a cpanm that only appears in c:\strawberry\perl\bin) Module::Find for Strawberry Perl.

Apparently, in your environment, c:\perl64\bin comes before c:\strawberry\perl\bin. Therefore, your perl Run.pm, you invoke the perl in that directory. Each installation has a number of default places where it looks for modules (you can list those using perl -V). ActiveState'sperl.exe` will not be looking for modules in Strawberry Perl's directories.

It is possible to have multiple Perl installations co-exist peacefully in Windows, but it becomes more complicated than necessary due to the shortcomings of tools that generate batch files that invoke installed Perl scripts. These tools just invoke perl as opposed to putting the full path to the perl.exe that was used to create the batch file.

Until that becomes the default, the easiest way I have found of dealing with this situation is designating one Perl distro as my default, and using a number of batch file and symbolic link tricks to switch between that and others.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can't locate Spreadsheet/ParseExcel.pm in @INC though it's seems to be installed

From Dev

Can't locate Config.pm in @INC

From Dev

git checkout --patch, but failed, Can't locate Git.pm in @INC

From Dev

Can't locate XML/XPath.pm in @INC

From Dev

Why do I get "Can't locate loadable object for module" even after installing the module?

From Dev

Perl Compilation Error: "Can't locate local/lib.pm"

From Dev

Can't locate Digest/MD5.pm directadmin

From Dev

Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module)

From Dev

Why can't I locate the Android SDK?

From Dev

Why can't I locate ProgressiveMediaSource?

From Dev

Where can I get nagoa+.inc

From Dev

Why can't I do List<Item>?

From Dev

Can't locate Email/Sender/Transport/SMTP/TLS.pm in @INC

From Dev

Perl, Can't locate Packet/UDP/Syslog.pm in @INC | custom modules

From Dev

Can't locate Moo.pm in @INC

From Dev

Can't locate Spreadsheet/ParseExcel.pm in @INC though it's seems to be installed

From Dev

Why can I not locate a button using XPath?

From Dev

Why can't 'locate' or 'find' find 'makeinfo'?

From Dev

Why can't I do ls -a 1>&-?

From Dev

TWM - Why can't I do anything?

From Dev

why I can't locate "_Alloc_traits" in STL source files with vim and ctags?

From Dev

Bugzilla 5.0 install on OpenShift - Can't locate parent.pm in @INC

From Dev

Can't locate Switch.pm in @INC in Ubuntu 16.04 LTS

From Dev

Can't locate File/Remote.pm in @INC (@INC contains:

From Dev

Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module)

From Dev

Can't locate IO/Pty.pm - but it is installed

From Dev

Can't locate the GET request

From Dev

Can't locate DBI.pm in @INC (you may need to install the DBI module)

From Dev

IOS Swift I can't get my real location from my app. I alway get the Apple Inc address

Related Related

  1. 1

    Can't locate Spreadsheet/ParseExcel.pm in @INC though it's seems to be installed

  2. 2

    Can't locate Config.pm in @INC

  3. 3

    git checkout --patch, but failed, Can't locate Git.pm in @INC

  4. 4

    Can't locate XML/XPath.pm in @INC

  5. 5

    Why do I get "Can't locate loadable object for module" even after installing the module?

  6. 6

    Perl Compilation Error: "Can't locate local/lib.pm"

  7. 7

    Can't locate Digest/MD5.pm directadmin

  8. 8

    Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module)

  9. 9

    Why can't I locate the Android SDK?

  10. 10

    Why can't I locate ProgressiveMediaSource?

  11. 11

    Where can I get nagoa+.inc

  12. 12

    Why can't I do List<Item>?

  13. 13

    Can't locate Email/Sender/Transport/SMTP/TLS.pm in @INC

  14. 14

    Perl, Can't locate Packet/UDP/Syslog.pm in @INC | custom modules

  15. 15

    Can't locate Moo.pm in @INC

  16. 16

    Can't locate Spreadsheet/ParseExcel.pm in @INC though it's seems to be installed

  17. 17

    Why can I not locate a button using XPath?

  18. 18

    Why can't 'locate' or 'find' find 'makeinfo'?

  19. 19

    Why can't I do ls -a 1>&-?

  20. 20

    TWM - Why can't I do anything?

  21. 21

    why I can't locate "_Alloc_traits" in STL source files with vim and ctags?

  22. 22

    Bugzilla 5.0 install on OpenShift - Can't locate parent.pm in @INC

  23. 23

    Can't locate Switch.pm in @INC in Ubuntu 16.04 LTS

  24. 24

    Can't locate File/Remote.pm in @INC (@INC contains:

  25. 25

    Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module)

  26. 26

    Can't locate IO/Pty.pm - but it is installed

  27. 27

    Can't locate the GET request

  28. 28

    Can't locate DBI.pm in @INC (you may need to install the DBI module)

  29. 29

    IOS Swift I can't get my real location from my app. I alway get the Apple Inc address

HotTag

Archive