在 Mac OS X 上通过 CPAN 安装 MIME::Lite 时出现问题
我正在尝试通过 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
有谁知道我如何解决此问题?
I am trying to install MIME::Lite using CPAN via Mac OS X Leopard and CPAN just keeps reporting back the following message:
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
Does anyone know how I can resolve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试
安装 MIME::Lite
。它应该按包名称而不是文件名进行搜索。Try
install MIME::Lite
. It should search by package name instead of file name.在命令行中,只需告诉
cpan
要安装哪个模块:您为它提供了发行版名称的一部分。
At the command line, just tell
cpan
which module to install:You were giving it part of a distribution name.
正如您所看到的,有多个发行版匹配
“MIME-Lite”
。您可以通过名称引用来安装您想要的特定发行版(例如install RJBS/MIME-Lite
),但只需install MIME::Lite
也可以。As you can see, there is more than one distribution matching
"MIME-Lite"
. You can install the specific distribution you want by referring to it by name (e.g.install RJBS/MIME-Lite
), but justinstall MIME::Lite
should work as well.1) 打开终端
2) 输入 sudo CPAN
3) 输入 install Module::name
例如,安装 MIME::Lite
它将为您安装 MIME::Lite 模块。
1) Open terminal
2) Type sudo CPAN
3) Type install Module::name
e.g, install MIME::Lite
It will install MIME::Lite module for you.