I'm sorry if this is a little off-base here, I am trying to install SA plugin SpamCopURI but kept getting errors as shown below, one error indicates 'Can't locate URI/QueryParam.pm' but I already copied the file to /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/
Any input would be appreciated. Thanks.
#perl Makefile.PL # SAPATH /usr/lib/perl5/site_perl/5.8.0 # installsitelib /usr/lib/perl5/site_perl/5.8.0 # INSTALLDIRS site Warning: prerequisite Net::DNS 0 not found. Warning: prerequisite URI 1.28 not found. We have 1.21. Writing Makefile for Mail::SpamAssassin::SpamCopURI
#make Manifying blib/man3/Mail::SpamAssassin::Conf.3pm Manifying blib/man3/Mail::SpamAssassin::PerMsgStatus.3pm Manifying blib/man3/Mail::SpamAssassin::SpamCopURI.3pm
#make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/blacklist........Can't locate URI/QueryParam.pm in @INC (@INC contains: /usr/local/src/Mail-SpamAssassin-SpamCopURI-0.18/blib/lib /usr/local/src/Mail-SpamAssassin-SpamCopURI-0.18/blib/arch /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/src/Mail-SpamAssassin-SpamCopURI-0.18/blib/lib/Mail/SpamAssassin/ SpamCopURI.pm line 5. BEGIN failed--compilation aborted at /usr/local/src/Mail-SpamAssassin-SpamCopURI-0.18/blib/lib/Mail/SpamAssassin/ SpamCopURI.pm line 5. Compilation failed in require at t/blacklist.t line 4. BEGIN failed--compilation aborted at t/blacklist.t line 4. . . . . Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-6 Failed 6/6 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------------- --- t/blacklist.t 255 65280 4 4 100.00% 1-4 t/dnsrbl.t 255 65280 6 6 100.00% 1-6 t/extract_urls.t 255 65280 23 23 100.00% 1-23 t/mailto.t 255 65280 1 1 100.00% 1 t/open_redirect.t 255 65280 5 5 100.00% 1-5 t/spamcopuri.t 255 65280 12 12 100.00% 1-12 t/whitelist.t 255 65280 6 6 100.00% 1-6 Failed 7/7 test scripts, 0.00% okay. 57/57 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 2
Hi!
I'm sorry if this is a little off-base here, I am trying to install SA plugin SpamCopURI but kept getting errors as shown below, one error indicates 'Can't locate URI/QueryParam.pm' but I already copied the file to /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/
Install a complete set please.
Do:
perl -MCPAN -e shell install URI
Bye, Raymond.
You could also try install SpamCopURI through CPAN:
perl -MCPAN -e shell install Mail::SpamAssassin::SpamCopURI
And the dependencies should be taken care of.
--eric
On Wed, Jun 02, 2004 at 09:49:53AM +0200, Raymond Dijkxhoorn wrote:
Hi!
I'm sorry if this is a little off-base here, I am trying to install SA plugin SpamCopURI but kept getting errors as shown below, one error indicates 'Can't locate URI/QueryParam.pm' but I already copied the file to /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/
Install a complete set please.
Do:
perl -MCPAN -e shell install URI
Bye, Raymond.
Discuss mailing list Discuss@lists.surbl.org http://lists.surbl.org/mailman/listinfo/discuss
On Wednesday 02 June 2004 07:05, Raymond Dijkxhoorn wrote:
Hi!
You could also try install SpamCopURI through CPAN:
perl -MCPAN -e shell install Mail::SpamAssassin::SpamCopURI
And the dependencies should be taken care of.
Hey, cool, didnt know it was in CPAN yet, great!
That is cool! I wish more people would use CPAN for perl things. I don't understand why people want to use RPMs for this, I've always done Spamassassin this way and its So easy.
John Andersen wrote:
I wish more people would use CPAN for perl things. I don't understand why people want to use RPMs for this, I've always done Spamassassin this way and its So easy.
Because then (almost) everything on the system is managed by rpm, or dpkg, or $favourite_package_manager. CPAN only knows about Perl modules; if some third-party program includes Perl hooks your package manager needs to know about the required modules. If you've installed from CPAN or source (same thing, for the most part) then the package manager doesn't know about them.
There *are* workarounds - cpanflute, cpan2rpm and their counterpart(s) in Debian for instance - but it's often easier to find someone else's package than roll your own.
It's also IMPOSSIBLE to install a Perl module that requires C code to be compiled if you don't have a C compiler installed. I, for one, prefer to keep my production servers compiler-less. I build a module package on a development box, and install it on a set of servers.
-kgd