Re: [greenstone-users] Using a remote Greenstone for buildingcollections

From Stefan Boddie
DateWed, 30 Nov 2005 00:33:55 +1300
Subject Re: [greenstone-users] Using a remote Greenstone for buildingcollections
In-Reply-To (438C2B0E-8030805-argon7-be)
Hi,

Do you get a message like the following?

---
CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:

Can't locate Crypt/UnixCrypt.pm in @INC (@INC contains: C:/Perl/lib
C:/Perl/site/lib .) at
C:...gsdlcgi-bingliserver.pl line 7.
BEGIN failed--compilation aborted at C:...gsdlcgi-bingliserver.pl
line 7.
---

I just tried to run gliserver.pl under IIS5 and that's what I got. That
is, the UnixCrypt module was missing from my perl installation. I'm
using ActiveState's ActivePerl so I used their package manager to
install Crypt-UnixCrypt. That solved the first problem.

The next problem was that the script seemed to go into a loop and never
return when I ran it. I eventually found that it was configured to be
run from the command line, and was waiting forever for input from STDIN.
I'm not sure if this is just a problem with the CVS snapshot I have or
if it'll affect you too. If it does you should edit gliserver.pl and
replace the line near the top of the file that reads
my $gsdl_cgi = new gsdlCGI("+cmdline");
with
my $gsdl_cgi = new gsdlCGI();

Once I did that it seemed to run ok, and I could at least get it to
complain when I sent it bogus arguments in the URL. I'm not really sure
what gliserver is meant to do, so I haven't tested it any further than
that. Perhaps someone who knows more about it can help you out.

Regards,
Stefan.
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.co.nz
www.dlconsulting.co.nz


Argon7 List User wrote:

> hi stefan,
>
> i can access http://<mydomain>/gsdl/cgi-bin/library.exe without any
> problem.
> concerning the remote GLI, i've done all steps as explained in the doc
> (including modifying the path and restarting the windows server).
> now, i've applied your tip and renamed gliserver into gliserver.pl. it
> made a difference: no more "page not found"! but now i got a message:
> "CGI Error
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers."
> and i think that the webserver returns an error "502"...
> it seems to be something to do with the combination of IIS and perl
> cgi script...
> could anyone help me to solve this problem??? several employees of my
> client are waiting to be able to use the remove GLI...
>
> thanks and best regards,
>
> -- j:o)
>
> Stefan Boddie wrote:
>
>> Hi Jo,
>>
>> I don't know much about the gliserver script, but it's a perl script
>> and looks like it should run ok under Windows.
>>
>> Can you access http://<mydomain>/gsdl/cgi-bin/library.exe
>> successfully? If you can't there must be an error in your IIS
>> configuration, making gsdl/cgi-bin inaccessible. If you can then you
>> might try renaming gliserver to gliserver.pl, and pointing your
>> browser at http://<mydomain>/gsdl/cgi-bin/gliserver.pl. IIS sometimes
>> doesn't like files without extensions, in my experience.
>>
>> Regards,
>> Stefan.
>