473,401 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 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 4406
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:...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.