在 Mac OS X 上通过 CPAN 安装 MIME::Lite 时出现问题

发布于 2024-08-10 19:10:21 字数 962 浏览 4 评论 0原文

我正在尝试通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

假面具 2024-08-17 19:10:21

尝试安装 MIME::Lite。它应该按包名称而不是文件名进行搜索。

Try install MIME::Lite. It should search by package name instead of file name.

尬尬 2024-08-17 19:10:21

在命令行中,只需告诉 cpan 要安装哪个模块

 cpan MIME::Lite

您为它提供了发行版名称的一部分。

At the command line, just tell cpan which module to install:

 cpan MIME::Lite

You were giving it part of a distribution name.

枯叶蝶 2024-08-17 19:10:21

正如您所看到的,有多个发行版匹配“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 just install MIME::Lite should work as well.

So尛奶瓶 2024-08-17 19:10:21

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文