Loading ...
Sorry, an error occurred while loading the content.

/usr/local/sbin/amavisd debug How to

Expand Messages
  • Feel Zhou
    Hello,My friend. I got some messages when I install the software of amavis,Can you do me a favor fetch_modules: error loading optional module
    Message 1 of 9 , Jul 3, 2012
    • 0 Attachment
      Hello,My friend.

      I got some messages when I install the software of amavis,Can you do me a favor

      fetch_modules: error loading optional module MIME/Decoder/BinHex.pm:
        Can't locate Convert/BinHex.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/share/perl5/MIME/Decoder/BinHex.pm line 45.
        BEGIN failed--compilation aborted at /usr/local/share/perl5/MIME/Decoder/BinHex.pm line 45.
        Compilation failed in require at /usr/local/sbin/amavisd line 205.
      Jul  3 16:42:53.683 ym.iopkl.com /usr/local/sbin/amavisd[2242]: logging initialized, log level 0, syslog: amavis.mail
      Jul  3 16:42:53.683 ym.iopkl.com /usr/local/sbin/amavisd[2242]: PID file /var/amavis/amavisd.pid is inaccessible: Permission denied
      PID file /var/amavis/amavisd.pid is inaccessible: Permission denied

      Thank you for your time!

      Tom

    • Ansgar Wiechers
      ... It appears that you don t have the Convert::BinHex package installed, and the account running the amavisd process does not have permission to access the
      Message 2 of 9 , Jul 3, 2012
      • 0 Attachment
        On 2012-07-03 Feel Zhou wrote:
        > I got some messages when I install the software of amavis,Can you do me a
        > favor
        >
        > fetch_modules: error loading optional module MIME/Decoder/BinHex.pm:
        > Can't locate Convert/BinHex.pm in @INC (@INC contains:
        > /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
        > /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at
        > /usr/local/share/perl5/MIME/Decoder/BinHex.pm line 45.
        > BEGIN failed--compilation aborted at
        > /usr/local/share/perl5/MIME/Decoder/BinHex.pm line 45.
        > Compilation failed in require at /usr/local/sbin/amavisd line 205.
        > Jul 3 16:42:53.683 ym.iopkl.com /usr/local/sbin/amavisd[2242]: logging
        > initialized, log level 0, syslog: amavis.mail
        > Jul 3 16:42:53.683 ym.iopkl.com /usr/local/sbin/amavisd[2242]: PID file
        > /var/amavis/amavisd.pid is inaccessible: Permission denied
        > PID file /var/amavis/amavisd.pid is inaccessible: Permission denied

        It appears that you don't have the Convert::BinHex package installed,
        and the account running the amavisd process does not have permission to
        access the PID file. Install the missing package (however that's done
        for whatever operating system you're using), and make sure that the
        account used for running amavisd has proper permissions to access the
        PID file (may be incorrect permissions on the file itself or on the
        containing directory).

        Regards
        Ansgar Wiechers
        --
        "Abstractions save us time working, but they don't save us time learning."
        --Joel Spolsky
      • Feel Zhou
        Tnaks for Ansgar Wiechers Everytime I install the packages about Convert::BinHex, It will give me the same message It s very long message, can you find the
        Message 3 of 9 , Jul 3, 2012
        • 0 Attachment
          Tnaks for Ansgar Wiechers

          Everytime I install the packages about Convert::BinHex, It will give me the same message
          It's very long message, can you find the promble?



          [root@ym ~]# perl -MCPAN -e shell
          Terminal does not support AddHistory.

          cpan shell -- CPAN exploration and modules installation (v1.9402)
          Enter 'h' for help.

          cpan[1]> install Convert::BinHex
          CPAN: Storable loaded ok (v2.20)
          Going to read '/root/.cpan/Metadata'
            Database was generated on Tue, 03 Jul 2012 11:11:50 GMT
          Running install for module 'Convert::BinHex'
          CPAN: Data::Dumper loaded ok (v2.124)
          'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
          Running make for E/ER/ERYQ/Convert-BinHex-1.119.tar.gz
          CPAN: Digest::SHA loaded ok (v5.47)
          CPAN: Compress::Zlib loaded ok (v2.052)
          Checksum for /root/.cpan/sources/authors/id/E/ER/ERYQ/Convert-BinHex-1.119.tar.gz ok
          Scanning cache /root/.cpan/build for sizes
          ............................................................................DONE
          CPAN: Archive::Tar loaded ok (v1.88)
          Convert-BinHex-1.119/
          Convert-BinHex-1.119/testin/
          Convert-BinHex-1.119/testin/pbs_mac.eps.hqx
          Convert-BinHex-1.119/testin/hands_m.eps.hqx
          Convert-BinHex-1.119/testin/eyeball.gif.hqx
          Convert-BinHex-1.119/testin/eyeball.gif
          Convert-BinHex-1.119/bin/
          Convert-BinHex-1.119/bin/binhex.pl
          Convert-BinHex-1.119/bin/debinhex.pl
          Convert-BinHex-1.119/t/
          Convert-BinHex-1.119/t/Checker.pm
          Convert-BinHex-1.119/t/comp2bin.t
          Convert-BinHex-1.119/docs/
          Convert-BinHex-1.119/docs/Convert/
          Convert-BinHex-1.119/docs/Convert/BinHex/
          Convert-BinHex-1.119/docs/Convert/BinHex/redapple-sm.gif
          Convert-BinHex-1.119/docs/Convert/BinHex/hqxred.gif
          Convert-BinHex-1.119/docs/Convert/BinHex/redapple.gif
          Convert-BinHex-1.119/docs/Convert/BinHex/redapple-tiny.gif
          Convert-BinHex-1.119/docs/Convert/BinHex.pm.html
          Convert-BinHex-1.119/testout/
          Convert-BinHex-1.119/testout/README
          Convert-BinHex-1.119/MANIFEST
          Convert-BinHex-1.119/Makefile.PL
          Convert-BinHex-1.119/COPYING
          Convert-BinHex-1.119/test/
          Convert-BinHex-1.119/test/hexbin
          Convert-BinHex-1.119/README-TOO
          Convert-BinHex-1.119/README
          Convert-BinHex-1.119/lib/
          Convert-BinHex-1.119/lib/Convert/
          Convert-BinHex-1.119/lib/Convert/BinHex.pm
          CPAN: File::Temp loaded ok (v0.22)

            CPAN.pm: Going to build E/ER/ERYQ/Convert-BinHex-1.119.tar.gz

          Checking if your kit is complete...
          Looks good
          Writing Makefile for Convert::BinHex
          cp lib/Convert/BinHex.pm blib/lib/Convert/BinHex.pm
          Manifying blib/man3/Convert::BinHex.3pm
            ERYQ/Convert-BinHex-1.119.tar.gz
            /usr/bin/make -- OK
          Warning (usually harmless): 'YAML' not installed, will not store persistent state
          Running make test
          PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
          t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at t/comp2bin.t line 3.
          Undefined subroutine &main::check called at t/comp2bin.t line 75.
          t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
          Failed 9/9 subtests

          Test Summary Report
          -------------------
          t/comp2bin.t (Wstat: 65280 Tests: 0 Failed: 0)
            Non-zero exit status: 255
            Parse errors: Bad plan.  You planned 9 tests but ran 0.
          Files=1, Tests=0,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.01 cusr  0.00 csys =  0.04 CPU)
          Result: FAIL
          Failed 1/1 test programs. 0/0 subtests failed.
          make: *** [test_dynamic] Error 255
            ERYQ/Convert-BinHex-1.119.tar.gz
            /usr/bin/make test -- NOT OK
          //hint// to see the cpan-testers results for installing this module, try:
            reports ERYQ/Convert-BinHex-1.119.tar.gz
          Warning (usually harmless): 'YAML' not installed, will not store persistent state
          Running make install
            make test had returned bad status, won't install without force
          Failed during this command:
           ERYQ/Convert-BinHex-1.119.tar.gz             : make_test NO



          thanks again
          Tom

          2012/7/3 Ansgar Wiechers <lists@...>
          On 2012-07-03 Feel Zhou wrote:
          > I got some messages when I install the software of amavis,Can you do me a
          > favor
          >
          > fetch_modules: error loading optional module MIME/Decoder/BinHex.pm:
          >   Can't locate Convert/BinHex.pm in @INC (@INC contains:
          > /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
          > /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at
          > /usr/local/share/perl5/MIME/Decoder/BinHex.pm line 45.
          >   BEGIN failed--compilation aborted at
          > /usr/local/share/perl5/MIME/Decoder/BinHex.pm line 45.
          >   Compilation failed in require at /usr/local/sbin/amavisd line 205.
          > Jul  3 16:42:53.683 ym.iopkl.com /usr/local/sbin/amavisd[2242]: logging
          > initialized, log level 0, syslog: amavis.mail
          > Jul  3 16:42:53.683 ym.iopkl.com /usr/local/sbin/amavisd[2242]: PID file
          > /var/amavis/amavisd.pid is inaccessible: Permission denied
          > PID file /var/amavis/amavisd.pid is inaccessible: Permission denied

          It appears that you don't have the Convert::BinHex package installed,
          and the account running the amavisd process does not have permission to
          access the PID file. Install the missing package (however that's done
          for whatever operating system you're using), and make sure that the
          account used for running amavisd has proper permissions to access the
          PID file (may be incorrect permissions on the file itself or on the
          containing directory).

          Regards
          Ansgar Wiechers
          --
          "Abstractions save us time working, but they don't save us time learning."
          --Joel Spolsky

        • Rob Sterenborg (lists)
          ... [snip] ... It seems you re missing Exporter too. Install it before installing Convert::BinHex, and do the same for any other package Perl reports missing.
          Message 4 of 9 , Jul 3, 2012
          • 0 Attachment
            On Tue, 2012-07-03 at 19:53 +0800, Feel Zhou wrote:
            > Tnaks for Ansgar Wiechers
            >
            > Everytime I install the packages about Convert::BinHex, It will
            > give me the same message

            [snip]

            > t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at
            > t/comp2bin.t line 3.

            It seems you're missing Exporter too. Install it before installing
            Convert::BinHex, and do the same for any other package Perl reports
            missing. After that you should be able to install Convert::BinHex.


            --
            Rob
          • Feel Zhou
            Thank you for Rob Install the Exporter, still can install Convert::BinHex So long messages cpan[3] install Exporter Exporter is up to date (5.66). cpan[4]
            Message 5 of 9 , Jul 3, 2012
            • 0 Attachment
              Thank you for Rob
              Install the Exporter, still can' install Convert::BinHex
              So long messages

              cpan[3]> install Exporter
              Exporter is up to date (5.66).

              cpan[4]> install Convert::BinHex
              Running install for module 'Convert::BinHex'
              CPAN: YAML loaded ok (v0.81)
              Running make for E/ER/ERYQ/Convert-BinHex-1.119.tar.gz
              CPAN: Digest::SHA loaded ok (v5.47)
              CPAN: Compress::Zlib loaded ok (v2.052)
              Checksum for /root/.cpan/sources/authors/id/E/ER/ERYQ/Convert-BinHex-1.119.tar.gz ok
              Scanning cache /root/.cpan/build for sizes
              ............................................................................DONE
              CPAN: Archive::Tar loaded ok (v1.88)
              Convert-BinHex-1.119/
              Convert-BinHex-1.119/testin/
              Convert-BinHex-1.119/testin/pbs_mac.eps.hqx
              Convert-BinHex-1.119/testin/hands_m.eps.hqx
              Convert-BinHex-1.119/testin/eyeball.gif.hqx
              Convert-BinHex-1.119/testin/eyeball.gif
              Convert-BinHex-1.119/bin/
              Convert-BinHex-1.119/bin/binhex.pl
              Convert-BinHex-1.119/bin/debinhex.pl
              Convert-BinHex-1.119/t/
              Convert-BinHex-1.119/t/Checker.pm
              Convert-BinHex-1.119/t/comp2bin.t
              Convert-BinHex-1.119/docs/
              Convert-BinHex-1.119/docs/Convert/
              Convert-BinHex-1.119/docs/Convert/BinHex/
              Convert-BinHex-1.119/docs/Convert/BinHex/redapple-sm.gif
              Convert-BinHex-1.119/docs/Convert/BinHex/hqxred.gif
              Convert-BinHex-1.119/docs/Convert/BinHex/redapple.gif
              Convert-BinHex-1.119/docs/Convert/BinHex/redapple-tiny.gif
              Convert-BinHex-1.119/docs/Convert/BinHex.pm.html
              Convert-BinHex-1.119/testout/
              Convert-BinHex-1.119/testout/README
              Convert-BinHex-1.119/MANIFEST
              Convert-BinHex-1.119/Makefile.PL
              Convert-BinHex-1.119/COPYING
              Convert-BinHex-1.119/test/
              Convert-BinHex-1.119/test/hexbin
              Convert-BinHex-1.119/README-TOO
              Convert-BinHex-1.119/README
              Convert-BinHex-1.119/lib/
              Convert-BinHex-1.119/lib/Convert/
              Convert-BinHex-1.119/lib/Convert/BinHex.pm
              CPAN: File::Temp loaded ok (v0.22)

                CPAN.pm: Going to build E/ER/ERYQ/Convert-BinHex-1.119.tar.gz

              Checking if your kit is complete...
              Looks good
              Writing Makefile for Convert::BinHex
              Writing MYMETA.yml and MYMETA.json
              cp lib/Convert/BinHex.pm blib/lib/Convert/BinHex.pm
              Manifying blib/man3/Convert::BinHex.3pm
                ERYQ/Convert-BinHex-1.119.tar.gz
                /usr/bin/make -- OK
              Running make test
              PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
              t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at t/comp2bin.t line 3.
              Undefined subroutine &main::check called at t/comp2bin.t line 75.
              t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
              Failed 9/9 subtests

              Test Summary Report
              -------------------
              t/comp2bin.t (Wstat: 65280 Tests: 0 Failed: 0)
                Non-zero exit status: 255
                Parse errors: Bad plan.  You planned 9 tests but ran 0.
              Files=1, Tests=0,  0 wallclock secs ( 0.01 usr  0.01 sys +  0.01 cusr  0.00 csys =  0.03 CPU)
              Result: FAIL
              Failed 1/1 test programs. 0/0 subtests failed.
              make: *** [test_dynamic] Error 255
                ERYQ/Convert-BinHex-1.119.tar.gz
                /usr/bin/make test -- NOT OK
              //hint// to see the cpan-testers results for installing this module, try:
                reports ERYQ/Convert-BinHex-1.119.tar.gz
              Running make install
                make test had returned bad status, won't install without force
              Failed during this command:
               ERYQ/Convert-BinHex-1.119.tar.gz             : make_test NO

              I have no idea ,Thanks for friend's help
              Tom

              2012/7/3 Rob Sterenborg (lists) <lists@...>
              On Tue, 2012-07-03 at 19:53 +0800, Feel Zhou wrote:
              > Tnaks for Ansgar Wiechers
              >
              > Everytime I install the packages about Convert::BinHex, It will
              > give me the same message

              [snip]

              > t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at
              > t/comp2bin.t line 3.

              It seems you're missing Exporter too. Install it before installing
              Convert::BinHex, and do the same for any other package Perl reports
              missing. After that you should be able to install Convert::BinHex.


              --
              Rob



            • Rob Sterenborg (lists)
              ... [snip] ... Interestingly Perl says that Exporter is installed, but can t be found when some package (Convert::BinHex in this case) is tested before install
              Message 6 of 9 , Jul 3, 2012
              • 0 Attachment
                On Tue, 2012-07-03 at 22:25 +0800, Feel Zhou wrote:
                > Thank you for Rob
                > Install the Exporter, still can' install Convert::BinHex
                > So long messages
                >
                > cpan[3]> install Exporter
                > Exporter is up to date (5.66).
                >
                > cpan[4]> install Convert::BinHex
                > Running install for module 'Convert::BinHex'

                [snip]

                > Running make test
                > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
                > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
                > t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at
                > t/comp2bin.t line 3.
                > Undefined subroutine &main::check called at t/comp2bin.t line 75.
                > t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00)

                Interestingly Perl says that Exporter is installed, but can't be found
                when some package (Convert::BinHex in this case) is tested before
                install while 'make' says 'OK'.

                I don't know enough about Perl why this would happen, so I can't help
                you here.
                (You can of course try to 'force install Convert::BinHex' but IMO that's
                not a real solution, so I'm not sure if that's such a great idea and if
                it will actually work.)


                --
                Rob
              • Feel Zhou
                Thanks for Rob s answer My PC is Windows7, I install vmware in it I setup the centos6.2/64bit in the vmware for the test. Maybe This is the problem? Thanks a
                Message 7 of 9 , Jul 3, 2012
                • 0 Attachment
                  Thanks for Rob's answer

                  My PC is Windows7, I install  vmware in it
                  I setup the centos6.2/64bit in the vmware for the test.
                  Maybe This is the problem?
                  Thanks a lot

                  Tom

                  2012/7/3 Rob Sterenborg (lists) <lists@...>
                  On Tue, 2012-07-03 at 22:25 +0800, Feel Zhou wrote:
                  > Thank you for Rob
                  > Install the Exporter, still can' install Convert::BinHex
                  > So long messages
                  >
                  > cpan[3]> install Exporter
                  > Exporter is up to date (5.66).
                  >
                  > cpan[4]> install Convert::BinHex
                  > Running install for module 'Convert::BinHex'

                  [snip]

                  > Running make test
                  > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
                  > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
                  > t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at
                  > t/comp2bin.t line 3.
                  > Undefined subroutine &main::check called at t/comp2bin.t line 75.
                  > t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00)

                  Interestingly Perl says that Exporter is installed, but can't be found
                  when some package (Convert::BinHex in this case) is tested before
                  install while 'make' says 'OK'.

                  I don't know enough about Perl why this would happen, so I can't help
                  you here.
                  (You can of course try to 'force install Convert::BinHex' but IMO that's
                  not a real solution, so I'm not sure if that's such a great idea and if
                  it will actually work.)


                  --
                  Rob



                • Ansgar Wiechers
                  ... Hardly. CentOS running on VMware shouldn t behave any different than CentOS running on physical hardware in this respect. I just came across this post [1],
                  Message 8 of 9 , Jul 3, 2012
                  • 0 Attachment
                    On 2012-07-03 Feel Zhou wrote:
                    > My PC is Windows7, I install vmware in it
                    > I setup the centos6.2/64bit in the vmware for the test.
                    > Maybe This is the problem?

                    Hardly. CentOS running on VMware shouldn't behave any different than
                    CentOS running on physical hardware in this respect. I just came across
                    this post [1], which may or may not help. If it doesn't, I'd suggest to
                    consult a more appropriate list, as this isn't a Postfix issue.

                    [1] http://lists.mailscanner.info/pipermail/mailscanner/2006-April/060174.html

                    Regards
                    Ansgar Wiechers
                    --
                    "All vulnerabilities deserve a public fear period prior to patches
                    becoming available."
                    --Jason Coombs on Bugtraq
                  • Feel Zhou
                    Thanks for Ansgar Wiechers s answer I will try to find another way to fix it. And Thanks Rob again Tom 2012/7/4 Ansgar Wiechers
                    Message 9 of 9 , Jul 3, 2012
                    • 0 Attachment
                      Thanks for Ansgar Wiechers's answer
                      I will try to find another way to fix it.
                      And Thanks Rob again

                      Tom

                      2012/7/4 Ansgar Wiechers <lists@...>
                      On 2012-07-03 Feel Zhou wrote:
                      > My PC is Windows7, I install  vmware in it
                      > I setup the centos6.2/64bit in the vmware for the test.
                      > Maybe This is the problem?

                      Hardly. CentOS running on VMware shouldn't behave any different than
                      CentOS running on physical hardware in this respect. I just came across
                      this post [1], which may or may not help. If it doesn't, I'd suggest to
                      consult a more appropriate list, as this isn't a Postfix issue.

                      [1] http://lists.mailscanner.info/pipermail/mailscanner/2006-April/060174.html

                      Regards
                      Ansgar Wiechers
                      --
                      "All vulnerabilities deserve a public fear period prior to patches
                      becoming available."
                      --Jason Coombs on Bugtraq

                    Your message has been successfully submitted and would be delivered to recipients shortly.