LinHES Forums http://forum.linhes.org/ |
|
Do I need to 'refresh' my perl? http://forum.linhes.org/viewtopic.php?f=6&t=10983 |
Page 1 of 1 |
Author: | mihanson [ Thu Jul 27, 2006 9:03 pm ] |
Post subject: | Do I need to 'refresh' my perl? |
I'm having a lot of trouble with my perl. A while back I was using CPAN to install some perl modules to get my PPV listings to show up in my guide and in the process of trying to get that up and running, I seemed to have broken my perl portion of KnoppMyth. I never did get it up and running, but I know I had it working on previous KM installs. Now, whenever I use CPAN to install a perl module, I get the following error: Code: Writing Makefile for Digest::SHA
cp SHA.pm blib/lib/Digest/SHA.pm /usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap SHA.xs > SHA.xsc && mv SHA.xsc SHA.c cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"5.42\" -DXS_VERSION=\"5.42\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DSHA_PERL_MODULE -DSHA_STO_CLASS=static SHA.c cc1: error: unrecognized option `-Wdeclaration-after-statement' make: *** [SHA.o] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Failed during this command: MSHELOR/Digest-SHA-5.42.tar.gz : make NO The above was run as root, so there should not be any permission problems (I assume. ![]() Thanks! |
Author: | mihanson [ Tue Aug 01, 2006 4:20 pm ] |
Post subject: | |
I figured out the answer to my problems, so I thought I'd share... Quote: cc1: error: unrecognized option `-Wdeclaration-after-statement' is a result of perl-5.8.8 and gcc <= 3.4 not playing nicely together. To work around this, you need to manually edit your perl module's Makefile (located under the /root/.cpan directory) to remove the reference to Quote: Wdeclaration-after-statement and then issue:
Code: # make
# make test # make install |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |