help with perl module installation


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users help with perl module installation
# 1  
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 ?
# 2  
It's not your module - although you may have problems with that in the future.

Quote:
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>
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?
# 3  
Hi,

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

Thanks again!
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #495
Difficulty: Easy
Blocks of code cannot be nested within each other to form sub-blocks.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl Module Installation issue.

I have issue with the perl module installed in the new Linux server I have installed the required module, but still the perl program was not able to find the path I'm getting the below error: Can't locate Log/Log4perl.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/Log4perl.pm... (5 Replies)
Discussion started by: help_scr_seeker
5 Replies

2. Linux

Network card module installation

Hi, I am using Red Hat 9.0 and it does not have the inbuilt driver module for my onboard lan card (RTL 8169). I downloaded the module (file - r8169-6.017.00.tar.bz2 and even r8169-6.015.00.tar.bz2), but when try to install it it says r8169.h , r8169_n.c , Makefile etc are... (2 Replies)
Discussion started by: dextergenious
2 Replies

3. Red Hat

Network card module installation

Hi, I am using Red Hat 9.0 and it does not have the inbuilt driver module for my onboard lan card (RTL 8169). I downloaded the module (file - r8169-6.017.00.tar.bz2 and even r8169-6.015.00.tar.bz2), but when try to install it it says r8169.h , r8169_n.c , Makefile etc are not ELF formats. ... (0 Replies)
Discussion started by: dextergenious
0 Replies

4. Shell Programming and Scripting

problem during perl module installation

Hi 'm getting error while installing perl mdule on linux.can any one tell me how to resolve that error? problem is: CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build J/JD/JDB/Win32-OLE-0.1709.tar.gz OS unsupported Warning: No success on command Warning (usually harmless):... (1 Reply)
Discussion started by: kavi.mogu
1 Replies

5. Windows & DOS: Issues & Discussions

Strawberry perl - New TK module installation error

Hi, I am struggling in installing TK module for strawberry perl. I downloaded TK804 module, extracted to a folder, kept in c:/strawberry/perl/lib path, then from tht path 1) perl makefile.pl 2)dmake 3)dmake test 4)dmake install During perl makefile.pl it is giving error as... (3 Replies)
Discussion started by: vasanth.vadalur
3 Replies

6. Shell Programming and Scripting

calling perl subroutine from perl expect module

All, Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program. Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies

7. Shell Programming and Scripting

Perl Module installation

Hi All, I am failry new to Perl.I am trying to install a Perl module (Filesys::df.pm) in an IBM AIX5.3 server.But I could not succeed in that.I am getting the following error: abcd3dev# make cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias... (6 Replies)
Discussion started by: surjithss
6 Replies

8. Shell Programming and Scripting

perl module installation problems... experts advice needed,...

---------- This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) ----------in win 2000 advanced server,.. i am somewhat comfortable with perl but i am new to perl modules.. when i tried to install xml::simple and xml::parser there... (4 Replies)
Discussion started by: sekar sundaram
4 Replies

9. Shell Programming and Scripting

Replace Perl Module name in all Perl scripts

I want to replace a Perl module name in all my Perl Scripts in the cgi-bin directory. How is it possible? I have the following statement in my scripts use myUtil; I want to change it to use myUtil777; Regards, Rahul (2 Replies)
Discussion started by: rahulrathod
2 Replies

Featured Tech Videos