Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2004
    Location
    Netherlands
    Posts
    40
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default perl error after clean install

    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
    Last edited by Esky; 09-13-2005 at 05:09 AM. Reason: more info

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    Netherlands
    Posts
    40
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    after searching the net (also did that for a day before posting here) I opened a ticket and the solution was this:

    The locale needed to be set correctly which is what was causing the error. I set it by running the following commands:

    setenv LC_ALL "C"
    setenv LANG "en_US"

  3. #3
    Member Etheral's Avatar
    Join Date
    Dec 2003
    Posts
    210

    Default

    hrmm, interesting.

    Doesnt surprize me your having that issue with BSD, heh. Glad you found your solution.
    +P 6145153533
    +eMail nikk.spiert[@]gmail.com
    +AIM IAEtheral

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Netherlands
    Posts
    40
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    it's weird I installed cpanel on another freebsd server last week without any problems...

    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. #5
    Member
    Join Date
    Mar 2004
    Posts
    84
    cPanel/Enkompass Access Level

    Root Administrator

    Default I know this is old, but just for the record.

    setenv/unsetenv are commands that are built into the csh family of shells. Under bash the equivalent built ins are export and unset. For example:

    CSH: setenv name value
    BASH: export name=value

    CSH: unsetenv name
    BASH: unset name
    Thanks to Google

    http://www.cygwin.com/ml/cygwin/2001-02/msg00437.html
    me@life# cd memories
    me@life# rm -rf bad

  6. #6
    Member
    Join Date
    Sep 2003
    Posts
    141

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 08-22-2011, 11:03 AM
  2. [help] error install perl module
    By openpro in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-24-2011, 09:37 PM
  3. Internal System Error 500 - VPS - Clean install
    By Neoburner in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 09-20-2010, 01:50 PM
  4. Error trying to install perl module
    By certify in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-03-2005, 11:15 AM
  5. What to back up for clean install
    By mousepotatoe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-02-2004, 07:05 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube