T-Fen has asked for the wisdom of the Perl Monks concerning the following question:
Hello perl monks-
I'm on a Mac and recently upgraded from Mavericks to Yosemite which might be the cause of my current issue.
I am using mutt with t-prot and getting the following error when attempting to view a message in mutt (which invokes t-prot)
'Can't locate Locale/gettext.pm in @INC (you may need to install the Locale::gettext module) (@INC contains: /Library/Perl/5.12 /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /usr/local/bin/t-prot line 1147.When i do a search for getttext, I see the following:
/Library/Perl/5.16/darwin-thread-multi-2level/Locale/gettext.pm /Library/Perl/5.16/darwin-thread-multi-2level/auto/Locale/gettext /Library/Perl/5.16/darwin-thread-multi-2level/auto/Locale/gettext/.pac +klist /Library/Perl/5.16/darwin-thread-multi-2level/auto/Locale/gettext/gett +ext.bs /Library/Perl/5.16/darwin-thread-multi-2level/auto/Locale/gettext/gett +ext.bundle /Previous System/Library/Perl/5.16/darwin-thread-multi-2level/auto/Loc +ale/gettext /Previous System/usr/local/Cellar/gettext/0.19.3/share/doc/gettext/exa +mples/hello-perl /Previous System/usr/local/Cellar/gettext/0.19.3/share/doc/gettext/exa +mples/hello-perl/m4 /Previous System/usr/local/Cellar/gettext/0.19.3/share/doc/gettext/exa +mples/hello-perl/po /usr/local/Cellar/gettext/0.19.3/share/doc/gettext/examples/hello-perl /usr/local/Cellar/gettext/0.19.3/share/doc/gettext/examples/hello-perl +/INSTALL /usr/local/Cellar/gettext/0.19.3/share/doc/gettext/examples/hello-perl +/Makefile.am /usr/local/Cellar/gettext/0.19.3/share/doc/gettext/examples/hello-perl +/autoclean.sh
So seeing that @INC doesn't appear to look in /Library/Perl/5.16/ I then added the path using:
$ PERL5LIB=/Library/Perl/5.16/darwin-thread-multi-2level/; export PERL5LIBDoing that, I now get this error when trying to view a message with mutt/t-prot:
'Perl API version v5.16.0 of v5.16.0 does not match v5.18.0 at /System +/Library/Perl/5.18/darwin-thread-multi-2level/DynaLoader.pm line 217. + + + Compilation failed in req +uire at /usr/local/bin/t-prot line 1147.
/Library/Perl/ contains a /5.16 and a /5.18 directory but looks like anything related to gettext is only in /5.16. Looking for guidance on how to fix this so that the needed files are found.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl version issue?
by tobyink (Canon) on Oct 26, 2014 at 03:11 UTC | |
|
Re: Perl version issue?
by perlron (Pilgrim) on Oct 26, 2014 at 09:14 UTC | |
by T-Fen (Acolyte) on Oct 26, 2014 at 13:02 UTC | |
by perlron (Pilgrim) on Oct 26, 2014 at 22:25 UTC | |
|
Re: Perl version issue?
by farang (Chaplain) on Oct 27, 2014 at 01:11 UTC | |
by T-Fen (Acolyte) on Oct 27, 2014 at 01:48 UTC | |
by farang (Chaplain) on Oct 27, 2014 at 03:38 UTC | |
by T-Fen (Acolyte) on Oct 27, 2014 at 11:26 UTC | |
by Corion (Patriarch) on Oct 27, 2014 at 12:12 UTC | |
by T-Fen (Acolyte) on Oct 27, 2014 at 11:33 UTC |