Forum Moderators: coopster & phranque

Message Too Old, No Replies

collective v3 and perl 5.6.0

syntax changed?

         

Cees

10:00 pm on Sep 11, 2000 (gmt 0)

10+ Year Member



I figured that some of you might need/want to know this.
Let me emphasize that I know very little about perl and stumbled on what I describe next by accident.
I have been trying to install collective v3 (and also v2) for a while and couldn't really get it to work on my redhat 6.2 box. Problems appeared to be connected to perl and module libwww (I couldn't figure out which rpm package to use). Yesterday I decided to remove the perl package and install latest version (5.6.0) by compiling from source.
This worked well and I installed Bundle::LWP (adds libwww) with cpan. Still, I couldn't get keyword analyzer to work. The other features probably didn't work either.
This was what now showed up in the apache error_log.

Can't locate object method "new" via package "LWP::UserAgent" at collective.lib line 340.

Line 340 of collective.lib reads:
my $ua = new LWP::UserAgent;

Looking at the perl 5.6.0 file UserAgent.pm I somehow got the impression that the syntax for this line should be
my $ua = LWP::UserAgent->new;

So, I changed line 340 in collective.lib and what do you know, it worked!! Looks like keyword analyzer and spider now work for me. Haven't checked the other features yet.

Brett, I think you have made a really nice collection of tools here. Keep up the good work. It's all much appreciated (And I get to learn a little perl as well)
Cees

Brett_Tabke

1:45 pm on Sep 12, 2000 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



>Can't locate object method "new" via package
>"LWP::UserAgent" at collective.lib line 340.

Can you run any other LWP programs ok?

Cees

9:14 pm on Sep 12, 2000 (gmt 0)

10+ Year Member



To answer your question. All the tests ran ok when I installled Bundle::LWP.
I don't know what happened but after a while collective key word analyzer and spider stopped working for me again even with my 'so-called fix'. (I told you I don't know anything about perl) I removed collectivev3. reinstalled it. And now it works.At least the kwa and spider anyway. It's all very confusing.
Looks as if whatever was causing the entry in error_log to appear has disappeared.
The thing that got me going on all of this is that no matter what I do I can not submit. I installed your latest engine.ini. Search-engines show up nicely. I tick the boxes and all I get is
Submission in progress ...
Submitting: [fake.com...]
Email used this url: J.doe@fake.com

Results Pages:

And then it gives me the main menu again. No entries in apache error log.

Any ideas?

littleman

1:15 am on Sep 13, 2000 (gmt 0)



Anyone know how long Bundle::LWP has been around? I've installed LWP and the support modules a half dozen times, it would have saved me some time.