LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble building RAZOR (http://www.linuxquestions.org/questions/linux-software-2/trouble-building-razor-136013/)

froedi 01-18-2004 11:36 AM

Trouble building RAZOR
 
hey!

I've got spamassassin and want to use razor additionally. but I have troubles building it.

I've downloaded both, the razor-agents and the razor-agents-sdk sources.

when I do "perl Makefile.PL" for razor-agents-sdk, the output looks like this:
Code:

Warning: prerequisite Digest::SHA1 1 not found
Writing Makefile for Digest::HMAC
Testing alignment requirements for U32... /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
Can't compile test program

Writing Makefile for Digest::MD5
Writing Makefile for Digest::Nilsimsa
Writing Makefile for Digest::SHA1
Writing Makefile for MIME::Base64
Warning: prerequisite Digest::HMAC_MD5 1 not found.
Writing Makefile for Net::DNS
Writing Makefile for Test::Simple
[...]

why are Digest::SHA1 and Digest::HMAC_MD5 not recognized, although they are part of the package?

+ what does "cannot find -ldb" mean?

has anybody got an idea about how to fix this?


I have some trouble with razor-agents as well, but I guess it's because razor-agents-sdk hasn't been built properly. :/


thank you for your help. ;)

thegreatnorth 01-23-2004 12:00 AM

A better way would be NOT to use the SDK package
instead just install these packages straight from CPAN

In a terminal window: (using "su")

root@localhost# perl -MCPAN -e shell (if this is your first time type "no" to what it asks)
root@localhost# install Digest::SHA1 (this will install or update if needed)
root@localhost# install Digest::MD5 (and so on... you can do the same for each needed)

then build and install the razor-agents tarball
http://sourceforge.net/project/showf...?group_id=3978

then remember to run "razor-client"
and then "razor-admin -create" (as your normal user)

I'm not sure what the error you had meant though...
hope this helped.

docbrazen 02-13-2004 11:15 PM

Iím having a similar problem. When I run perl Makefile.PL I get this error:
[root@**** razor-agents-2.36]# perl Makefile.PL
Warning: prerequisite Digest::SHA1 0 not found.
Writing Makefile for Razor2::Preproc::deHTMLxs
Writing Makefile for razor-agents


I tried installing Digest::SHA as suggested but it says it is up to date.
cpan> install Digest::SHA1
Digest::SHA1 is up to date.


I'm running Redhat 9 and I did the /etc/sysconfig/i18n file fix, changing the "LANG" value from "en_US.UTF-8" to "en_US".

docbrazen 02-13-2004 11:34 PM

Quote:

Originally posted by docbrazen
Iím having a similar problem. When I run perl Makefile.PL I get this error:
[root@**** razor-agents-2.36]# perl Makefile.PL
Warning: prerequisite Digest::SHA1 0 not found.
Writing Makefile for Razor2::Preproc::deHTMLxs
Writing Makefile for razor-agents


I tried installing Digest::SHA as suggested but it says it is up to date.
cpan> install Digest::SHA1
Digest::SHA1 is up to date.


I'm running Redhat 9 and I did the /etc/sysconfig/i18n file fix, changing the "LANG" value from "en_US.UTF-8" to "en_US".

For some reason I had to delete all my SHA1.pm, SHA1.bs, and SHA1.so files and reinstall to fix it.

Now I just need to get spamassassin to install. :cry:


All times are GMT -5. The time now is 02:02 PM.