help with perl module installation

Hi,

I am trying to install perl modules in HPUX under my account. I do not have the root permission.

The module name I am trying to install is Spreadsheet-WriteExcel. I have downloaded the tar.gz file from CPAN and extracted the same under my home directory.

When I try do 'perl Makefile.PL' it shows the following warning :

/home/mukher2/perl_modules/Spreadsheet-WriteExcel-2.17> perl Makefile.PL
Warning: prerequisite Parse::RecDescent failed to load: Can't locate Parse/RecDescent.pm in @INC (@INC contains: /opt/perl/
lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/s
ite_perl/5.6.1 /opt/perl/lib/site_perl .) at (eval 5) line 3.
Writing Makefile for Spreadsheet::WriteExcel
/home/mukher2/perl_modules/Spreadsheet-WriteExcel-2.17>

when I try the next step to do a 'make' I am getting :

/home/mukher2/perl_modules/Spreadsheet-WriteExcel-2.17> make
cp bin/chartex blib/script/chartex
/usr/bin/perl -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 -MExtUtils::MakeMaker -e "MY->fi
xin(shift)" blib/script/chartex
Manifying blib/man3/Spreadsheet::WriteExcel::BIFFwriter.3
Manifying blib/man3/Spreadsheet::WriteExcel.3
Manifying blib/man3/Spreadsheet::WriteExcel::Formula.3
Manifying blib/man3/Spreadsheet::WriteExcel::Worksheet.3
Manifying blib/man3/Spreadsheet::WriteExcel::Utility.3
Manifying blib/man1/chartex.1
Manifying blib/man3/Spreadsheet::WriteExcel::Format.3
Manifying blib/man3/Spreadsheet::WriteExcel::OLEwriter.3
Manifying blib/man3/Spreadsheet::WriteExcel::Big.3
Manifying blib/man3/Spreadsheet::WriteExcel::Workbook.3
Manifying blib/man3/Spreadsheet::WriteExcel::WorkbookBig.3
Manifying blib/man3/Spreadsheet::WriteExcel::Chart.3
/home/mukher2/perl_modules/Spreadsheet-WriteExcel-2.17>

while I try to test it by 'make test' it's showing :

/home/mukher2/perl_modules/Spreadsheet-WriteExcel-2.17> make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/li
b/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/00_IEEE_double....ok
t/01_add_worksheet..Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/01_add_worksheet.t line 16.
BEGIN failed--compilation aborted at t/01_add_worksheet.t line 16.
t/01_add_worksheet..dubious
Test returned status 2 (wstat 512, 0x200)
t/02_merge_formats..Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/02_merge_formats.t line 18.
BEGIN failed--compilation aborted at t/02_merge_formats.t line 18.
t/02_merge_formats..dubious
Test returned status 2 (wstat 512, 0x200)
t/11_date_time......Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/11_date_time.t line 15.
BEGIN failed--compilation aborted at t/11_date_time.t line 15.
t/11_date_time......dubious
Test returned status 2 (wstat 512, 0x200)
t/12_date_only......Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/12_date_only.t line 15.
BEGIN failed--compilation aborted at t/12_date_only.t line 15.
t/12_date_only......dubious
Test returned status 2 (wstat 512, 0x200)
t/13_date_seconds...Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/13_date_seconds.t line 15.
BEGIN failed--compilation aborted at t/13_date_seconds.t line 15.
t/13_date_seconds...dubious
Test returned status 2 (wstat 512, 0x200)
t/21_escher.........Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/21_escher.t line 17.
BEGIN failed--compilation aborted at t/21_escher.t line 17.
t/21_escher.........dubious
Test returned status 2 (wstat 512, 0x200)
t/22_mso_drawing_group.Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-
thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /o
pt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/sit
e_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /o
pt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5
.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_p
erl/5.6.1 /opt/perl/lib/site_perl .) at t/22_mso_drawing_group.t line 16.
BEGIN failed--compilation aborted at t/22_mso_drawing_group.t line 16.
t/22_mso_drawing_group.dubious
Test returned status 2 (wstat 512, 0x200)
t/23_note...........Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/23_note.t line 17.
BEGIN failed--compilation aborted at t/23_note.t line 17.
t/23_note...........dubious
Test returned status 2 (wstat 512, 0x200)
t/24_txo............Can't locate Test/More.pm in @INC (@INC contains: blib/arch blib/lib /opt/perl/lib/5.6.1/PA-RISC1.1-thr
ead-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/
perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_p
erl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/
perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl . /opt/perl/lib/5.6.
1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl
/5.6.1 /opt/perl/lib/site_perl .) at t/24_txo.t line 17.
BEGIN failed--compilation aborted at t/24_txo.t line 17.
t/24_txo............dubious
Test returned status 2 (wstat 512, 0x200)
Failed Test Status Wstat Total Fail Failed List of Failed
---------------------------------------------------------------------------------------------------------------------------
t/01_add_worksheet.t 2 512 ?? ?? % ??
t/02_merge_formats.t 2 512 ?? ?? % ??
t/11_date_time.t 2 512 ?? ?? % ??
t/12_date_only.t 2 512 ?? ?? % ??
t/13_date_seconds.t 2 512 ?? ?? % ??
t/21_escher.t 2 512 ?? ?? % ??
t/22_mso_drawing_group.t 2 512 ?? ?? % ??
t/23_note.t 2 512 ?? ?? % ??
t/24_txo.t 2 512 ?? ?? % ??
Failed 9/10 test scripts, 10.00% okay. 0/2 subtests failed, 100.00% okay.
*** Error exit code 2

Stop.
/home/mukher2/perl_modules/Spreadsheet-WriteExcel-2.17>

when I try to use the perl module in a perl code - its showing :

/home/mukher2> perl testpl.pl
syntax error at testpl.pl line 11, near "use Spreadsheet::WriteExcel"
Execution of testpl.pl aborted due to compilation errors.
/home/mukher2>

Any advise please ?

It's not your module - although you may have problems with that in the future.

This is a syntax error. Your perl script won't even compile, which means it's not written correctly. It hasn't even tried to load the module yet.

Can you paste the lines around line 11 of your script?

Hi,

Thanks for pointing this out. I have resolved the problem - the lib was not pointed correctly.

Thanks again!