472,992 Members | 3,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,992 software developers and data experts.

how to install an CPAN module through PPM

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
3 4385
nithinpes
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\" "
  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
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
numberwhun
3,509 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.

Regards,

Jeff
Sep 9 '08 #4

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

Similar topics

0
by: Randell D. | last post by:
Folks, I have installed MySQL v4 (client, server and development rpm's). I've tried and failed to use the recommended mysqladmin to set a root password after the installation (I have another post...
0
by: blupp | last post by:
Hi, I am trying to install the package, but get the following error: cpan> install Date::Manip Running install for module Date::Manip Running make for S/SB/SBECK/DateManip-5.42a.tar.gz LWP...
0
by: sam | last post by:
perl -MCPAN -e 'install Time::HiRes' CPAN: Storable loaded ok Going to read /usr/local/cpan/Metadata Database was generated on Mon, 13 Oct 2003 09:46:36 GMT Running install for module Time::HiRes...
0
by: simon | last post by:
Hi I am trying to install MIME::Base64 and MIME::QuotedPrint using CPAN on Suse 9.1. Suse comes with Perl v5.8.3 already installed. The error message I receive is as follows: ...
0
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
7
numberwhun
by: numberwhun | last post by:
**NOTE: This article is written using the 5.8.8 Alpha2 release of Strawberry Perl. I am writing this article with much joy and glee. This is due to the fact that Active State no longer has a...
3
shrek123
by: shrek123 | last post by:
Hi, I am trying to install DBI bundle on my windows machine. It is giving me following error while i am running Makefile.pl. ####################Error################################### ***...
1
by: spatro | last post by:
Hi, I am trying to install DBD::mysql using the CPAN and I am facing the following error: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Warning:...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.