Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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:
  • Installed CYGWIN and Ispell locally. Ran Ispell from CYGWIN... success!
  • Installed Lingua::Ispell locally. Ran test script in Perl... success! (Getting confident now.)
  • Installed CYGWIN, Ispell, and Lingua::Ispell on the server. Ran Ispell from CYGWIN... success! (More confidence.)
  • Ran test script in Perl on the server... FAILURE. The system cannot find the path specified.
  • Mapped drive to the server. Ran the same code locally with path pointing to the server... Success! (Frustration set in.)
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

In reply to Ispell path for W2K by Mission

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-16 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found