LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with modules in perl running on linux RHEL 5.4 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-modules-in-perl-running-on-linux-rhel-5-4-a-875555/)

kingston 04-18-2011 12:20 AM

problem with modules in perl running on linux RHEL 5.4
 
Hi all

i am using rhel 5.4 running on hp proliant DL380G6. One of user is getting the following error while running their perl scripts.

Quote:

Can't locate XML/Generator.pm in @INC (@INC contains
perl version is 5.8.8-27.el5

Earlier it was giving error as follows
Quote:

Can't locate IO/Pty.pm in @INC (@INC contains: /project/arts/scripts /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
Then we installed IO modules using cpan utility. After the successfull installation of IO module, it starts giving this XML/genarator issue.

Can someone help me?

chrism01 04-18-2011 12:34 AM

Code:

perl -e shell -MCPAN
as root and install
Code:

XML::Generator
Basically, a missing .pm is specified as dir/file which translates to dir::file in CPAN tool.
NB: case is significant...
Have a look in search.cpan.org if you want to check.
The nice thing about the tool is that (like yum) it handles dependencies for you, & it will ask for confirmation for each one.

kingston 04-18-2011 06:26 AM

i installed successfully and informed the users..waiting for their update....thanks for the help

kingston 04-19-2011 12:25 AM

hi chrism01...after installing the generator module now the error got changed. now it says "XML/XPath.pm is missing". Then i tried installing the Xpath modules but it fails by giving the following errors
Quote:

Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/01basic.t 2 512 5 10 200.00% 1-5
t/02descendant.t 2 512 4 8 200.00% 1-4
t/03star.t 2 512 5 10 200.00% 1-5
t/04pos.t 2 512 4 8 200.00% 1-4
t/05attrib.t 2 512 6 12 200.00% 1-6
t/06attrib_val.t 2 512 5 10 200.00% 1-5
t/07count.t 2 512 7 14 200.00% 1-7
t/08name.t 2 512 5 10 200.00% 1-5
t/09a_string_length.t 2 512 5 10 200.00% 1-5
t/09string_length.t 2 512 5 10 200.00% 1-5
t/10pipe.t 2 512 6 12 200.00% 1-6
t/11axischild.t 2 512 6 12 200.00% 1-6
t/12axisdescendant.t 2 512 6 12 200.00% 1-6
t/13axisparent.t 2 512 4 8 200.00% 1-4
t/14axisancestor.t 2 512 5 10 200.00% 1-5
t/15axisfol_sib.t 2 512 6 12 200.00% 1-6
t/16axisprec_sib.t 2 512 7 14 200.00% 1-7
t/17axisfollowing.t 2 512 4 8 200.00% 1-4
t/18axispreceding.t 2 512 4 8 200.00% 1-4
t/19axisd_or_s.t 2 512 4 8 200.00% 1-4
t/20axisa_or_s.t 2 512 4 8 200.00% 1-4
t/21allnodes.t 2 512 11 22 200.00% 1-11
t/22name_select.t 2 512 4 8 200.00% 1-4
t/23func.t 2 512 5 10 200.00% 1-5
t/24namespaces.t 2 512 9 18 200.00% 1-9
t/25scope.t 2 512 4 8 200.00% 1-4
t/26predicate.t 2 512 4 8 200.00% 1-4
t/27asxml.t 2 512 3 6 200.00% 1-3
t/28ancestor2.t 2 512 5 10 200.00% 1-5
t/29desc_with_predicate.t 2 512 4 8 200.00% 1-4
t/30lang.t 2 512 4 8 200.00% 1-4
t/insert.t 2 512 8 16 200.00% 1-8
t/rdf.t 2 512 5 10 200.00% 1-5
t/remove.t 2 512 7 14 200.00% 1-7
t/stress.t 2 512 ?? ?? % ??
Failed 35/35 test scripts, 0.00% okay. 180/180 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force

chrism01 04-19-2011 12:34 AM

Did it ask for any other modules?
You might be better off asking this over at perlmonks.org; it's where the Perl gurus hang out


All times are GMT -5. The time now is 12:56 AM.