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

Hi,

I am getting the following error while running my perl file on windows box

Can't locate loadable object for module IO::Tty in @INC (@INC contains + : : C:/MySoftwares/Perl/lib C:/MySoftwares/Perl/site/lib .) at C:/My +Softwares/Perl/site/lib/IO/Tty.pm line 29.
What have I missed out while installing Tty module? Is there any correction that can be done now or do I need to re-install the Tty module again? How ever I had got an error while installing Tty module. I followed the instruction on the net indicating to use /I option with nmake and that didn't throw any error. Not sure that is causing the problem..

Any help would be greatly appreciated.. I am really struck with my work due to this..

Thanking in advance..

Replies are listed 'Best First'.
Re: Getting error while running file
by Joost (Canon) on Jun 01, 2006 at 14:49 UTC
    Looks like you didn't correctly install the compiled C part of the library. Note that the documentation of IO::Tty says you need the cygwin environment to run it. I'm not sure if that means it'll only work on cygwin's perl, though. In any case, you probably need to install cygwin.

    If you're using ActiveState perl, you might be able to install a pre-compiled version of the module by using the "ppm" command.

    If you have a cygwin perl version, you should be able to use cygwin's gcc and make (NOT nmake!) to install the module as under Unix:

    > perl Makefile.PL > make > make test > make install
Re: Getting error while running file
by davorg (Chancellor) on Jun 01, 2006 at 14:53 UTC

    This is almost certainly a result of the error you got when attempting to install IO::Tty. If you told us what the error was then we might be able to be a bit more help.

    Are you using ActivePerl? If you are, then you'll generally find it a lot easier if you install Perl modules using PPM.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      Hi, I am using Active Perl Windows. I could not find exact steps to install Tty module using ppm commands.. Could you please let me know the steps how to use these commands? Where should the module extract IO-Tty-1.02 folder be placed to run ppm commands for installing Tty module? What do we refer here as a package - the extracted folder or the zipped file?? Thanks.

        Well, I'm not the best person to answer this question as I never use ActiveState or ppm. But as I understand it, you don't need the CPAN download in order to install a ppm module, you simply type ppm at the command line and then install IO::Tty at the ppm prompt. ppm will then go and get everything it needs from the Activestate module repository.

        You can get more information about ppm on the Activestate web site.

        Update: It seems from the other discussion that you started on this subject that IO::Tty isn't available from ppm.

        --
        <http://dave.org.uk>

        "The first rule of Perl club is you do not talk about Perl club."
        -- Chip Salzenberg

Re: Getting error while running file
by gellyfish (Monsignor) on Jun 02, 2006 at 09:34 UTC

    The module IO::Tty will not work on Windows. As the README says:

    Sorry, ActiveState Perl on Windows is not supported, basically because there are no pseudo-terminals under Windows.

    /J\