http://qs321.pair.com?node_id=175083

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

Fellow Monks,

The Environment:
The server is a W2K (with IIS turned off), running Apache instead, and ActiveState Perl 5.6.1 Also installed is CYGWIN (a Unix emmulator for Win environment) and Ispell, which works from the CYGWIN window on the server.

The Basic Problem:
I'm wanting to add a Spell Check feature to a web based perl app that my team is working on. Through much reading at PM and CPAN, I decided to work with Lingua::Ispell. Ispell only works in a Unix environment, so reading off of the Ispell web page on Windows, it informs the reader that you should install CYGWIN and then install Lingua::Ispell.

Attempts To Date:
Code:
#!/usr/bin/perl -w use strict; use Lingua::Ispell qw( :all ); use Data::Dumper; print "Content-type: text/html\n\n"; # W: is the server mapped on my local machine, which works. # When I switch drive letter to the server, it fails. $Lingua::Ispell::path = 'W:/utils/cygwin/usr/local/bin/ispell.exe'; my $checkString="Perl"; for my $results(spellcheck($checkString)){print Dumper($results);}
Comments:
My guess to this point is that there is some kind of path issue. When I specifically map the server to my local machine, I can run Ispell without issue. As soon as I switch the path back to the server and run the test script from the server I get the error: The system cannot find the path specified.

Any suggestions would be appreciated. TIA.

- Mission

Replies are listed 'Best First'.
Re: Ispell path for W2K (run Apache in Cygwin not in Win2k)
by ybiC (Prior) on Jun 17, 2002 at 23:09 UTC

    Looks like you need to run Apache from Cygwin, instead of in Win32.   Cygwin can run *nix daemons as Win services.   I've tinkered similarly with SSH daemon on Win2k with good results.

    You may see perf hit, but is the only way I know to give Apache access to the Cygwin layer.

    Feel free to /msg me if I can be of ((fur|o)ther|(any)) help.
        cheers,
        Don
        striving toward Perl Adept
        (it's pronounced "why-bick")
Re: Ispell path for W2K
by dda (Friar) on Jun 17, 2002 at 15:50 UTC
    Did you stop/start Apache on the server?

    --dda

      (oops...) I did forget that, (my bad) ++ for the catch. Thanks for reminding me of the simple fixes first though. I should have known better.

      However, it had no effect on the problem... any other ideas?

      - Mission
        Strange thing. I downloaded Ispell and perl module, installed everything on my W2K, and it doesn't work under Apache too. But it doesn't complain about a path. I just can't open web page with test script! Looks like Apache is unable to run a script that forks. Unfortunately, that's all so far..

        --dda

        P.S. Just noticed a lot of ispell.exe processes in the task manager. I think that I should reboot and repeat experiments. :(