Re: [greenstone-users] Failure to convert - no plugins work with web install, cygwin andActiveState preinstalled

From John R. McPherson
DateTue, 30 Sep 2003 12:23:01 +1200
Subject Re: [greenstone-users] Failure to convert - no plugins work with web install, cygwin andActiveState preinstalled
In-Reply-To (9F50F0D2A839B04D8487453945198D0701C50D20-zebdems1-zeb-de)
Rehker, Martin wrote:
> Hi,
>
> I installed greenstone on a system with the following characteristics:
> - apache pre-installed
> - cygwin installed
> - ActiveState perl installed (dominates over cygwin perl in the path)
> - greenstone web installation
>
> I can build collections both via the web interface and via GLI, but none
> of my
> files get parsed correctly. In the web interface I get errors like ...
>
> 030918Proposalsarehkerv001.doc: WordPlug failed to convert to HTML
> 111_03_de.pdf: PDFPlug failed to convert to HTML
> ...
>
> whereas GLI shows me some more detailed information:
>
> import.pl> Converting 1248234.pdf to HTML format
> import.pl> Unrecognized escape p passed through at C:Program
> Filesgsdlbinscript/gsConvert.pl line 644.
> import.pl> Can't spawn "c:/cygwin/usr/bin/bash.exe": No such file or
> directory at C:Program Filesgsdlbinscript/gsConvert.pl line 658.
>
> Two questions:
>
> - does anyone understands what is happening?
> - is there any way to switch on detailed debugging in the web-interface?
>
> I mentioned all the installed stuff, because I assume, that somehow the
> internal perl, cygwin and ActiveState perl are getting mixed up.

gsConvert.pl tries to run the command "perl -S pdftohtml.pl". The fact
that it is trying to use bash.exe to do the system("perl ....") suggests
that it is using the cygwin perl rather than the active state perl.
(The active state perl doesn't use bash.exe to do system() calls).

You didn't mention which operating system you are using, but in Windows
2000 at least, you can specify the path that programs use by
right-clicking on the "My Computer" icon, go to Properties, and then under
the "Advanced" tab there is an Environment Variables setting where you can
customise the path used by graphical applications.

John McPherson