我正在尝试通过Mac OS X Leopard使用CPAN安装MIME :: Lite,CPAN只会报告以下消息:
cpan shell -- CPAN exploration and modules installation (v1.9304) ReadLine support enabled cpan[1]> install MIME-Lite CPAN: Storable loaded ok (v2.21) Going to read /private/var/root/Library/Application Support/.cpan/Metadata Database was generated on Mon, 09 Nov 2009 03:28:37 GMT Warning: Cannot install MIME-Lite, don't know what it is. Try the command i /MIME-Lite/ to find objects with matching identifiers. CPAN: Time::HiRes loaded ok (v1.86) cpan[2]> i /MIME-Lite/ Distribution ALIAN/MIME-Lite-HTML-1.23.tar.gz Distribution CHUNZI/MIME-Lite-TT-HTML-0.04.tar.gz Distribution HORIUCHI/MIME-Lite-TT-0.02.tar.gz Distribution HORIUCHI/MIME-Lite-TT-Japanese-0.08.tar.gz Distribution RJBS/MIME-Lite-3.027.tar.gz Distribution TYPESTER/MIME-Lite-TT-HTML-Japanese-0.05.tar.gz 6 items found
有谁知道如何解决这个问题?
答案 0 :(得分:4)
试试install MIME::Lite
。它应该按包名而不是文件名进行搜索。
答案 1 :(得分:1)
在命令行中,告诉cpan
要安装哪个模块:
cpan MIME::Lite
您将其分配给分发名称。
答案 2 :(得分:0)
如您所见,有多个分发匹配"MIME-Lite"
。您可以通过名称引用所需的特定分发版(例如install RJBS/MIME-Lite
)来安装所需的特定分发版,但只需install MIME::Lite
即可。
答案 3 :(得分:0)
1)打开终端
2)键入sudo CPAN
3)输入install Module :: name 例如,安装MIME :: Lite
它将为您安装MIME :: Lite模块。