How to install script distributions from CPAN?

I tried:

cpan> i /xls2csv/ No objects found of any type for argument /xls2csv/ cpan> install xls2csv Warning: Cannot install xls2csv, don't know what it is. Try the command i /xls2csv/ to find objects with matching identifiers. 

I had no problems installing registered modules, for example.

 cpan> install DateTime 

This is just an xls2csv problem.

Thank you for the information provided.

PS Limited for Windows using ActivePerl 5.10 (I think) I also have the xls2csv-1.06.tar.gz file downloaded and verified by cpan> install C: / ... the path to the file locally / xls 2csv-1.06.tar.gz

This did not work, and I have to install locally.

+6
perl cpan
source share
3 answers

The indexes used by CPAN.pm are all modules oriented, so they do not see distributions that do not contain modules. (xls2csv only has a script.) You can still install them by specifying the full path (by authors / id) of the distribution, just like you should install older or development versions of the distribution:

 cpan> install K/KE/KEN/xls2csv-1.06.tar.gz 
+19
source share

This is a 5 year old script with few tests (7) on Mac and one error report (year). It doesn't seem to have been updated since it was written, so use this script with realistic expectations. In other words, don't be surprised if you can't get it to work.

+1
source share

If you use my cpan (1) command, you can also install everything in the current working directory, telling it to install ".".

 % cpan . 

This should call the normal CPAN.pm process for dependency handling, etc. You must do this in the CPAN.pm shell as well.

If you want to extract the file from the CPAN mirror, you can do this as ysth suggested. You give it a path by authors / id in the repository, and CPAN.pm will find it for you. You skip the step where it looks in the PAUSE index because you already gave it the path to load.

+1
source share

All Articles