MT上“Name "Locale::Maketext::Lexicon" used only once:” 問題的解決: 改用Perl內置函數庫

最近從服務器日誌中經常發現MT的錯誤日誌:
Name "Locale::Maketext::Lexicon" used only once: possible typo at
.../extlib/Locale/Maketext.pm line 653.,....

解決方法:

刪除 mt/extlib/目錄下的I18N/ 和 Locale/ 目錄即可;

原因:
服務器上已經升級到Perl 5.10.x了: 很多國際化字符集方面的支持直接使用Perl內置的支持包即可。
[chedong@titans ~/logs/chedong.com/http]$ perl -v

This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章