以Encode::JP::Emoji为例说明。
1.解压缩安装包,并且进入目录
2.执行Perl
[root@alexa Encode-JP-Emoji-0.60]$ perl Makefile.PL
Writing Makefile for Encode::JP::Emoji
3.Make
[root@alexa Encode-JP-Emoji-0.60]# make
cp lib/Encode/JP/Emoji.pm blib/lib/Encode/JP/Emoji.pm
cp lib/Encode/JP/Emoji/Property.pm blib/lib/Encode/JP/Emoji/Property.pm
cp lib/Encode/JP/Emoji/PP.pm blib/lib/Encode/JP/Emoji/PP.pm
cp lib/Encode/JP/Emoji/FB_EMOJI_TEXT.pm blib/lib/Encode/JP/Emoji/FB_EMOJI_TEXT.pm
cp lib/Encode/JP/Emoji/Encoding.pm blib/lib/Encode/JP/Emoji/Encoding.pm
cp lib/Encode/JP/Emoji/Mapping.pm blib/lib/Encode/JP/Emoji/Mapping.pm
Manifying blib/man3/Encode::JP::Emoji::Mapping.3pm
Manifying blib/man3/Encode::JP::Emoji::Property.3pm
Manifying blib/man3/Encode::JP::Emoji.3pm
Manifying blib/man3/Encode::JP::Emoji::PP.3pm
Manifying blib/man3/Encode::JP::Emoji::FB_EMOJI_TEXT.3pm
Manifying blib/man3/Encode::JP::Emoji::Encoding.3pm
[root@alexa Encode-JP-Emoji-0.60]# make test -- 这一步其实有没有都可以
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t .................. ok
t/01-pod.t ................... skipped: Test::Pod 1.22 required for testing POD
t/10-sun.t ................... ok
t/11-scream.t ................ ok
t/12-keycap1.t ............... ok
t/13-newmoon.t ............... ok
t/20-roundtrip-docomo.t ...... ok
t/21-roundtrip-kddiapp.t ..... ok
t/22-roundtrip-kddiweb.t ..... ok
t/23-roundtrip-softbank3g.t .. ok
t/24-roundtrip-softbank2g.t .. ok
t/25-roundtrip-mixed.t ....... ok
t/26-roundtrip-unicode.t ..... ok
t/40-mime-name.t ............. ok
t/41-fallback.t .............. ok
t/42-fallback-text.t ......... ok
t/45-property.t .............. ok
t/47-softbank2g.t ............ ok
t/48-mixed.t ................. ok
t/50-unicode-sources.t ....... ok
t/70-synopsis-emoji.t ........ ok
t/71-synopsis-fallback.t ..... ok
All tests successful.
Files=22, Tests=25364, 6 wallclock secs ( 2.46 usr 0.15 sys + 5.90 cusr 0.17 csys = 8.68 CPU)
Result: PASS
[root@alexa Encode-JP-Emoji-0.60]# make install
Installing /usr/local/share/perl5/Encode/JP/Emoji.pm
Installing /usr/local/share/perl5/Encode/JP/Emoji/FB_EMOJI_TEXT.pm
Installing /usr/local/share/perl5/Encode/JP/Emoji/PP.pm
Installing /usr/local/share/perl5/Encode/JP/Emoji/Property.pm
Installing /usr/local/share/perl5/Encode/JP/Emoji/Mapping.pm
Installing /usr/local/share/perl5/Encode/JP/Emoji/Encoding.pm
Installing /usr/local/share/man/man3/Encode::JP::Emoji::Encoding.3pm
Installing /usr/local/share/man/man3/Encode::JP::Emoji::PP.3pm
Installing /usr/local/share/man/man3/Encode::JP::Emoji::Mapping.3pm
Installing /usr/local/share/man/man3/Encode::JP::Emoji.3pm
Installing /usr/local/share/man/man3/Encode::JP::Emoji::Property.3pm
Installing /usr/local/share/man/man3/Encode::JP::Emoji::FB_EMOJI_TEXT.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
4.测试是否可以执行
[root@alexa Encode-JP-Emoji-0.60]# perl -MEncode::JP::Emoji -e1
[root@alexa Encode-JP-Emoji-0.60]#