Thread Cannot do `initialize' in Term::ReadLine::Gnu (13 answers)
Opened by leo11 at 2009-01-17 18:39

leo11
 2009-01-19 08:35
#118152 #118152
User since
2008-08-14
250 Artikel
BenutzerIn
[default_avatar]
@murphy
Hier die einzelnen Schritte des manuellen Installationsversuchs samt Ausgabe:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
$perl Makefile.PL
Found `/usr/lib/libtermcap.a'.
gcc -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DHAVE_STRING_H rlver.c -o rlver -L/usr/local/lib -lreadline -ltermcap
It seems that you have the GNU Readline Library version 5.1.
Checking if your kit is complete...
Warning: the following files are missing in your kit:
INSTALL
MANIFEST
README
t/comptest/README
Please inform the author.
Writing Makefile for Term::ReadLine::Gnu

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ make
cp Gnu.pm blib/lib/Term/ReadLine/Gnu.pm
cp Gnu/XS.pm blib/lib/Term/ReadLine/Gnu/XS.pm
AutoSplitting blib/lib/Term/ReadLine/Gnu/XS.pm (blib/lib/auto/Term/ReadLine/Gnu/XS)
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Gnu.xs > Gnu.xsc && mv Gnu.xsc Gnu.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.17\" -DXS_VERSION=\"1.17\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -DHAVE_STRING_H Gnu.c
In file included from Gnu.xs:19:
ppport.h:43:38: warning: "/*" within comment
Running Mkbootstrap for Term::ReadLine::Gnu ()
chmod 644 Gnu.bs
rm -f blib/arch/auto/Term/ReadLine/Gnu/Gnu.so
LD_RUN_PATH="/usr/lib:/lib" gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib Gnu.o -o blib/arch/auto/Term/ReadLine/Gnu/Gnu.so \
-lreadline -ltermcap \

chmod 755 blib/arch/auto/Term/ReadLine/Gnu/Gnu.so
cp Gnu.bs blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs
chmod 644 blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs
Manifying blib/man3/Term::ReadLine::Gnu.3pm
Can't open blib/man3/Term::ReadLine::Gnu.3pm for writing: Invalid argument
at /usr/lib/perl5/5.8.8/ExtUtils/Command/MM.pm line 132
make: *** [manifypods] Error 22
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/callback....ok
t/history.....ok
t/readline.... Failed 3/104 subtests

Test Summary Report
-------------------
t/readline (Wstat: 0 Tests: 104 Failed: 3)
Failed tests: 85-86, 93
Files=3, Tests=193, 0 wallclock secs ( 0.07 usr 0.01 sys + 0.16 cusr 0.03 csys = 0.27 CPU)
Result: FAIL
Failed 1/3 test programs. 3/193 subtests failed.
make: *** [test_dynamic] Error 255
Code: (dl )
1
2
3
4
5
# make install
Manifying blib/man3/Term::ReadLine::Gnu.3pm
Can't open blib/man3/Term::ReadLine::Gnu.3pm for writing: Invalid argument
at /usr/lib/perl5/5.8.8/ExtUtils/Command/MM.pm line 132
make: *** [manifypods] Error 22

Ich nehme an, dass die Files die in der Ausgabe von perl Makefile.pl als vermisst angezeigt werden sind die, die nach dem Enpacken des CPAN-Moduls in dem Ordner liegen. Dort liegt aber ein install, readme.. . Zwar klein geschrieben, aber alle 4 Dateien sind da. Ich hab sie zuvor auch mal umbenannt, sprich groß geschrieben, aber die Fehlerausgabe ist die gleiche.

View full thread Cannot do `initialize' in Term::ReadLine::Gnu