Perlfect Solutions
 

[Perlfect-search] Manual install headaches

Carl Johnson perlfect-search@perlfect.com
Thu, 11 Mar 2004 10:55:57 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_004D_01C40757.6ECE4EA0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have read the FAQs, searched the archives and am stuck.

My ISP does not offer SSH or Telnet, port 23 is blocked!  Bastids!  So =
that leaves me with FTP install.  Not to pick, but the README leaves out =
some vital steps.

Okay, my path is home/(user)/public_html/cgi-bin/search/, and I suspect =
that the fact that I did not use cgi-bin/Perfect/search/ as my path may =
be causing me some headaches.

In the search directory, I had to manaually create these sub =
directories: conf, data, temp, templates. I chmod to 755 each directory. =
 This step is not clear in the README, I figured it out by dissecting =
the setup.pl file.

After creating these sub directories, indexing appears to have worked =
without a hitch.  When I try to run search.pl, I get error 500.  All =
permissions are correct.  I uploaded in ASCII. I opened every Perl file =
and converted Dos>Unix (remove carriage returns) before uploading.

For troubleshooting, I uncommented this line in search.pl:
use CGI::Carp qw(fatalsToBrowser);

I get this error:
Software error:
Can't locate object method "new" via package "Perlfect::Template" =
(perhaps you forgot to load "Perlfect::Template"?) at search.pl line =
387.

In the setup.pl file I find these lines
install_dir($instdir."Perlfect", "0755");
install_file("Perlfect/Template.pm", $instdir."Perlfect/Template.pm", =
"0644");

Okay, so I create Perfect directory in search, chmod 755. I copy =
Template.pm to that directory, chmod to 644, and then to 755.  Still get =
error.

search.pl has these lines:
require Perlfect::Template;

my $template =3D new Perlfect::Template($file);

If I comment them out, get other errors.  Am I missing something here?  =
I am sure it is obvious, but after playing with this for 2 days, I am =
going buggy!




------=_NextPart_000_004D_01C40757.6ECE4EA0
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have read the FAQs, searched the =
archives and am=20
stuck.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My ISP does not offer SSH or Telnet, =
port 23 is=20
blocked!&nbsp; Bastids!&nbsp; So that leaves me with FTP install.&nbsp; =
Not to=20
pick, but the README leaves out some vital steps.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Okay, my path is=20
home/(user)/public_html/cgi-bin/search/, and I suspect that the fact =
that I did=20
not use cgi-bin/Perfect/search/ as my path may be causing me some=20
headaches.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In the search directory, I had to =
manaually create=20
these sub directories: conf, data, temp, templates. I chmod to 755 each=20
directory.&nbsp; This step is not clear in the README,&nbsp;I figured it =
out by=20
dissecting the setup.pl file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>After creating these sub directories, =
indexing=20
appears to have worked without a&nbsp;hitch.&nbsp; When I try to run =
search.pl,=20
I get error 500.&nbsp; All permissions are correct.&nbsp; I uploaded in =
ASCII. I=20
opened every Perl file and converted Dos&gt;Unix (remove carriage =
returns)=20
before uploading.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>For troubleshooting, I uncommented this =
line in=20
search.pl:</FONT></DIV>
<DIV><FONT color=3D#000080>
<P><FONT face=3DArial size=3D2>use</FONT></FONT><FONT face=3DArial =
size=3D2> CGI::Carp=20
qw(fatalsToBrowser);</FONT></P>
<P><FONT face=3DArial size=3D2>I get this error:<BR></FONT><FONT =
face=3DArial=20
size=3D2>Software error:<BR></FONT><FONT size=3D2><FONT =
face=3DArial>Can't locate=20
object method "new" via package "Perlfect::Template" (perhaps you forgot =
to load=20
"Perlfect::Template"?) at search.pl line 387.</FONT></FONT></P><FONT=20
size=3D2><FONT face=3DArial></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial>In the setup.pl file I find these =

lines</FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT =
size=3D2>install_dir($instdir."Perlfect",=20
"0755");</FONT></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT=20
size=3D2>install_file("Perlfect/Template.pm", =
$instdir."Perlfect/Template.pm",=20
"0644");</FONT></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT=20
size=3D2></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT size=3D2>Okay, so I create =
Perfect=20
directory in search, chmod 755. I copy Template.pm to that directory, =
chmod to=20
644, and then to 755.&nbsp; Still get error.</FONT></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT=20
size=3D2></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT size=3D2>search.pl has =
these=20
lines:<BR></FONT></FONT></FONT><FONT size=3D2><FONT face=3DArial><FONT =
size=3D2><FONT=20
color=3D#008000 size=3D2>require=20
Perlfect::Template;</FONT></FONT></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT size=3D2><FONT =
color=3D#008000=20
size=3D2></FONT></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial><FONT size=3D2><FONT =
color=3D#008000 size=3D2><FONT=20
size=3D2>
<P></FONT><FONT color=3D#000080 size=3D2>my</FONT><FONT size=3D2> =
$template =3D new=20
Perlfect::Template($file);</FONT></P>
<P><FONT size=3D2><FONT color=3D#000000>If I comment them out, get other =

errors.&nbsp; Am I missing something here?&nbsp; I am sure it is =
obvious, but=20
after playing with this for 2 days, I am going=20
buggy!</FONT></P></FONT></DIV></FONT></FONT></FONT>
<P><FONT face=3DArial></FONT><BR></P></FONT></BODY></HTML>

------=_NextPart_000_004D_01C40757.6ECE4EA0--