views:

304

answers:

3

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?

+3  A: 

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

Ivan Nevostruev
A: 

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.

Ether
A: 

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

 cpan MIME::Lite

You were giving it part of a distribution name.

brian d foy