Error in CPAN installtion

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Error in CPAN installtion

Postby net_rider » Wed Mar 14, 2007 7:41 am

I have some problem in installing CPAN

install Spreadsheet::ParseExcel

I am using Fedora core 6

perl 5

Cpan : error is as follows

Failed 1/4 test scripts. 4/23 subtests failed.
Files=4, Tests=23, 1 wallclock secs ( 0.58 cusr + 0.03 csys = 0.61 CPU)
Failed 1/4 test programs. 4/23 subtests failed.
make: *** [test_dynamic] Error 29
/usr/local/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force


plz help
Last edited by net_rider on Wed Mar 14, 2007 10:20 am, edited 1 time in total.
net_rider
 
Posts: 10
Joined: Sun Nov 05, 2006 8:43 pm

Postby mflorell » Wed Mar 14, 2007 9:38 am

Could you post your error?

What Linux Distro are you using?

What version of Perl?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby mflorell » Thu Mar 15, 2007 9:10 am

It is generally better forum etiquette to simply add another post to a thread instead of editing an existing one if you are changing it significantly.

As for your problem, it looks like that module has changed recently and is not set up properly to check for it's own new required modules.

Try this in cpan:

- install Unicode::Map
- install Jcode
- install Spreadsheet::WriteExcel
- install OLE::Storage_Lite
- install Spreadsheet::ParseExcel
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby eijal » Fri Mar 16, 2007 1:58 pm

Hi
I am having almost the same problems, but with 3 installations. Here they are with just the output errors:
1.
Code: Select all
cpan> install Bundle::CPAN
Bundle summary: The following items in bundle Bundle::CPAN had installation
problems:
  Test::More
Failed during this command:
  MSCHWERN/Test-Simple-0.69.tar.gz             : make_test NO

2.
Code: Select all
cpan> install DBI
BEGIN failed--compilation aborted at ./t/85gofer.t line 9.
Compilation failed in require at t/zvxgp_85gofer.t line 3.
t/zvxgp_85gofer...........dubious
        Test returned status 2 (wstat 512, 0x200)
Failed Test       Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/85gofer.t          2   512    ??   ??  ??
t/zvg_85gofer.t      2   512    ??   ??  ??
t/zvp_85gofer.t      2   512    ??   ??  ??
t/zvxgp_85gofer.t    2   512    ??   ??  ??
24 tests and 260 subtests skipped.
Failed 4/117 test scripts. 0/4648 subtests failed.
Files=117, Tests=4648, 30 wallclock secs (26.88 cusr +  2.96 csys = 29.84 CPU)
Failed 4/117 test programs. 0/4648 subtests failed.
make: *** [test_dynamic] Error 2
  /usr/local/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
  TIMB/DBI-1.54.tar.gz                         : make_test NO

3.
Code: Select all
cpan> install Spreadsheet::ParseExcel
# BEGIN failed--compilation aborted at /root/.cpan/build/Spreadsheet-ParseExcel-0.28/blib/lib/Spreadsheet/ParseExcel/SaveParser.pm line 366.
# Compilation failed in require at (eval 21) line 2.
# Looks like you failed 4 tests of 8.
t/basic.....dubious
        Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 4-7
        Failed 4/8 tests, 50.00% okay
t/parse.....ok
t/pod.......skipped
        all skipped: Test::Pod 1.00 required for testing POD
t/sample....# Skipping 0 test as they need Jcode to be installed
skipped
        all skipped: Tests moved to individual files in t/examples/
Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/basic.t      4  1024     8    4  4-7
2 tests skipped.
Failed 1/4 test scripts. 4/23 subtests failed.
Files=4, Tests=23,  0 wallclock secs ( 0.69 cusr +  0.10 csys =  0.79 CPU)
Failed 1/4 test programs. 4/23 subtests failed.
make: *** [test_dynamic] Error 255
  /usr/local/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
  SZABGAB/Spreadsheet-ParseExcel-0.28.tar.gz   : make_test NO


I am using CENTOS 4.3 and PERL v5.
I already installed the CPAN modules with these CENTOS distro and PERL version, and everything was OK with VICIDIAL.
What could be the requeriments for the correct installation of CPAN modules? I think that's the problem
thanks
eijal
 
Posts: 186
Joined: Thu Feb 08, 2007 6:34 pm

Postby mflorell » Fri Mar 16, 2007 8:33 pm

Can you post the output of "perl -v"?

I don't know of anyone that isn't using perl 5 right now, but perl 5.6.1 is very different from 5.8.8, and CentOS 4.3 is quite old now, including the old Linux kernel that it uses.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby dlapitan » Sat Mar 17, 2007 10:40 am

Hi,

Please try the centos 4.4. I was using it and was working fine.
dlapitan
 
