A ver si me aclaro:
Creo (no estoy seguro) que tengo la versión 1.29.
De todos modos, para instalar ese módulo, tengo que hacer esto ¿verdad?
- Código: Seleccionar todo
cpan -i IO::Socket
Pues cuando lo hago, parece que me da error:
- Código: Seleccionar todo
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Sat, 08 Sep 2007 23:36:41 GMT
Running install for module IO::Socket
Running make for G/GB/GBARR/IO-1.2301.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/G/GB/GBARR/IO-1.2301.tar.gz ok
Scanning cache /root/.cpan/build for sizes
IO-1.2301/
IO-1.2301/IO/
IO-1.2301/IO/Handle.pm
IO-1.2301/IO/Socket.pm
IO-1.2301/IO/Socket/
IO-1.2301/IO/Socket/INET.pm
IO-1.2301/IO/Socket/UNIX.pm
IO-1.2301/IO/Pipe.pm
IO-1.2301/IO/Poll.pm
IO-1.2301/IO/Seekable.pm
IO-1.2301/IO/Dir.pm
IO-1.2301/IO/Select.pm
IO-1.2301/IO/File.pm
IO-1.2301/t/
IO-1.2301/t/io_dup.t
IO-1.2301/t/io_const.t
IO-1.2301/t/io_dir.t
IO-1.2301/t/io_poll.t
IO-1.2301/t/io_file.t
IO-1.2301/t/io_sel.t
IO-1.2301/t/io_tell.t
IO-1.2301/t/test.pl
IO-1.2301/t/io_sock.t
IO-1.2301/t/io_multihomed.t
IO-1.2301/t/io_taint.t
IO-1.2301/t/io_udp.t
IO-1.2301/t/io_unix.t
IO-1.2301/t/io_pipe.t
IO-1.2301/t/io_linenum.t
IO-1.2301/t/io_xs.t
IO-1.2301/t/io_utf8.t
IO-1.2301/t/IO.t
IO-1.2301/poll.h
IO-1.2301/MANIFEST
IO-1.2301/IO.xs
IO-1.2301/META.yml
IO-1.2301/ChangeLog
IO-1.2301/poll.c
IO-1.2301/IO.pm
IO-1.2301/Makefile.PL
IO-1.2301/README
IO-1.2301/SIGNATURE
Removing previously used /root/.cpan/build/IO-1.2301
CPAN.pm: Going to build G/GB/GBARR/IO-1.2301.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for IO
cp IO/Handle.pm blib/lib/IO/Handle.pm
cp IO/Dir.pm blib/lib/IO/Dir.pm
cp IO/Socket/INET.pm blib/lib/IO/Socket/INET.pm
cp IO/Poll.pm blib/lib/IO/Poll.pm
cp IO/Seekable.pm blib/lib/IO/Seekable.pm
cp IO/Pipe.pm blib/lib/IO/Pipe.pm
cp IO/Socket.pm blib/lib/IO/Socket.pm
cp IO/Select.pm blib/lib/IO/Select.pm
cp IO/File.pm blib/lib/IO/File.pm
cp IO.pm blib/lib/IO.pm
cp IO/Socket/UNIX.pm blib/lib/IO/Socket/UNIX.pm
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap IO.xs > IO.xsc && mv IO.xsc IO.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O2 -pipe -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" -fpic "-I/usr/lib/perl5/5.8.8/i686-linux-thread-multi/CORE" IO.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O2 -pipe -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" -fpic "-I/usr/lib/perl5/5.8.8/i686-linux-thread-multi/CORE" poll.c
Running Mkbootstrap for IO ()
chmod 644 IO.bs
rm -f blib/arch/auto/IO/IO.so
cc -shared -L/usr/local/lib IO.o poll.o -o blib/arch/auto/IO/IO.so \
\
chmod 755 blib/arch/auto/IO/IO.so
cp IO.bs blib/arch/auto/IO/IO.bs
chmod 644 blib/arch/auto/IO/IO.bs
Manifying blib/man3/IO::Dir.3
Manifying blib/man3/IO::Handle.3
Manifying blib/man3/IO::Socket::INET.3
Manifying blib/man3/IO::Poll.3
Manifying blib/man3/IO::Pipe.3
Manifying blib/man3/IO::Seekable.3
Manifying blib/man3/IO::Socket.3
Manifying blib/man3/IO::Select.3
Manifying blib/man3/IO::File.3
Manifying blib/man3/IO::Socket::UNIX.3
Manifying blib/man3/IO.3
/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/IO...............ok
t/io_const.........ok
t/io_dir...........ok
t/io_dup...........ok
t/io_file..........ok
t/io_linenum.......ok
t/io_multihomed....No existe el fichero o el directorio at t/io_multihomed.t line 85.
t/io_multihomed....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/io_pipe..........ok
t/io_poll..........ok
t/io_sel...........ok
t/io_sock..........No existe el fichero o el directorio at t/io_sock.t line 41.
t/io_sock..........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-26
Failed 26/26 tests, 0.00% okay
t/io_taint.........ok
t/io_tell..........ok
t/io_udp...........No existe el fichero o el directorio (maybe your system does not have a localhost at all, 'localhost' or 127.0.0.1) at t/io_udp.t line 58.
t/io_udp...........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/io_unix..........ok
t/io_utf8..........ok
t/io_xs............ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/io_multihomed.t 2 512 8 16 200.00% 1-8
t/io_sock.t 2 512 26 52 200.00% 1-26
t/io_udp.t 2 512 7 14 200.00% 1-7
Failed 3/17 test scripts, 82.35% okay. 41/172 subtests failed, 76.16% 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
*Sean comprensivos: tengo que reconocer que no tengo mucha idea de Perl... Por un lado estoy aprendiendo Perl prácticamente desde 0, pero por otro lado me urge usarlo para probar cosas con sockets.