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

unable to run the perl script using Eclipse

P: 65
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
Share this Question
Share on Google+
4 Replies


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

P: 65
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
Expert Mod 2.5K+
P: 3,503
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
Expert 2.5K+
P: 4,059
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

Post your reply

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