Posts: 68
Joined: Fri Nov 24, 2006 3:59 pm

Postby eijal » Sat Mar 17, 2007 12:53 pm

The output is:
Code: Select all
[root@localhost ~]# perl -v

This is perl, v5.8.5 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.


The wear is that I installed successfully CPAN with these settings before, the only diference now is that I am installing in one server ASTERISK/VICIDIAL and DATABASE/WEB in another, with minimal installation.
For that reason I think that I am missing some requeriments for CPAN modules. For instance, if I don't install gcc libraries I can't install another CPAN modules.

PD.
When I installed all in one server, VICIDIAL worked very good (autodialing, consultative transfer, etc) my only problem was load
eijal
 
Posts: 186
Joined: Thu Feb 08, 2007 6:34 pm

new installation

Postby eijal » Mon Mar 19, 2007 4:59 pm

Hi,
I made a very new installation. I formatted the hard disk and the packages that I installed was:
gnome
all administration tools
all server tools
all development tools

And Now I installed CPAN modules without problems.
I really want to make a minimal installation. What could be the requeriments for CPAN modules?
Is always necessary to install the mysql client/server before the CPAN modules?
:?
eijal
 
Posts: 186
Joined: Thu Feb 08, 2007 6:34 pm

Postby mflorell » Mon Mar 19, 2007 11:34 pm

you need the dev tools for most of these CPAN modules.

As for MySQL libs, you do need to install the MySQL client on every vicidial server before installing the DBD::mysql module.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

New issue with Bundle::CPAN

Postby eijal » Wed Sep 26, 2007 10:12 am

Hi,
I have a new issue with cpan>install Bundle::CPAN command.

I am using:
Distro: Centos 4.4
perl v5.8.5

The issue is when the Bundle::CPAN stops installing in the following output:
Code: Select all
.
.
.
Manifying blib/man3/CPAN::FirstTime.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00signature.......WARNING: This key is not certified with a trusted signature!
Primary key fingerprint: 50A0 ED26 8AA2 95BD 2CA0  411E EC80 39F0 A317 C15D
t/00signature.......ok
t/01loadme..........ok
t/02nox.............ok
t/03pkgs............ok 1/11

And there aren't any more outputs

PD.
I made the same installation, with the same machine, linux distro, etc. And everything was OK, but now I don't know what is going on
eijal
 
Posts: 186
Joined: Thu Feb 08, 2007 6:34 pm

Postby peacy » Wed Sep 26, 2007 12:20 pm

If you're using CentOS, then I would suggest installing the perl packages from RPMs.

All of the needed packages are available from the Dag Wieers repository (http://dag.wieers.com/rpm/). You can just add the repository and install the packages with yum.
I've installed VICIDIAL a few times on top of CentOS 5 using only rpms. (I have a perl-Asterisk rpm compiled if anyone interested.)
peacy
 
Posts: 55
Joined: Thu Jul 05, 2007 1:46 pm
Location: UK

Postby eijal » Wed Sep 26, 2007 1:27 pm

May be good solution, I haven't tried it yet.

But, I think it's better to install perl modules like the scratch_install document.
And the issue is: I could install perl modules without problem with centos 4.4 and perl v5.8.5, but now the installation stops in:
Code: Select all
cpan>install Bundle::CPAN
.
.
.
Manifying blib/man3/CPAN::FirstTime.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00signature.......WARNING: This key is not certified with a trusted signature!
Primary key fingerprint: 50A0 ED26 8AA2 95BD 2CA0  411E EC80 39F0 A317 C15D
t/00signature.......ok
t/01loadme..........ok
t/02nox.............ok
t/03pkgs............ok 1/11


Why is it happening now? Even in the same machine
eijal
 
Posts: 186
Joined: Thu Feb 08, 2007 6:34 pm

Postby gardo » Thu Sep 27, 2007 1:47 am

what happens when you run the command again?
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby eijal » Thu Sep 27, 2007 9:07 am

gardo wrote:what happens when you run the command again?


For the packages that are installed:
Code: Select all
Up to date
 


And then the procces is stopped in the same output:
Code: Select all
Manifying blib/man3/CPAN::FirstTime.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00signature.......WARNING: This key is not certified with a trusted signature!
Primary key fingerprint: 50A0 ED26 8AA2 95BD 2CA0  411E EC80 39F0 A317 C15D
t/00signature.......ok
t/01loadme..........ok
t/02nox.............ok
t/03pkgs............ok 1/11
eijal
 
Posts: 186
Joined: Thu Feb 08, 2007 6:34 pm

Postby gardo » Fri Sep 28, 2007 3:30 am

How about manually downloading and compiling the module?
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 189 guests