Gossamer Forum
Home : Products : Gossamer Links : Discussions :

windows install not working: setup.cgi fails

Quote Reply
windows install not working: setup.cgi fails
Just tried to install our new Links SQL (2001-08-14) on Windows 98 so we can do the offline development work. Did the first bit (install.cgi) OK from the command line, but when I switched (as instructed) to admin.cgi, that was the end.

Admin.cgi brings up a page with a box with a submit button (label value = Next>>), but when clicked, it opens a blank page. Nothing between <BODY> and </BODY>

The code in the first admin page contains this form ...
Code:
<form method="POST" action="setup.cgi">
<input type=hidden name="prefix" value="">
<input type="hidden" name="password" value="">
<input type="hidden" name="login" value="">
<input type="hidden" name="database" value="links">
<input type="hidden" name="host" value="localhost">
<input type="hidden" name="server" value="mysql">
<input type="hidden" name="page" value="setup_second.html">
<input type="hidden" name="do" value="page">
...
...
<input type="submit" value="Next &gt;&gt;">
...
</form>

Looks like setup.cgi does not know how to respond.
I'm stuck. I need to do this offline work today.
This must have happened to other people -- what did you do to get setup.cgi to work?

Quote Reply
Re: [YoYoYoYo] windows install not working: setup.cgi fails In reply to
Hi,

Very strange, I've only ever seen this on very old betas of Links SQL 2. Try changing in admin/templates/admin/setup_first.html:

<form method="POST" action="setup.cgi">

to:

<form method="GET" action="setup.cgi">

and see if it makes a difference.

What web server are you using, and what version of perl?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] windows install not working: setup.cgi fails In reply to
No. Just the same blank page.

Here is the GET string
Code:
http:/localhost/cgi-bin/dir/admin/setup.cgi?
prefix=&password=&login=&database=links&host=localhost&server=mysql&page=setup_second.html&do=page

(I put in the break after ? to make it more legible).

Server: Xitami v2.4d6
Perl: 5.005_03, ActiveState Binary build 519 (Aug 12 1999)

Quote Reply
Re: [Alex] windows install not working: setup.cgi fails In reply to
OK. Here is a clue from the Xitami cgierr.log
Code:
Can't locate DBI.pm in @INC (@INC contains: C:/<PATH>/cgi-bin/dir/admin C:/Perl/lib C:/Perl/site/lib .) at C:/<PATH>/cgi-bin/dir/admin/GT/SQL/Driver.pm line 20.
BEGIN failed--compilation aborted at C:/<PATH>/cgi-bin/dir/admin/GT/SQL/Driver.pm line 20.
BEGIN failed--compilation aborted at C:/<PATH>/cgi-bin/dir/admin/GT/SQL.pm line 20.
BEGIN failed--compilation aborted at c:\<PATH>\cgi-bin\dir\admin\setup.cgi line 18.

where I have substituted <PATH> for part of the actual (and correct) path.


Quote Reply
Re: [YoYoYoYo] windows install not working: setup.cgi fails In reply to
Ok. So dbi.pm is missing.
There is some info on this in http://www.gossamer-threads.com/...orum.cgi?post=140356
Quote:
On windows you need to use ActiveStates ppm tool:
ppm install DBI
and then
ppm install DBD::mysql
ppm install DBI was successful, but ppm install DBD::mysql returned this error:
Code:
Error installing package 'DBD::mysql': Could not locate a PPD file for package DBD::mysql


--

Quote Reply
Re: [YoYoYoYo] windows install not working: setup.cgi fails In reply to
Try ppm install DBD
Quote Reply
Happy Ending In reply to
Downloaded and re-installed latest Xitami, Activestate Perl, DBI and DBD. Everything OK now. Thanks for help.