The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

perl error after clean install

Discussion in 'General Discussion' started by Esky, Sep 13, 2005.

  1. Esky

    Esky Active Member

    Joined:
    Mar 15, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Netherlands
    cPanel Access Level:
    DataCenter Provider
    Hello, yesterday I did an install of cpanel/whm on a freshly installed freebsd box (with next to nothing installed prior to cpanel install) and after the install everything seems to work except spamd.

    When I try to restart spamd from the prompt I get:

    Code:
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
            LC_ALL = (unset),
            LANG = "en_US"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Can't locate Digest/SHA1.pm in @INC (@INC contains: ../lib /usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN /usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6) at /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/EvalTests.pm line 33.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/EvalTests.pm line 33.
    Compilation failed in require at /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/PerMsgStatus.pm line 56.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/PerMsgStatus.pm line 56.
    Compilation failed in require at /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin.pm line 74.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin.pm line 74.
    Compilation failed in require at /usr/bin/spamd line 42.
    BEGIN failed--compilation aborted at /usr/bin/spamd line 42.
    The first warning on locale is just a warning, but the "Can't locate Digest/SHA1.pm in @INC" is more serious. The file is located at: /usr/local/lib/perl5/site_perl/5.6.2/mach/Digest/SHA1.pm but that is not in the @INC. How do I get this directory in @INC???

    EDIT: I'm running FreeBSD 5.4 on a dual xeon machine and WHM 10.6.0 cPanel 10.6.0-R201
     
    #1 Esky, Sep 13, 2005
    Last edited: Sep 13, 2005
  2. Esky

    Esky Active Member

    Joined:
    Mar 15, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Netherlands
    cPanel Access Level:
    DataCenter Provider
    after searching the net (also did that for a day before posting here) I opened a ticket and the solution was this:

     
  3. Etheral

    Etheral Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    16
    hrmm, interesting.

    Doesnt surprize me your having that issue with BSD, heh. Glad you found your solution.
     
  4. Esky

    Esky Active Member

    Joined:
    Mar 15, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Netherlands
    cPanel Access Level:
    DataCenter Provider
    it's weird I installed cpanel on another freebsd server last week without any problems... :confused:

    anyway if you add the following lines to /etc/profile, /usr/share/skel/dot.profile and the .profile of every existing user it works like a charm

    Code:
    LANG=en_US;     export LANG
    LC_ALL=C;       export LC_ALL
     
  5. Compubuster

    Compubuster Well-Known Member

    Joined:
    Mar 31, 2004
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I know this is old, but just for the record.

    Thanks to Google :)

    http://www.cygwin.com/ml/cygwin/2001-02/msg00437.html
     
  6. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi guys,

    I think there is a bit another problem. According to the error message the moudle Digest::SHA1 isn't installed. That is why spamd doesn't work.

    You can install the script via WHM or manually. The necessary module can be downloaded on the page:
    http://search.cpan.org/~gaas/Digest-SHA1-2.11/

    then you need to untar it and do:

    #perl Makefile.PL
    #make
    #mate test <-- it is optional
    #make install

    That's all

    Hope it helps you.
     
Loading...

Share This Page