[greenstone-users] Greenstone on Windows Server 2008 R2

From Michael Silver
DateTue Jun 15 10:33:36 2010
Subject [greenstone-users] Greenstone on Windows Server 2008 R2
In-Reply-To (AC6F23A2BA13C347A59BDCBCFF41E27B617D26AB20-UFEXCH-MBXCL03-ad-ufl-edu)

I found that the Windows command interpreter treats parantheses as
special characters. I fixed a similar problem by removing the entries in
my PATH that contained "Program Files (x86)". Unfortunately, it looks
like that's not going to work for you since perl is installed in that
folder. My suggestions would be to either install Greenstone in a folder
hierarchy that doesn't use special characters or change batch files to
point at the DOS-style folder name ("progra~2" on my Windows 7 machine).

This strikes me as an extraordinarily poor choice for a hierarchy name
on Microsoft's part. What's next, a folder hierarchy that includes a

On a related note, I found that entries in the PATH with the (x86)
screwed up the running of Greenstone even when the entries were not used
or needed by Greenstone. I fixed that problem using the following steps
below. Note that I'm not sure if that will help in your case, since
Greenstone itself is installed in that hierarchy.

1. Determine the current |PATH| by saving it in a text file.

a. Open a Command Prompt window.

b. Execute the command
|echo %PATH% > path.txt|

2. Edit the file by executing the command
|notepad path.txt|

3. Remove any entry that includes the |C:\Program Files (x86)\|
directory. Below, a is the original path, while b is the edited one.

a. (original) |C:\Windows\system32;C:\Windows;
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\;C:\Program Files (x86)\Common
Files\Lenovo;C:\Program Files (x86)\Common Files\Roxio
Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
Shared\DLLShared\;C:\Program Files (x86)\Lenovo\Access
Connections\;C:\Program Files (x86)\QuickTime\QTSystem\|

b. (modified) |C:\Windows\system32;C:\Windows;
Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\|

4. Copy the modified entry.

5. Enter a custom |PATH| in the /</|/GSDL Install Directory>/\setup.bat|

a. Open the file in Notepad.

b. Create new lines immediately under the line |GSDLLANG=en| (usually
around line 4) which read:
|# Set path to get rid of trouble entries
set PATH=/<paste modified path here>/|

c. Example (no carriage returns - although text will wrap, the line
beginning set PATH=... is one line):
|# Set path to get rid of trouble entries
set PATH=C:\Windows\system32;C:\Windows;
Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\|

Hope this helps...


On 13/06/2010 7:32 AM, Sullivan,Mark wrote:
> All,
> In installed java jdk on this server, and then installed Greenstone
> version 2.81 for Windows (32).
> I can launch Greenstone in the browser, but I am unable to launch the GLI.
> I gave myself FULL permissions over the Greenstone folder, files, and
> subfolders.
> When I try to launch the GLI either from the start menu or a command
> prompt, it tries to launch but fails. Error message is below.
> "Perl:
> C:\Program Files (x86)\Greenstone\bin\windows\perl\bin
> \Greenstone\bin\windows\search4j.exe was unexpected at this time."
> Is this an error that is documented? Any idea how to correct this?
> Mark Sullivan
> Systems Programmer
> University of Florida Libraries
> http://ufdcweb1.uflib.ufl.edu/ufdc/
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20100613/6ed1398b/attachment-0001.html