LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-12-2012, 04:19 AM   #1
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 97

Rep: Reputation: 21
Question Perl Issue -- Trying to install Mail::IMAPClient


Hi Guys,

I'm trying to install the above module but (to use with Nagios) but it won't let me:

Code:
cpan[1]> install Mail::IMAPClient
CPAN: Storable loaded ok (v2.20)
Reading '/root/.cpan/Metadata'
  Database was generated on Thu, 12 Jul 2012 08:07:03 GMT
Running install for module 'Mail::IMAPClient'
Running make for P/PL/PLOBBES/Mail-IMAPClient-3.31.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.02)
Checksum for /root/.cpan/sources/authors/id/P/PL/PLOBBES/Mail-IMAPClient-3.31.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Mail-IMAPClient-3.31/
Mail-IMAPClient-3.31/Changes
Mail-IMAPClient-3.31/examples/
Mail-IMAPClient-3.31/examples/build_dist.pl
Mail-IMAPClient-3.31/examples/build_ldif.pl
Mail-IMAPClient-3.31/examples/cleanTest.pl
Mail-IMAPClient-3.31/examples/copy_folder.pl
Mail-IMAPClient-3.31/examples/cyrus_expire.pl
Mail-IMAPClient-3.31/examples/cyrus_expunge.pl
Mail-IMAPClient-3.31/examples/find_dup_msgs.pl
Mail-IMAPClient-3.31/examples/idle.pl
Mail-IMAPClient-3.31/examples/imap_to_mbox.pl
Mail-IMAPClient-3.31/examples/imtestExample.pl
Mail-IMAPClient-3.31/examples/migrate_mail2.pl
Mail-IMAPClient-3.31/examples/migrate_mbox.pl
Mail-IMAPClient-3.31/examples/populate_mailbox.pl
Mail-IMAPClient-3.31/examples/sharedFolder.pl
Mail-IMAPClient-3.31/lib/
Mail-IMAPClient-3.31/lib/Mail/
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/BodyStructure/
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/BodyStructure/Parse.grammar
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/BodyStructure/Parse.pm
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/BodyStructure/Parse.pod
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/BodyStructure.pm
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/MessageSet.pm
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/Thread.grammar
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/Thread.pm
Mail-IMAPClient-3.31/lib/Mail/IMAPClient/Thread.pod
Mail-IMAPClient-3.31/lib/Mail/IMAPClient.pm
Mail-IMAPClient-3.31/lib/Mail/IMAPClient.pod
Mail-IMAPClient-3.31/Makefile.PL
Mail-IMAPClient-3.31/MANIFEST
Mail-IMAPClient-3.31/META.yml
Mail-IMAPClient-3.31/prepare_dist
Mail-IMAPClient-3.31/README
Mail-IMAPClient-3.31/t/
Mail-IMAPClient-3.31/t/basic.t
Mail-IMAPClient-3.31/t/bodystructure.t
Mail-IMAPClient-3.31/t/body_string.t
Mail-IMAPClient-3.31/t/fetch_hash.t
Mail-IMAPClient-3.31/t/messageset.t
Mail-IMAPClient-3.31/t/pod.t
Mail-IMAPClient-3.31/t/simple.t
Mail-IMAPClient-3.31/t/thread.t
Mail-IMAPClient-3.31/test_template.txt
CPAN: File::Temp loaded ok (v0.22)

  CPAN.pm: Building P/PL/PLOBBES/Mail-IMAPClient-3.31.tar.gz

The following optional modules were not found:
        Authen::NTLM for Authmechanism 'NTLM'
        Authen::SASL for Authmechanism 'DIGEST-MD5'
        Test::Pod for Pod tests
Optional modules are available from any CPAN mirror, reference:
  http://search.cpan.org/
  http://www.perl.com/CPAN/modules/by-module
  http://www.perl.org/CPAN/modules/by-module

Checking if your kit is complete...
Looks good
Warning: prerequisite Parse::RecDescent 1.94 not found.
Writing Makefile for Mail::IMAPClient
You have the option of running an extended suite of tests during
'make test'. This requires an IMAP server name, user account, and
password to test with.

Note: this prompt will automatically timeout after 60 seconds.

Do you want to run the extended tests? (n/y)  y

Please provide the hostname or IP address of a host running an
IMAP server (or QUIT to skip the extended tests)  imap.gmail.com

Provide the username of an account on imap.gmail.com (or QUIT)  ****@****.****

Provide the password for testing4001@gmail.com (or QUIT)  ********

Please provide the port to connect to on imap.gmail.com to run the test
(default is 143)  993

Provide the authentication mechanism to use on imap.gmail.com to
run the test (default is LOGIN)

