I don't believe this to be the problem in my case. Under the Windows file system
the path to the scripts is
C:\cygwin\home\test\moses\moses\bin\moses-scripts\scripts-20080215-1500

As you can see there are no spaces. In any case bash when called from the
command line behaves nicely when the scripts are called with absolute paths.
Why should it behave differently just because bash is being invoked from a perl
script? My understanding was that programs called under cygwin can only see the
unix-type directory hierarchy under cygwin and that as far as any program
called is concerned the root directory of cygwin is the root directory of the
file system.

One thing I have noticed from the scripts is that commands like 'rm', 'mkdir'
etc. are called and executed without error. These executables can only be found
with the $PATH variable.

I wonder if using relative paths to the scripts or adding the path to the
scripts to the $PATH variable and calling the scripts by name would work?

I think it's worthwhile finding a workable fix for this that will make moses run
under Cygwin out-of-the-box for all users. 

Quoting John Henderson <[EMAIL PROTECTED]>:

> J C -
> 
>   I've had luck with this process, but it involved working in a
> directory without spaces in the path.  I make a /sandbox root-level
> dir in cygwin and work there.  It's very hard to get bash to play nice
> with paths with spaces in them.  The default home directories in XP
> usually have the "Documents and Settings" directory in them.  It
> causes trouble.
> 
> Hope this helps.
> 
> -John
> 
> 
> On Feb 18, 2008 9:02 AM, J C Read <[EMAIL PROTECTED]> wrote:
> > Using manually created output from step 3 of the training process I can
> confirm
> > that step 4 of the training script runs under Cygwin without any problems
> and
> > creates the two lexical files model/lex.0-0.f2n and model/lex.0-0.n2f
> >
> > Training step 5 runs partially but fails and, again, the finger of blame
> falls
> > on the safesystem calls in the extract_phrase function. Errors are similar
> to
> > those in step 3. The cygwin sh implementation doesn't seem to be able to
> find
> > these files with absolute paths when called through the perl system()
> > function.
> >
> > Don't really have any experience of working with perl under cygwin, so I'm
> not
> > sure why this is happening or how to fix it. But all experimentation seems
> to
> > point towards a default install of Moses working out-of-the-box under
> Cygwin if
> > we fix this minor issue.
> > _______________________________________________
> > Moses-support mailing list
> > [email protected]
> > http://mailman.mit.edu/mailman/listinfo/moses-support
> >
> 


_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to