安装Perl的CPAN模块

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装Perl的CPAN模块相关的知识,希望对你有一定的参考价值。

on cygwin, run 'CPAN' to manage module installs
  1. perl -MCPAN -e shell <<-- to start the shell for CPAN mgr.
  2.  
  3. o conf shell /bin/bash <<-- to set the subshell
  4.  
  5. ref: see perlDocs for 'CPAN' package
  6.  
  7. cpan[4]> look SWF::BinStream <<-- download the package
  8. Running look for module 'SWF::BinStream'
  9.  
  10. Trying to open a subshell in the build directory...
  11. CPAN: Digest::SHA loaded ok (v5.47)
  12. CPAN: Compress::Zlib loaded ok (v2.011)
  13. Checksum for /home/rob/.cpan/sources/authors/id/Y/YS/YSAS/SWF-File-0.42.tar.gz ok
  14. Scanning cache /home/rob/.cpan/build for sizes
  15. DONE
  16. SWF-File-0.42/
  17. SWF-File-0.42/Changes
  18. SWF-File-0.42/dumpswf.plx
  19. SWF-File-0.42/lib/
  20. SWF-File-0.42/lib/SWF/
  21. SWF-File-0.42/lib/SWF/BinStream/
  22. SWF-File-0.42/lib/SWF/BinStream/Codec/
  23. SWF-File-0.42/lib/SWF/BinStream/Codec/Zlib.pm
  24. SWF-File-0.42/lib/SWF/BinStream/Codec.pod
  25. SWF-File-0.42/lib/SWF/BinStream/File.pm
  26. SWF-File-0.42/lib/SWF/BinStream.pm
  27. SWF-File-0.42/lib/SWF/Element.pm
  28. SWF-File-0.42/lib/SWF/Element.pod
  29. SWF-File-0.42/lib/SWF/File.pm
  30. SWF-File-0.42/lib/SWF/Parser.pm
  31. SWF-File-0.42/Makefile.PL
  32. SWF-File-0.42/MANIFEST
  33. SWF-File-0.42/META.yml
  34. SWF-File-0.42/README
  35. SWF-File-0.42/samples/
  36. SWF-File-0.42/samples/img2swf.plx
  37. SWF-File-0.42/samples/jpg2swf.plx
  38. SWF-File-0.42/samples/linkext.plx
  39. SWF-File-0.42/samples/readme.txt
  40. SWF-File-0.42/samples/sample.plx
  41. SWF-File-0.42/test.pl
  42. CPAN: File::Temp loaded ok (v0.20)
  43. Working directory is /home/rob/.cpan/build/SWF-File-0.42-maiOwh <<--- auto cd's to here
  44.  
  45. C:cygwinlibperl5site_perl5.10i686-cygwin
  46.  
  47. cpan[5]> install SWF::BinStream
  48. Running install for module 'SWF::BinStream'
  49. Running make for Y/YS/YSAS/SWF-File-0.42.tar.gz
  50. Prepending /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/arch /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/lib to PERL5LIB for 'get'
  51. Prepending /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/arch /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/lib to PERL5LIB for 'make'
  52.  
  53. CPAN.pm: Going to build Y/YS/YSAS/SWF-File-0.42.tar.gz
  54.  
  55. Checking if your kit is complete...
  56. Looks good
  57. Writing Makefile for SWF::File
  58. cp lib/SWF/Element.pm blib/lib/SWF/Element.pm
  59. cp lib/SWF/BinStream.pm blib/lib/SWF/BinStream.pm
  60. cp lib/SWF/BinStream/Codec/Zlib.pm blib/lib/SWF/BinStream/Codec/Zlib.pm
  61. cp lib/SWF/Parser.pm blib/lib/SWF/Parser.pm
  62. cp lib/SWF/BinStream/Codec.pod blib/lib/SWF/BinStream/Codec.pod
  63. cp lib/SWF/Element.pod blib/lib/SWF/Element.pod
  64. cp lib/SWF/File.pm blib/lib/SWF/File.pm
  65. cp lib/SWF/BinStream/File.pm blib/lib/SWF/BinStream/File.pm
  66. cp dumpswf.plx blib/script/dumpswf.plx
  67. /usr/bin/perl.exe "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/dumpswf.plx
  68. YSAS/SWF-File-0.42.tar.gz
  69. /usr/bin/make -- OK
  70. Prepending /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/arch /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/lib to PERL5LIB for 'test'
  71. Running make test
  72. /usr/bin/perl.exe "-Iblib/lib" "-Iblib/arch" test.pl
  73. 1..12
  74. ok 1
  75. ok 2
  76. ok 3
  77. ok 4
  78. ok 5
  79. ok 6
  80. ok 7
  81. ok 8
  82. ok 9
  83. ok 10
  84. ok 11
  85. ok 12
  86. YSAS/SWF-File-0.42.tar.gz
  87. /usr/bin/make test -- OK
  88. Running make install
  89. Prepending /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/arch /home/rob/.cpan/build/SWF-File-0.42-maiOwh/blib/lib to PERL5LIB for 'install'
  90. Installing /usr/lib/perl5/site_perl/5.10/SWF/BinStream.pm
  91. Installing /usr/lib/perl5/site_perl/5.10/SWF/Element.pm
  92. Installing /usr/lib/perl5/site_perl/5.10/SWF/Element.pod
  93. Installing /usr/lib/perl5/site_perl/5.10/SWF/File.pm
  94. Installing /usr/lib/perl5/site_perl/5.10/SWF/Parser.pm
  95. Installing /usr/lib/perl5/site_perl/5.10/SWF/BinStream/Codec.pod
  96. Installing /usr/lib/perl5/site_perl/5.10/SWF/BinStream/File.pm
  97. Installing /usr/lib/perl5/site_perl/5.10/SWF/BinStream/Codec/Zlib.pm
  98. Installing /usr/bin/dumpswf.plx
  99. Writing /usr/lib/perl5/site_perl/5.10/i686-cygwin/auto/SWF/File/.packlist
  100. Appending installation info to /usr/lib/perl5/5.10/i686-cygwin/perllocal.pod
  101. YSAS/SWF-File-0.42.tar.gz
  102. /usr/bin/make install -- OK
  103.  
  104. cpan[6]> exit
  105. Warning: Configuration not saved.
  106. Lockfile removed.

以上是关于安装Perl的CPAN模块的主要内容,如果未能解决你的问题,请参考以下文章

我用 CPAN 成功安装了一个模块,但是 perl 找不到它。为啥?

安装Perl的CPAN模块

在 XAMPP for Windows 上从 CPAN 安装 perl 模块

如何在使用 perlbrew 时安装 CPAN 模块?

perl 下使用非root用户安装模块

如何安装PAMIE模块