[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1036
  • Last Modified:

Using Term::Readkey on Windows

How can I install and use Term::Readkey module on the Windows XP?

I Copied it to the direcory c:\Perl\lib\Term

But when I run my programm ,I received an error:

Can't locate loadable object for module Term::ReadKey in @INC (@INC contains: C:
/Perl/lib C:/Perl/site/lib .) Compilation failed in require at 1.pl line 17.

this line mean use Term::ReadKey;

Maybe it doesn't work on windows ?
Thanks for help

0
Irina_dusha
Asked:
Irina_dusha
  • 3
  • 2
1 Solution
 
manav_mathurCommented:
your error is coming because it can;t find the proper file. The complete path of the file as required should be
C:/Perl/lib/Term/Readkey.pm
or
C:/Perl/site/lib/Term/Readkey.pm

how did you install the module??
0
 
manav_mathurCommented:
Also, visit

http://search.cpan.org/~jstowe/TermReadKey-2.30/ReadKey.pm

For method defined in the module, the page explains how they work in Windows environment
0
 
Irina_dushaAuthor Commented:

I just copyed to the C:/Perl/lib/Term this file ,but this is not help me ,the same error
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
manav_mathurCommented:
Can you give me the full pathname of the readkey.pm file as seen on your system?? i.e c:\perl\so\and\so\Term\readkey.pm
0
 
jmcgOwnerCommented:
The Term::ReadKey module is not pure perl; it contains a .xs file written C that must be compiled to connect Perl with the underlying terminal I/O system. You cannot install it by merely copying files.

On Windows, if you are using ActivePerl, you'd install Term::ReadKey by running a command like:

ppm install TermReadKey

to install the pre-compiled package.
0
 
Irina_dushaAuthor Commented:
Thanks ,jmcg
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now