By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,710 Members | 1,906 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,710 IT Pros & Developers. It's quick & easy.

how to install an CPAN module through PPM

P: 65
Hi everyone,

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

Problem:

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 ??

Note:

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.

Thanks,
Vijayarl
Sep 8 '08 #1
Share this Question
Share on Google+
3 Replies


nithinpes
Expert 100+
P: 410
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\" "
  2.  
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> 
  3.  
The module will be downloaded and installed.
Sep 9 '08 #2

KevinADC
Expert 2.5K+
P: 4,059
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

numberwhun
Expert Mod 2.5K+
P: 3,503
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.

Regards,

Jeff
Sep 9 '08 #4

Post your reply

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