haravallabhan
asked on
Perl Compress::Zlib and Scalar::Util problem
Hi,
I am running SUSE 10 Enterprise server. I had installed a server (proserver) for a specific application and it was running well. I updated my system and restarted it and when I try to rerun the server I got this error message and the server wont run . Upon checking up the problem it looked like there is some problem with the Scalar::Util and I might have to fix it up. I want to know how I could fix this problem/ how to reinstall Scalar:Util and restore perl with installed modules as normal before.
Thanks for any help
Below are the list of my commoand and error reports.
bioch2022:/usr/local/ensem bl/Bio-Das -ProServer /eg # ./proserver -c myconfig.ini is only avaliable with the XS version at /usr/lib/perl5/site_perl/5 .8.8/Compr ess/Zlib.p m line 9
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5 .8.8/Compr ess/Zlib.p m line 9.
Compilation failed in require at ../blib/lib/Bio/Das/ProSer ver.pm line 17.
BEGIN failed--compilation aborted at ../blib/lib/Bio/Das/ProSer ver.pm line 17.
Compilation failed in require at ./proserver line 14.
BEGIN failed--compilation aborted at ./proserver line 14.
I checked for Zlib @
bioch2022:/home/ashgene # perl -MCompress::zlib -e 'print'
Can't locate Compress/zlib.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586- linux-thre ad-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5 .8.8/i586- linux-thre ad-multi /usr/lib/perl5/site_perl/5 .8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /5.8.8/i58 6-linux-th read-multi /usr/lib/perl5/vendor_perl /5.8.8 /usr/lib/perl5/vendor_perl .).
BEGIN failed--compilation aborted.
My Perl Version is
bioch2022:/home/ashgene # perl -V
.....
Built under linux
Compiled at Nov 9 2007 13:34:11
@INC:
/usr/lib/perl5/5.8.8/i586- linux-thre ad-multi
/usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5 .8.8/i586- linux-thre ad-multi
/usr/lib/perl5/site_perl/5 .8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl /5.8.8/i58 6-linux-th read-multi
/usr/lib/perl5/vendor_perl /5.8.8
/usr/lib/perl5/vendor_perl
I am running SUSE 10 Enterprise server. I had installed a server (proserver) for a specific application and it was running well. I updated my system and restarted it and when I try to rerun the server I got this error message and the server wont run . Upon checking up the problem it looked like there is some problem with the Scalar::Util and I might have to fix it up. I want to know how I could fix this problem/ how to reinstall Scalar:Util and restore perl with installed modules as normal before.
Thanks for any help
Below are the list of my commoand and error reports.
bioch2022:/usr/local/ensem
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5
Compilation failed in require at ../blib/lib/Bio/Das/ProSer
BEGIN failed--compilation aborted at ../blib/lib/Bio/Das/ProSer
Compilation failed in require at ./proserver line 14.
BEGIN failed--compilation aborted at ./proserver line 14.
I checked for Zlib @
bioch2022:/home/ashgene # perl -MCompress::zlib -e 'print'
Can't locate Compress/zlib.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586-
BEGIN failed--compilation aborted.
My Perl Version is
bioch2022:/home/ashgene # perl -V
.....
Built under linux
Compiled at Nov 9 2007 13:34:11
@INC:
/usr/lib/perl5/5.8.8/i586-
/usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5
/usr/lib/perl5/site_perl/5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/vendor_perl
ASKER
Hi,
I did try to install Compress::Zlib but I get an error which basically says that it wont install without force.
a part of the error is here
# Looks like you planned 251 tests but only ran 3.
# Looks like your test died just after 3.
t/14gzopen......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 4-251
Failed 249/251 tests, 0.80% okay
t/99pod.........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------- ---------- ---------- ---------- ---------- ---------- ---
t/000prereq.t 4 1024 7 4 57.14% 2-4 6
t/01version.t 255 65280 3 3 100.00% 1 3
t/03zlib-v1.t 255 65280 402 797 198.26% 1 5-402
t/05examples.t 255 65280 ?? ?? % ??
t/06gzsetp.t 255 65280 ?? ?? % ??
t/08encoding.t 255 65280 30 57 190.00% 1 3-30
t/14gzopen.t 255 65280 251 497 198.01% 1 4-251
Failed 7/8 test scripts, 12.50% okay. 683/694 subtests failed, 1.59% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
I did try to install Compress::Zlib but I get an error which basically says that it wont install without force.
a part of the error is here
# Looks like you planned 251 tests but only ran 3.
# Looks like your test died just after 3.
t/14gzopen......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 4-251
Failed 249/251 tests, 0.80% okay
t/99pod.........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
--------------------------
t/000prereq.t 4 1024 7 4 57.14% 2-4 6
t/01version.t 255 65280 3 3 100.00% 1 3
t/03zlib-v1.t 255 65280 402 797 198.26% 1 5-402
t/05examples.t 255 65280 ?? ?? % ??
t/06gzsetp.t 255 65280 ?? ?? % ??
t/08encoding.t 255 65280 30 57 190.00% 1 3-30
t/14gzopen.t 255 65280 251 497 198.01% 1 4-251
Failed 7/8 test scripts, 12.50% okay. 683/694 subtests failed, 1.59% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I tried install it as SU before
The force install works and
cpan> install Compress::Zlib
Compress::Zlib is up to date.
cpan> install Scalar::Util
Scalar::Util is up to date.
Thanks! -*
But my Proserver isnt running and giving the same error as before any suggestions please?
The force install works and
cpan> install Compress::Zlib
Compress::Zlib is up to date.
cpan> install Scalar::Util
Scalar::Util is up to date.
Thanks! -*
But my Proserver isnt running and giving the same error as before any suggestions please?
Note that the module names are case sensitive, so Compress::Zlib is different than Compress::zlib. Make sure you have the correct module installed.
What is:
/usr/lib/perl5/site_perl/5 .8.8/Compr ess/Zlib.p m line 9
../blib/lib/Bio/Das/ProSer ver.pm line 17
In your "perl -V", you removed the line giving the version of perl. Do you have version 5.8.8 (revision 5 version 8 subversion 8)?
What is:
/usr/lib/perl5/site_perl/5
../blib/lib/Bio/Das/ProSer
In your "perl -V", you removed the line giving the version of perl. Do you have version 5.8.8 (revision 5 version 8 subversion 8)?
ASKER
Thanks
Zlib.pm has
Line 9 is
use Scalar::Util qw(dualvar);
Line 17 in Proserver.pm has
use Compress::Zlib;
my perl -V has
# perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.16, archname=i586-linux-thread -multi
uname='linux stravinsky 2.6.16 #12 smp fri sep 7 17:18:37 cest 2007 i686 i686 i386 gnulinux '
Zlib.pm has
Line 9 is
use Scalar::Util qw(dualvar);
Line 17 in Proserver.pm has
use Compress::Zlib;
my perl -V has
# perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.16, archname=i586-linux-thread
uname='linux stravinsky 2.6.16 #12 smp fri sep 7 17:18:37 cest 2007 i686 i686 i386 gnulinux '
ASKER
Excellent !
So is it working now? I hadn't had a chance to respond to your most recent comment. What was it that fixed it?
perl -MCPAN -e 'install Compress::zlib'