473,394 Members | 1,061 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,394 software developers and data experts.

unable to run the perl script using Eclipse

Hi All,

i have the following software installed in my system :
1.OS: Win2k
2.Eclipse Version used :3.4.0 & even the perl too...

1. I have imported the my own perl project in Eclipse, when i tried to run the External Tools --> Perl -w
am getting the popup saying
'Launching perl -w encounterd a problem.'
then it says :

" Variable references empty selection:
${container_loc} "

I have set the Argument section in External Tools Configuration as :
Expand|Select|Wrap|Line Numbers
  1. /c cd /C ${container_loc} && perl -w ${resource_name}
am bit confused here....
what exactly i need to mention in container_loc & resource_name variables ??

2. when i try to run the *.pl in Eclipse, i get an error message saying
Expand|Select|Wrap|Line Numbers
  1. an't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains: C:/Documents and Settings/RAGHAVANV/workspace/.metadata/.plugins/org.epic.debug C:/Documents and Settings/RAGHAVANV/workspace/svap1/Perl_Tools_ICON_PROD_SVAP_2_15 C:/Perl/site/lib C:/Perl/lib .) at C:/Documents and Settings/RAGHAVANV/workspace/svap1/Perl_Tools_ICON_PROD_SVAP_2_15/process_stats_iconprod.pl line 4.
even though i have installed the Spreadseet::WriteExcel.pm module in my system.

can anyone do please give me the exact steps to follow to install the perl modules in windows.

i have followed these steps :
1. perl Makefile.pl
2. make
3.make test
4.make install

when i try to run the perl script through cmd prompt, i get this error message

"C:\>cd perl

C:\Perl>cd bin

C:\Perl\bin>perl process_stats_iconprod.pl
Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains: C:/Perl/site/lib
C:/Perl/lib .) at process_stats_iconprod.pl line 4.
BEGIN failed--compilation aborted at process_stats_iconprod.pl line 4.

C:\Perl\bin>
Sep 11 '08 #1
4 8535
numberwhun
3,509 Expert Mod 2GB
Well, if its telling you it isn't installed, then its not installed where @INC is looking (assuming your build worked).

Questions:

1. What version of Perl are you using on Windows? Active State or Strawberry Perl?
2. Why don't you use the module installation method for the version of Perl you have installed (ppm for Active State or the standard CPAN interface for Strawberry Perl)? To me, that is much more preferable than compiling the module yourself.

When you install the module, you have to make sure that it installs to the location where @INC is looking. To see where that is, run this from the command line:

Expand|Select|Wrap|Line Numbers
  1. perl -e 'print "@INC\n";
  2.  
That will quicly show you where Perl looks for modules. If it is installed to a different location, then you will have to add to @INC in your script.

Regards,

Jeff
Sep 11 '08 #2
Well, if its telling you it isn't installed, then its not installed where @INC is looking (assuming your build worked).

Questions:

1. What version of Perl are you using on Windows? Active State or Strawberry Perl?
2. Why don't you use the module installation method for the version of Perl you have installed (ppm for Active State or the standard CPAN interface for Strawberry Perl)? To me, that is much more preferable than compiling the module yourself.

When you install the module, you have to make sure that it installs to the location where @INC is looking. To see where that is, run this from the command line:

Expand|Select|Wrap|Line Numbers
  1. perl -e 'print "@INC\n";
  2.  
That will quicly show you where Perl looks for modules. If it is installed to a different location, then you will have to add to @INC in your script.

Regards,

Jeff

Hi Jeff,

Thanks 4 your reply..

1. am using perl version is v5.10.0


now i have one more doubt, how to install that module in

Expand|Select|Wrap|Line Numbers
  1. C:/Perl/site/lib
Expand|Select|Wrap|Line Numbers
  1. C:/Perl/lib
do i need to copy entire module folder & it's content to this location or just *.pm file.

can you please give me the detail steps to install the perl modules, as am newbie to perl am finding it very tough to install even though i have read many articles on this ????
can you just give me step by step procedure to install the perl module.please


Thanks
Vijayarl
Sep 11 '08 #3
numberwhun
3,509 Expert Mod 2GB
Hi Jeff,

Thanks 4 your reply..

1. am using perl version is v5.10.0


now i have one more doubt, how to install that module in

Expand|Select|Wrap|Line Numbers
  1. C:/Perl/site/lib
Expand|Select|Wrap|Line Numbers
  1. C:/Perl/lib
do i need to copy entire module folder & it's content to this location or just *.pm file.

can you please give me the detail steps to install the perl modules, as am newbie to perl am finding it very tough to install even though i have read many articles on this ????
can you just give me step by step procedure to install the perl module.please


Thanks
Vijayarl
Again, I don't have too much experience in the manual compiling of modules.

As I asked, which distributor of Perl are you using for 5.10? Is it Active State's Perl distribution or Strawberry Perl?

I would use their installers I mentioned previously so it gets installed correctly.

Regards,

Jeff
Sep 11 '08 #4
KevinADC
4,059 Expert 2GB
its activeperl Jeff, the directory path for strawberry perl is:

c:\strawberry-perl

unless the user changes that.

Trying to install modules that have not been ported to activeperl can be frustrating if there are dependencies. Better to use the "lib" pragma. Than all you have to do is copy and paste source code into properly named files and folders and use them in your perl programs.
Sep 11 '08 #5

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

Similar topics

0
by: Naren Ramakrishnan | last post by:
Hi, Perl Version : 5.8.0 OS : HPUX 11.0 I am a newbie to perl. I am getting an error like this when I try to run the perl script Can't find 'boot_POSIX' symbol in...
5
by: Bob MacBob | last post by:
Hi all, I have two scripts: 1/ parser.pl which parses a text file and stuffs the relevant data into a mySQL DB - works fine no probs there 2/ importer.pl which I want to run through all the...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
by: nehaz | last post by:
i wanted to open a file using perl and the output of print cmd to be added in that file. can i do it using perl ? what if i use following the following ".pl " file. open CONFIG, ">HELLO.txt";...
1
by: megaman1 | last post by:
I’m trying to connect with perl DBD::Oracle on Windows to Oracle DB (Linux). I compiled the Oracle.dll using the commands “perl Makefile.pl” “nmake” and “nmake install”, but when I try to connect...
1
by: srikantvm | last post by:
Hi All, I am using perl, v5.8.8 built for MSWin32-x86-multi-thread and i tried installing the DBD-Oracle module but unable to install. Please find below the steps followed by me: 1) I first...
5
by: vijayarl | last post by:
Hi everyone, I have installed ActivePerl-5.10.0.1001-MSWin32-x86-283495.msi in my system (os-win2k) problem is when i try to get perl version by typing perl -v in cmd prompt i get a popup saying...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.