Hi all- OK, so trying to get t-prot installed but appears there is an issue with a missing Perl module/component. New to Perl and cpan, so bear with me. When I try to read a message in mutt with t-prot installed and sourced, I get the following error when trying to read a message:
Fetching message...Can't locate Locale/gettext.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2lev +el /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3/darwin-thread-multi-2level /Library/Perl/Updates/5.12.3 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /usr/local/bin/t-prot line 1123 +. Could not copy message
So looks like I'm missing Locale/gettext.pm. When I search for this on the cpan search page, I get Locale::gettext (what I assume I need). When I try to install with 'sudo cpan Locale::gettext' I get:
Going to read '/Users/trey/.cpan/Metadata' Database was generated on Fri, 08 Jun 2012 14:58:04 GMT Running install for module 'Locale::gettext' Running make for P/PV/PVANDRY/gettext-1.05.tar.gz Checksum for /Users/trey/.cpan/sources/authors/id/P/PV/PVANDRY/gettext-1.05.tar.gz +ok CPAN.pm: Going to build P/PV/PVANDRY/gettext-1.05.tar.gz checking for gettext... no checking for gettext in -lintl... no gettext function not found. Please install libintl at Makefile.PL line 18. Warning: No success on command[/usr/bin/perl Makefile.PL] PVANDRY/gettext-1.05.tar.gz /usr/bin/perl Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install
Looks like the above suggest I should install 'libintl' which appears to be provided by Log::Report::Translator::Gettext (which is already installed) So...I'm at a loss. Any help greatly appreciated.

In reply to Perl errors on Mac OSX Lion by T-Fen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.