Perlfect Solutions
 

[Perlfect-search] Invalid Argument error in search.cgi 3.20

will@perlcontractor.com will@perlcontractor.com
Thu, 29 Nov 2001 18:59:05 -0000
This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C17907.EB23ABC0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hello all,

apologies if this is a duplicate post. i first sent it over 24 hours ago =
and the first one still hasn't shown up so here it goes again:

i installed perlfect search 3.20 onto my windows 98 machine which i use =
for development and i had it it up and running perfectly in less than 15 =
minutes. i then tried to install it via telnet to my production server =
via a shell account on a Red Hat linux 6.2 machine. and i run into =
problems. before i installed perlfect onto the linux box i first checked =
that DB_File was there with:=20
=20
> perl -e 'use DB_File; print "DB_File ver $DB_File::VERSION\n"'
=20
and it shoots back, "DB_File ver  1.64".
=20
i checked for Berkeley DB with:
=20
> perl -e 'use DB_File; print "Berkeley DB ver $DB_File::db_version\n"'
=20
and it tells me, "Berkeley DB ver 2.4 ".=20

so i ran setup.pl remotely with no problem whatsoever. same with the =
indexer. it ran as smooth as you please. but when i call search.cgi from =
my html page it spits back at me this error:

> Cannot open =
/home/std1/wboyd/www.javafreelancer.com/cgi-bin/perlfect/search/data/inv_=
index: Invalid argument at =
/home/std1/wboyd/www.javafreelancer.com/cgi-bin/perlfect/search/search.cg=
i line 68
=20
line 68 of search.cgi has the following:=20
=20
> tie %inv_index_db, $db_package, $INV_INDEX_DB_FILE, O_RDONLY, 0755 or =
die "Cannot open $INV_INDEX_DB_FILE: $!";=20
=20
line 68 is followed by six or seven lines that look similar. Where is =
the invalid argument there? Please does anyone have any ideas? thanks in =
advance.=20

------=_NextPart_000_001B_01C17907.EB23ABC0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>hello all,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>apologies if this is a duplicate post. i first sent it over 24 =
hours ago=20
and the first one still hasn't shown up so here it goes again:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i installed perlfect search 3.20 onto =
my windows 98=20
machine&nbsp;which i use for development and i had it it up and running=20
perfectly in less than 15 minutes. i then tried to install it via telnet =
to my=20
production server via a shell account&nbsp;on a&nbsp;Red Hat =
linux&nbsp;6.2=20
machine. and i run into problems. before i installed perlfect onto the =
linux box=20
i first checked that&nbsp;DB_File was there with:&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; perl -e 'use DB_File; print =
"DB_File ver=20
$DB_File::VERSION\n"'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and it shoots back, "DB_File ver&nbsp;=20
1.64".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i checked for Berkeley DB =
with:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; perl -e 'use DB_File; print =
"Berkeley DB ver=20
$DB_File::db_version\n"'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and it tells me, "Berkeley DB ver 2.4 =
".=20
<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>so i ran setup.pl remotely with no =
problem=20
whatsoever. same with the indexer. it ran as&nbsp;smooth as you please. =
but when=20
i&nbsp;call search.cgi from my html page it spits back at me this=20
error:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D3><CODE>&gt; Cannot open=20
/home/std1/wboyd/www.javafreelancer.com/cgi-bin/perlfect/search/data/inv_=
index:=20
Invalid argument at=20
/home/std1/wboyd/www.javafreelancer.com/cgi-bin/perlfect/search/search.cg=
i line=20
68</CODE></FONT></DIV>
<DIV><FONT face=3DArial size=3D3><CODE></CODE></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D3><CODE>line 68 of search.cgi has the =
following:=20
</CODE></FONT></DIV>
<DIV><FONT face=3DArial size=3D3><CODE></CODE></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D3><CODE>&gt; tie %inv_index_db, =
$db_package,=20
$INV_INDEX_DB_FILE, O_RDONLY, 0755 or die "Cannot open =
$INV_INDEX_DB_FILE: $!";=20
</CODE></FONT></DIV>
<DIV><FONT face=3DArial size=3D3><CODE></CODE></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D3><CODE>line 68 is&nbsp;followed by six =
or seven=20
lines that look similar. Where is the invalid argument there? Please =
does anyone=20
have any&nbsp;ideas?&nbsp;thanks in advance.=20
</CODE></FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_001B_01C17907.EB23ABC0--