こんばんは。
いつも参考にさせてもらっています。
メールサーバーのウィルスチェックをしようと思いamavisdをインストールして何のエラーもなく出来たのですが起動しようと思うと
Starting amavisd: ERROR: MISSING REQUIRED BASIC MODULES:
MIME::Words
MIME::Head
MIME::Body
MIME::Entity
MIME::Parser
MIME::Decoder
MIME::Decoder::Base64
MIME::Decoder::Binary
MIME::Decoder::QuotedPrint
MIME::Decoder::NBit
MIME::Decoder::UU
MIME::Decoder::Gzip64
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 161.
というエラーが出て起動できません。
基本的なものが入ってないといってるようなのでインストールしようと思ってやってみたのですがうまくいきません。
どうすれば出来るか教えてください。
下記手順は問題なく行いましたでしょうか?
# sh amavisd_install.sh perl netserver ← amavisd-newに必要なPerlモジュールのインストール
> 下記手順は問題なく行いましたでしょうか?
>
> # sh amavisd_install.sh perl netserver ← amavisd-newに必要なPerlモジュールのインストール
こんばんわ
手順どおりにやったので、できてると思います。
MIME::Words
MIME::Head
MIME::Body
MIME::Entity
MIME::Parser
MIME::Decoder
MIME::Decoder::Base64
MIME::Decoder::Binary
MIME::Decoder::QuotedPrint
MIME::Decoder::NBit
MIME::Decoder::UU
MIME::Decoder::Gzip64
エラーででたモジュールを全てCPANでインストールして見ても駄目でしょうか?
例)
# perl -MCPAN -e shell
cpan>install MIME::Words
cpan>install MIME::Head
中略…
> # perl -MCPAN -e shell
> cpan>install MIME::Words
> cpan>install MIME::Head
> 中略…
やってみたのですが、以下のようなエラーが出てインストールできてないようです。
make: *** [test_dynamic] エラー 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
db4のインストールは行っていますよね?
> db4のインストールは行っていますよね?
確認しましたがインストールされていました。
apt-get install gcc*
これで、すべてのコンパイラをインストールして
CPANサイトからソースをダウンロードしてきて手動でインストール
してみたらどうですか?
> apt-get install gcc*
> これで、すべてのコンパイラをインストールして
> CPANサイトからソースをダウンロードしてきて手動でインストール
> してみたらどうですか?
mokoさん返信ありがとうございます。
手動でインストールにはどうすればいいのでしょうか。
いろいろ調べてやってみたのですがうまくいきません。
install MIME::Words
Running install for module MIME::Words
Running make for D/DO/DONEILL/MIME-tools-5.424.tar.gz
Is already unwrapped into directory /root/.cpan/build/MIME-tools-5.424
Has already been processed within this session
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/02-kwalitee..........skipped: Test::Kwalitee not installed; skipping
t/02-pod-coverage......skipped: Test::Pod::Coverage disabled. TEST_POD_COVERAGE=1 if you want it.
t/02-pod...............skipped: Test::Pod 1.00 required for testing POD
t/99-prepare...........ok
t/Body.................ok
t/Decoder..............# Using gzip: 1
t/Decoder..............ok
t/Entity...............1/30 Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# Looks like you planned 30 tests but only ran 15.
# Looks like your test died just after 15.
t/Entity............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 15/30 subtests
t/Gauntlet.............ok
t/Head.................1/20 Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Head.pm line 207.
# Looks like you planned 20 tests but only ran 1.
# Looks like your test died just after 1.
t/Head................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 19/20 subtests
t/Misc.................ok
t/Parser...............Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# Looks like your test died before it could output anything.
t/Parser............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 30/30 subtests
t/ParserEncoded........ok
t/ParserPreamble.......ok
t/Ref..................1/50
# Failed test 'testmsgs/dup-names.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Failed test 'testmsgs/multi-nested2.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Failed test 'testmsgs/multi-2evil.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Failed test 'testmsgs/bluedot-simple.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437, <GEN34> line 5.
# '
# at t/Ref.t line 89.
# Failed test 'testmsgs/multi-nested.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Failed test 'testmsgs/multi-weirdspace.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Eval failed: Msg: wanted qq{multipart/mixed}, got qq{text/plain}
# Failed test 'testmsgs/uu-zeegee.ref Message => testmsgs/uu-zeegee.msg, Parser => anonymous'
# at t/Ref.t line 98.
# Eval failed: Part_2: wanted qq{multipart/mixed}, got qq{text/plain}
# Failed test 'testmsgs/uu-junk-extracted.ref Message => testmsgs/uu-junk.msg, Parser => anonymous'
# at t/Ref.t line 98.
# Failed test 'testmsgs/bluedot-postcard.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Failed test 'testmsgs/multi-nested3.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Failed test 'testmsgs/multi-2gifs.ref, problem: Can't locate object method "binmode" via package "IO::File" at /root/.cpan/build/MIME-tools-5.424/blib/lib/MIME/Body.pm line 437.
# '
# at t/Ref.t line 89.
# Looks like you failed 11 tests of 50.
t/Ref.................. Dubious, test returned 11 (wstat 2816, 0xb00)
Failed 11/50 subtests
t/Smtpsend.............ok
t/WordDecoder..........ok
t/Words................ok
Test Summary Report
-------------------
t/Entity.t (Wstat: 65280 Tests: 15 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 15.
t/Head.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 20 tests but ran 1.
t/Parser.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 0.
t/Ref.t (Wstat: 2816 Tests: 50 Failed: 11)
Failed test number(s): 17, 19, 21, 23, 25, 27, 29, 35, 39, 43
49
Non-zero exit status: 11
Files=17, Tests=234, 5 wallclock secs ( 0.15 usr 0.02 sys + 3.44 cusr 0.51 csys = 4.12 CPU)
Result: FAIL
Failed 4/17 test programs. 11/234 subtests failed.
make: *** [test_dynamic] エラー 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
よろしくお願いします。
インストールできました!
方法はcpanからinstall IO::Fileをインストールしたらうまくいきました。
ありがとうございました。又何かあれば質問させていただきます。
> インストールできました!
> 方法はcpanからinstall IO::Fileをインストールしたらうまくいきました。
> ありがとうございました。又何かあれば質問させていただきます。
同様の症状でしたが、私はFile::Tempを強制インストールして解決しました。Vineは4.1
参考までに。