470,849 Members | 1,236 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

how to install an CPAN module through PPM

Hi everyone,

Am trying to install the CPAN module : Spreadsheet::Excelsheet through PPM
i have downloaded the Spreadsheet-ParseExcel-0.33.tar.gz file & uncompress it


i have followed the steps mention in the [HTML]http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlmodinstall.html [/HTML] for Win2k OS.

In this document it says, if PPM is installed the we can installed the required module through it.

i type the ppm in the cmd prompt, then i get an ppm window.
now my question is how to use this utility to install the required module ??


Even i tried to install the CPAN module without PPM utility but after pasting all the files in \perl\lib folder

i typed perl -e 'print "@INC"' in cmd prompt,but i got this result :

C:\Perl\bin>perl -e 'print "@INC"'
Can't find string terminator "'" anywhere before EOF at -e line 1.

can anyone let me know where am doing the mistake ? and the procedure to install the above said CPAN module as i need to use this module in my perl script.

Sep 8 '08 #1
3 4279
410 Expert 256MB
On Windows, the commands passed in perl one-liners should be within double-quotes and not single-quotes as in Linux.
You may have to escape other double quotes that are used inside command statement.

Expand|Select|Wrap|Line Numbers
  1. perl -e "print \"@INC\" "
To install CPAN module through PPM, enter ppm in the command prompt. You will get ppm> prompt (if you are using version older than 5.8, else a GUI).
To search for modules/ install them:
Expand|Select|Wrap|Line Numbers
  1. ppm> search <module name> 
  2. ppm> i <module name> 
The module will be downloaded and installed.
Sep 9 '08 #2
4,059 Expert 2GB
now my question is how to use this utility to install the required module ??
If you have activeperl installed, the PPM instructions are in the activestate/activeperl folder. But you can't use PPM unless the module was made to be installed using PPM, which if you downloaded it from CPAN its not. You can use it via the "lib" pragma. Read the "lib" pragma page on the perldoc website or on your local install of activeperl.;
Sep 9 '08 #3
3,503 Expert Mod 2GB
Or, you could uninstall that Active State stuff, download and install Strawberry Perl and get to installing modules the way that they were meant to be installed. :)

Sorry, I hate AS and their proprietary PPM with complete lack of support for ALL CPAN modules.


Sep 9 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Randell D. | last post: by
reply views Thread by blupp | last post: by
reply views Thread by sam | last post: by
reply views Thread by simon | last post: by
reply views Thread by Yun Guan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.