How do I install Encode::HanExtra for ActivePerl?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 20:01:50

问题


I want to enable Encode::HanExtra on Windows XP environment. I can't find the name HanExtra or Encode-HanExtra in PPM GUI. Is there any alias name for it?


回答1:


Encode-HanExtra does exist according to this page but there is no Windows build. Some options:

  • Encode::CNMap can convert between many different Chinese encodings (gb2312, big5, utf8, gbk). ActivePerl name is Encode-CNMap.

  • There is an ActivePerl version of Encode::CN::Utility which can convert characters between Hanzi, GBK and Unicode/UTF-8. ActivePerl name is Encode-CN-Utility.

  • You could install Strawberry Perl instead of ActivePerl. This is a community distribution of Perl for Windows that uses CPAN, so any module on CPAN can be installed (except platform-dependent modules). After installing run cpan Encode::HanExtra.

  • You could build your own PPM version of Encode::HanExtra (not recommended)




回答2:


Encode::HanExtra is provided by Trouchelle's PPM repository, here for example built for ActiveState Perl 5.10: http://trouchelle.com/perl/ppmrepview.pl?l=E&v=10#Encode-HanExtra




回答3:


Is there some special reason that you want to use ActivePerl?

You might consider using Strawberry Perl so you can use the normal CPAN tools to install any module that you want, regardless if someone has created a package for you.



来源:https://stackoverflow.com/questions/2726641/how-do-i-install-encodehanextra-for-activeperl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!