[Erledigt]Perl-Modul Date::Calc

Alles, was Perl betrifft, kann hier besprochen werden.

[Erledigt]Perl-Modul Date::Calc

Postby ke2705 » 20. June 2007 05:07

Hallo,

ich bin neu hier in diesem Forum und will mich gleich mal mit einem Problem an Euch wenden:

Zum automatischen generieren von Wetter Webseiten so wie diese http://www.franken-online.de/ke2705/wetter.html braeuchte ich auf meinem XAMPP 1.6.2 das Perl-Modul Date::Calc. Da nicht defaultmaessig vorhanden, habe ich mir die notwendigen Tools (Compiler, Header,...) installiert und von CPAN die Modul-Sourcen herunter geladen. Leider faellt der Compiler immer mit diesem Fehler auf die Nase:

Code: Select all
Starte /usr/bin/perl Makefile.PL  && make ..
                                                                                                   
Warning: prerequisite Bit::Vector 6.4 not found.
Warning: prerequisite Carp::Clan 5.3 not found.
Checking if your kit is complete...
Looks good
Writing Makefile for Date::Calc
Writing patchlevel.h for /opt/lampp/bin/perl (5.008007)
cp lib/Date/Calc/Object.pod blib/lib/Date/Calc/Object.pod
cp lib/Date/Calendar/Year.pm blib/lib/Date/Calendar/Year.pm
cp Calc.pod blib/lib/Date/Calc.pod
cp lib/Date/Calendar/Profiles.pm blib/lib/Date/Calendar/Profiles.pm
cp lib/Date/Calc/Object.pm blib/lib/Date/Calc/Object.pm
cp Calendar.pod blib/lib/Date/Calendar.pod
cp lib/Date/Calendar/Year.pod blib/lib/Date/Calendar/Year.pod
cp lib/Date/Calendar/Profiles.pod blib/lib/Date/Calendar/Profiles.pod
cp Calendar.pm blib/lib/Date/Calendar.pm
cp Calc.pm blib/lib/Date/Calc.pm
/opt/lampp/bin/perl /opt/lampp/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap /opt/lampp/lib/perl5/5.8.7/
ExtUtils/typemap -typemap typemap  Calc.xs > Calc.xsc && mv Calc.xsc Calc.c
cc -c   -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
O2   -DVERSION=\"5.4\" -DXS_VERSION=\"5.4\" -fpic "-I/opt/lampp/lib/perl5/5.8.7/i686-linux/CORE"   C
alc.c
In file included from /opt/lampp/lib/perl5/5.8.7/i686-linux/CORE/perl.h:3813,
                 from Calc.xs:15:
/opt/lampp/lib/perl5/5.8.7/i686-linux/CORE/proto.h:288: warning: 'struct tm' declared inside paramet
er list
/opt/lampp/lib/perl5/5.8.7/i686-linux/CORE/proto.h:288: warning: its scope is only this definition o
r declaration, which is probably not what you want
/opt/lampp/lib/perl5/5.8.7/i686-linux/CORE/proto.h:441: warning: 'struct tm' declared inside paramet
er list
cc -c   -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
O2   -DVERSION=\"5.4\" -DXS_VERSION=\"5.4\" -fpic "-I/opt/lampp/lib/perl5/5.8.7/i686-linux/CORE"   D
ateCalc.c
Running Mkbootstrap for Date::Calc ()
chmod 644 Calc.bs
rm -f blib/arch/auto/Date/Calc/Calc.so
LD_RUN_PATH="" cc  -shared -L/usr/local/lib Calc.o DateCalc.o  -o blib/arch/auto/Date/Calc/Calc.so 
   
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-sl
ackware-linux/4.1.2/../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-sl
ackware-linux/4.1.2/../../../libc.so:5: parse error
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Date/Calc/Calc.so] Error 1


Hat jemand eine Idee was hier schief laeuft?

Oder hat jemand bereits ein kompliertes Date::Calc fuer Perl 5.8.7 und kann es mir zur Verfuegung stellen?

Gruss
Eberhard

Kaum hat man einen Post gemacht, findet man auch die Loesung:

Ich hab das Script /usr/lib/libc.so durch einen Link nach /lib/libc.so.6 ersetzt. Dann rennt auch der Linker durch :-)
ke2705
 
Posts: 1
Joined: 20. June 2007 04:45

Return to Perl

Who is online

Users browsing this forum: No registered users and 1 guest