in reply to Re^4: can't locate crypt/RC4.pm in @inc
in thread can't locate crypt/RC4.pm in @inc

Of course, because you haven't got the prerequisite modules installed, which is why I suggested using cpan/cpanm. Simply copying files will not resolve the dependencies for you. If you are determined to ignore the advice of using one of the tools I previously mentioned, you'll need to manually install all of the prerequisites, and their prerequisites....

  • Comment on Re^5: can't locate crypt/RC4.pm in @inc

Replies are listed 'Best First'.
Re^6: can't locate crypt/RC4.pm in @inc
by ankit.tayal560 (Beadle) on Sep 07, 2016 at 12:44 UTC

    I also tried with cpan it showed me huge bunch of lines and at the end it showed me could not fetch modules?

      Unless you tell us what they are I can only guess, perhaps you need to configure the tool to be able to operate within your network. I've linked to the documentation for both suggestions earlier, which covers this aspect of their use. Most of my work is for clients with no internet access, for this I use a local mirror generated by minicpan. See also How do I post a question effectively?.

      Update: fixed typo

      Are you behind a proxy? Run:

      cpan

      Then at the prompt:

      o conf init /proxy/

      Follow the prompts. The format of the HTTP Proxy is http://proxy.example.com:PORT. Put https if your proxy is SSL-enabled, and you can use the proxy IP instead of a domain name if it doesn't have one.

      Continue through the prompts, then after you're done and back at the cpan command:

      o conf commit

      Then try cpan or cpanm again.