The information you provided (including the password!) has been stored
in test.txt and SHOULD BE REMOVED (either by hand or by 'make clean')
after testing.
Could not read metadata file. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
----    PLOBBES/Mail-IMAPClient-3.31.tar.gz   ----
    Parse::RecDescent [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Running install for module 'Parse::RecDescent'
Running make for J/JT/JTBRAUN/Parse-RecDescent-1.967009.tar.gz
Checksum for /root/.cpan/sources/authors/id/J/JT/JTBRAUN/Parse-RecDescent-1.967009.tar.gz ok
Parse-RecDescent-1.967009/
Parse-RecDescent-1.967009/Changes
Parse-RecDescent-1.967009/demo/
Parse-RecDescent-1.967009/demo/demo_dot.pl
Parse-RecDescent-1.967009/demo/demo_LaTeXish.pl
Parse-RecDescent-1.967009/demo/demo_parsetree.pl
Parse-RecDescent-1.967009/demo/demo_separators.pl
Parse-RecDescent-1.967009/demo/demo_metaRD.pm
Parse-RecDescent-1.967009/demo/demo_restructure_easy.pl
Parse-RecDescent-1.967009/demo/demo_OOautoparsetree.pl
Parse-RecDescent-1.967009/demo/demo_logic.pl
Parse-RecDescent-1.967009/demo/demo_selfmod.pl
Parse-RecDescent-1.967009/demo/demo_undumper.pl
Parse-RecDescent-1.967009/demo/demo_quicklist.pl
Parse-RecDescent-1.967009/demo/demo_mccoy.pl
Parse-RecDescent-1.967009/demo/demo_autoscoresep.pl
Parse-RecDescent-1.967009/demo/demo.pl
Parse-RecDescent-1.967009/demo/demo_lisplike.pl
Parse-RecDescent-1.967009/demo/demo_derived.pl
Parse-RecDescent-1.967009/demo/demo_skipcomment.pl
Parse-RecDescent-1.967009/demo/demo_buildcalc.pl
Parse-RecDescent-1.967009/demo/demo_recipe.pl
Parse-RecDescent-1.967009/demo/demo_piecewise.pl
Parse-RecDescent-1.967009/demo/demo_simplequery.pl
Parse-RecDescent-1.967009/demo/demo_language.pl
Parse-RecDescent-1.967009/demo/demo_PerlCSV.pl
Parse-RecDescent-1.967009/demo/demo_implicit.pl
Parse-RecDescent-1.967009/demo/demo_decomment.pl
Parse-RecDescent-1.967009/demo/demo_autostub.pl
Parse-RecDescent-1.967009/demo/demo_eval.pl
Parse-RecDescent-1.967009/demo/demo_LaTeXish_autoact.pl
Parse-RecDescent-1.967009/demo/demo_perlparsing.pl
Parse-RecDescent-1.967009/demo/demo_leftop.pl
Parse-RecDescent-1.967009/demo/demo_NL2SQL.pl
Parse-RecDescent-1.967009/demo/demo_decomment_nonlocal.pl
Parse-RecDescent-1.967009/demo/demo_precalc.pl
Parse-RecDescent-1.967009/demo/demo_cpp.pl
Parse-RecDescent-1.967009/demo/demo_simple.pl
Parse-RecDescent-1.967009/demo/demo_matchrule2.pl
Parse-RecDescent-1.967009/demo/demo_embedding.pl
Parse-RecDescent-1.967009/demo/demo_errors.pl
Parse-RecDescent-1.967009/demo/demo_delete.pl
Parse-RecDescent-1.967009/demo/demo.c
Parse-RecDescent-1.967009/demo/demo_another_Cgrammar.pl
Parse-RecDescent-1.967009/demo/demo_whoson.pl
Parse-RecDescent-1.967009/demo/demo_tokens.pl
Parse-RecDescent-1.967009/demo/demo_codeblock.pl
Parse-RecDescent-1.967009/demo/demo_textgen.pl
Parse-RecDescent-1.967009/demo/demo_Cgrammar_v2.pl
Parse-RecDescent-1.967009/demo/demo_methods.pl
Parse-RecDescent-1.967009/demo/demo_Cgrammar.pl
Parse-RecDescent-1.967009/demo/demo_simpleXML.pl
Parse-RecDescent-1.967009/demo/demo_street.pl
Parse-RecDescent-1.967009/demo/demo_bad.pl
Parse-RecDescent-1.967009/demo/demo_opreps.pl
Parse-RecDescent-1.967009/demo/demo_arithmetic.pl
Parse-RecDescent-1.967009/demo/demo_restructure_painful.pl
Parse-RecDescent-1.967009/demo/demo_itemhash.pl
Parse-RecDescent-1.967009/demo/demo_autorule.pl
Parse-RecDescent-1.967009/demo/demo_calc.pl
Parse-RecDescent-1.967009/demo/demo_scoredsep.pl
Parse-RecDescent-1.967009/demo/demo_operator.pl
Parse-RecDescent-1.967009/demo/demo_leftassoc.pl
Parse-RecDescent-1.967009/demo/demo_template.pl
Parse-RecDescent-1.967009/demo/demo_randomsentence.pl
Parse-RecDescent-1.967009/demo/demo_lexer.pl
Parse-RecDescent-1.967009/demo/demo_matchrule.pl
Parse-RecDescent-1.967009/demo/demo_OOparsetree.pl
Parse-RecDescent-1.967009/Makefile.PL
Parse-RecDescent-1.967009/MANIFEST
Parse-RecDescent-1.967009/lib/
Parse-RecDescent-1.967009/lib/Parse/
Parse-RecDescent-1.967009/lib/Parse/RecDescent.pm
Parse-RecDescent-1.967009/README
Parse-RecDescent-1.967009/Build.PL
Parse-RecDescent-1.967009/META.json
Parse-RecDescent-1.967009/tutorial/
Parse-RecDescent-1.967009/tutorial/TPJ_maze.gif
Parse-RecDescent-1.967009/tutorial/TPJ-yacc-proc.gif
Parse-RecDescent-1.967009/tutorial/TPJ_tree.gif
Parse-RecDescent-1.967009/tutorial/TPJ-PRD-proc.gif
Parse-RecDescent-1.967009/tutorial/tutorial.html
Parse-RecDescent-1.967009/t/
Parse-RecDescent-1.967009/t/00.load.t
Parse-RecDescent-1.967009/t/reentry.t
Parse-RecDescent-1.967009/t/precompile.t
Parse-RecDescent-1.967009/t/skip.t
Parse-RecDescent-1.967009/t/separated_repetition.t
Parse-RecDescent-1.967009/t/pod.t
Parse-RecDescent-1.967009/t/leftop_cap.t
Parse-RecDescent-1.967009/t/text.t
Parse-RecDescent-1.967009/t/util.pl
Parse-RecDescent-1.967009/t/01.basics.t
Parse-RecDescent-1.967009/t/autotree.t
Parse-RecDescent-1.967009/t/re_capture_return.t
Parse-RecDescent-1.967009/t/skip_dynamic.t
Parse-RecDescent-1.967009/META.yml
Parse-RecDescent-1.967009/ToDo

  CPAN.pm: Building J/JT/JTBRAUN/Parse-RecDescent-1.967009.tar.gz

ExtUtils::MakeMaker version 6.62 required--this is only version 6.55_02 at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
'YAML' not installed, will not store persistent state
  JTBRAUN/Parse-RecDescent-1.967009.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Running make for P/PL/PLOBBES/Mail-IMAPClient-3.31.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j

  CPAN.pm: Building P/PL/PLOBBES/Mail-IMAPClient-3.31.tar.gz

Warning: Prerequisite 'Parse::RecDescent => 1.94' for 'PLOBBES/Mail-IMAPClient-3.31.tar.gz' failed when processing 'JTBRAUN/Parse-RecDescent-1.967009.tar.gz' with 'writemakefile => NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 65280'. Continuing, but chances to succeed are limited.
CPAN: Time::HiRes loaded ok (v1.9721)
cp lib/Mail/IMAPClient/BodyStructure/Parse.pm blib/lib/Mail/IMAPClient/BodyStructure/Parse.pm
cp lib/Mail/IMAPClient/Thread.pm blib/lib/Mail/IMAPClient/Thread.pm
cp lib/Mail/IMAPClient/BodyStructure/Parse.grammar blib/lib/Mail/IMAPClient/BodyStructure/Parse.grammar
cp lib/Mail/IMAPClient.pod blib/lib/Mail/IMAPClient.pod
cp lib/Mail/IMAPClient/Thread.pod blib/lib/Mail/IMAPClient/Thread.pod
cp lib/Mail/IMAPClient/MessageSet.pm blib/lib/Mail/IMAPClient/MessageSet.pm
cp lib/Mail/IMAPClient/BodyStructure/Parse.pod blib/lib/Mail/IMAPClient/BodyStructure/Parse.pod
cp lib/Mail/IMAPClient/BodyStructure.pm blib/lib/Mail/IMAPClient/BodyStructure.pm
cp lib/Mail/IMAPClient/Thread.grammar blib/lib/Mail/IMAPClient/Thread.grammar
cp lib/Mail/IMAPClient.pm blib/lib/Mail/IMAPClient.pm
Manifying blib/man3/Mail::IMAPClient::Thread.3pm
Manifying blib/man3/Mail::IMAPClient::MessageSet.3pm
Manifying blib/man3/Mail::IMAPClient::BodyStructure.3pm
Manifying blib/man3/Mail::IMAPClient::BodyStructure::Parse.3pm
Manifying blib/man3/Mail::IMAPClient.3pm
  PLOBBES/Mail-IMAPClient-3.31.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/basic.t .......... 2/85
#   Failed test 'created client'
#   at t/basic.t line 62.
Cannot log into imap.gmail.com as testing4001@gmail.com.
Are server/user/password correct?
# Looks like you planned 85 tests but ran 2.
# Looks like you failed 1 test of 2 run.
# Looks like your test exited with 255 just after 2.
t/basic.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 84/85 subtests
t/body_string.t .... ok
t/bodystructure.t .. 1/41
#   Failed test 'use Mail::IMAPClient::BodyStructure;'
#   at t/bodystructure.t line 7.
#     Tried to use 'Mail::IMAPClient::BodyStructure'.
#     Error:  Can't locate Parse/RecDescent.pm in @INC (@INC contains: /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/arch /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib/Mail/IMAPClient/BodyStructure/Parse.pm line 2.
# BEGIN failed--compilation aborted at /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib/Mail/IMAPClient/BodyStructure/Parse.pm line 2.
# Compilation failed in require at /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib/Mail/IMAPClient/BodyStructure.pm line 5.
# BEGIN failed--compilation aborted at /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib/Mail/IMAPClient/BodyStructure.pm line 5.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Looks like you planned 41 tests but ran 1.
# Looks like you failed 1 test of 1 run.
t/bodystructure.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 41/41 subtests
t/fetch_hash.t ..... ok
t/messageset.t ..... ok
t/pod.t ............ skipped: Test::Pod 1.00 required for testing POD
t/simple.t ......... ok
t/thread.t ......... 1/7
#   Failed test 'use Mail::IMAPClient::Thread;'
#   at t/thread.t line 7.
#     Tried to use 'Mail::IMAPClient::Thread'.
#     Error:  Can't locate Parse/RecDescent.pm in @INC (@INC contains: /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/arch /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib/Mail/IMAPClient/Thread.pm line 2.
# BEGIN failed--compilation aborted at /root/.cpan/build/Mail-IMAPClient-3.31-dqVY6j/blib/lib/Mail/IMAPClient/Thread.pm line 2.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Looks like you planned 7 tests but ran 1.
# Looks like you failed 1 test of 1 run.
t/thread.t ......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 7/7 subtests

Test Summary Report
-------------------
t/basic.t        (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 85 tests but ran 2.
t/bodystructure.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 41 tests but ran 1.
t/thread.t       (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 7 tests but ran 1.
Files=8, Tests=49, 602 wallclock secs ( 0.15 usr  0.14 sys +  1.12 cusr  0.42 csys =  1.83 CPU)
Result: FAIL
Failed 3/8 test programs. 3/49 subtests failed.
make: *** [test_dynamic] Error 1
  PLOBBES/Mail-IMAPClient-3.31.tar.gz
one dependency not OK (Parse::RecDescent); additionally test harness failed
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PLOBBES/Mail-IMAPClient-3.31.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 JTBRAUN/Parse-RecDescent-1.967009.tar.gz     : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 65280
 PLOBBES/Mail-IMAPClient-3.31.tar.gz          : make_test NO one dependency not OK (Parse::RecDescent); additionally test harness failed
I have tried both through CPAN (as shown above) and using cpan via the prompt as shown here:

Code:
perl -MCPAN -e 'install Mail::IMAPClient'
And they both produce the error message shown just above.

Distro is

Code:
# rpm -qf /etc/*-release
centos-release-6-2.el6.centos.7.i686
Can anyone help me deciper this! Thanks in advance!

Last edited by brokenpromises; 07-12-2012 at 04:20 AM.
 
Old 07-12-2012, 04:36 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,915

Rep: Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586Reputation: 2586
# yum install perl-Mail-IMAPClient

"perl-Mail-IMAPClient" is in the EPEL repo ..
https://fedoraproject.org/wiki/EPEL
>> http://ftp.crc.dk/fedora-epel/6/i386...6-7.noarch.rpm
> # rpm -Uvh epel-release-6-7.noarch.rpm


.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't relay mail: did not issue MAIL/EXPN/VRFY/ETRN JimmyTheSaint Linux - Server 20 12-17-2012 11:00 PM
mail loops back to me (MX problem?) OR did not issue MAIL/EXPN/VRFY/ETRN skc Linux - Server 6 07-09-2011 09:18 PM
Perl datescript Issue, missing perl module? stefaandk Programming 5 02-19-2006 10:55 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 06:22 AM
can't install Perl Mail::Sendmail Jim Miller Linux - Software 0 11-30-2001 04:28 PM


All times are GMT -5. The time now is 03:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration