• Publicidad

Problema CPAN

¿Apenas comienzas con Perl? En este foro podrás encontrar y hacer preguntas básicas de Perl con respuestas aptas a tu nivel.

Problema CPAN

Notapor aramallal » 2007-06-27 04:10 @215

Sabéis cual puede ser el problema...


Código: Seleccionar todo
cpan> ! perl -code
Unquoted string "perl" may clash with future reserved word at (eval 14) line 1, <FIN> line 3.
Argument "code" isn't numeric in subtraction (-) at (eval 14) line 1, <FIN> line 3.
Argument "perl" isn't numeric in subtraction (-) at (eval 14) line 1, <FIN> line 3.



Gracias
aramallal
Perlero nuevo
Perlero nuevo
 
Mensajes: 63
Registrado: 2007-06-12 06:29 @312

Publicidad

Notapor aramallal » 2007-06-27 04:14 @218

esto debe ser por lo mismo :

Código: Seleccionar todo
Running install for module Net::SSH::Perl
Running make for D/DB/DBROBINS/Net-SSH-Perl-1.30.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.etse.urv.es/pub/perl/authors/id/D/DB/DBROBINS/Net-SSH-Perl-1.30.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
  ftp://ftp.etse.urv.es/pub/perl/authors/id/D/DB/DBROBINS/CHECKSUMS
Bareword found where operator expected at (eval 31) line 3, near "<TITLE>Server"
        (Missing operator before Server?)
Unquoted string "message" may clash with future reserved word at (eval 31) line 3.
Bareword found where operator expected at (eval 31) line 4, near "/TITLE>
</HEAD"
  (Might be a runaway multi-line // string starting on line 3)
        (Missing operator before HEAD?)
Unquoted string "message" may clash with future reserved word at (eval 31) line 5.
Bareword found where operator expected at (eval 31) line 6, near "200 Type"
        (Missing operator before Type?)
Bareword found where operator expected at (eval 31) line 7, near "200 PORT"
        (Missing operator before PORT?)
Unquoted string "successful" may clash with future reserved word at (eval 31) line 8.
Number found where operator expected at (eval 31) line 8, near "successful
550"
        (Do you need to predeclare successful?)
Unquoted string "pub" may clash with future reserved word at (eval 31) line 8.
Unquoted string "perl" may clash with future reserved word at (eval 31) line 8.
Unquoted string "authors" may clash with future reserved word at (eval 31) line 8.
Unquoted string "id" may clash with future reserved word at (eval 31) line 8.
Unquoted string "file" may clash with future reserved word at (eval 31) line 8.
Unquoted string "directory" may clash with future reserved word at (eval 31) line 9.
Bareword found where operator expected at (eval 31) line 10, near "/PRE>
</BODY"
  (Might be a runaway multi-line // string starting on line 9)
        (Missing operator before BODY?)
syntax error at (eval 31) line 2, near "HEAD>"
 at (eval 12) line 4266
        CPAN::Distribution::MD5_check_file('CPAN::Distribution=HASH(0xa837a1c)', '/root/.cpan/sources/authors/id/D/DB/DBROBINS/CHECKSUMS') called at (eval 12) line 4247
        CPAN::Distribution::verifyMD5('CPAN::Distribution=HASH(0xa837a1c)') called at (eval 12) line 3895
        CPAN::Distribution::get('CPAN::Distribution=HASH(0xa837a1c)') called at (eval 12) line 4464
        CPAN::Distribution::make('CPAN::Distribution=HASH(0xa837a1c)') called at (eval 12) line 4704
        CPAN::Distribution::test('CPAN::Distribution=HASH(0xa837a1c)') called at (eval 12) line 4809
        CPAN::Distribution::install('CPAN::Distribution=HASH(0xa837a1c)') called at (eval 12) line 5496
        CPAN::Module::rematein('CPAN::Module=HASH(0xa39ad48)', 'install') called at (eval 12) line 5560
        CPAN::Module::install('CPAN::Module=HASH(0xa39ad48)') called at (eval 12) line 2137
        CPAN::Shell::rematein('CPAN::Shell', 'install', 'Net::SSH::Perl') called at (eval 12) line 2164
        CPAN::Shell::install('CPAN::Shell', 'Net::SSH::Perl') called at /usr/lib/perl5/5.8.8/CPAN.pm line 201
        eval {...} called at /usr/lib/perl5/5.8.8/CPAN.pm line 201
        CPAN::shell() called at -e line 1
aramallal
Perlero nuevo
Perlero nuevo
 
Mensajes: 63
Registrado: 2007-06-12 06:29 @312

Notapor explorer » 2007-06-27 07:35 @357

Qué cosa más rara... parece como si un fichero estuviera roto por dentro...

Prueba a usar otro repositorio, como el de elmundo.es, o el de rediris.
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14480
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Notapor aramallal » 2007-06-27 07:43 @363

ok genial lo que pasa es que no se donde configuro los repositorios del cpan en linux.
aramallal
Perlero nuevo
Perlero nuevo
 
Mensajes: 63
Registrado: 2007-06-12 06:29 @312

Notapor explorer » 2007-06-27 08:08 @380

JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14480
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Notapor aramallal » 2007-06-29 06:09 @298

Hola explore!! caaambie el repoooositorio y pude instalar paqueeetes.gracias,pero ahora me encuentro con esto :


Checking if your kit is complete...
Looks good
Writing Makefile for Math::GMP
cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" -fPIC "-I/usr/lib/perl5/5.8.8/i586-linux-thread-multi/CORE" GMP.c
/bin/sh: cc: command not found
make: *** [GMP.o] Error 127
/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

Parece como si el Make estuviese mal..... que te parece?
aramallal
Perlero nuevo
Perlero nuevo
 
Mensajes: 63
Registrado: 2007-06-12 06:29 @312

Notapor explorer » 2007-06-29 06:28 @311

Dice que no tienes instalado el compilador de C cc.
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14480
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Notapor aramallal » 2007-06-29 07:06 @338

vale un millon de gracias vamos a intentarlo , luego te comento, otra vez mil gracias.
aramallal
Perlero nuevo
Perlero nuevo
 
Mensajes: 63
Registrado: 2007-06-12 06:29 @312

Notapor aramallal » 2007-06-29 07:59 @374

despues de instaaaalar el compilaaaaador de C me sale este error:

Math-Pari-2.010709/utils/README
Removing previously used /root/.cpan/build/Math-Pari-2.010709

CPAN.pm: Going to build I/IL/ILYAZ/modules/Math-Pari-2.010709.tar.gz

Did not find GP/PARI build directory around.

Do you want to me to fetch GP/PARI automatically?

(If you do not, you will need to fetch it manually, and/or direct me to
the directory with GP/PARI source via the command-line option paridir=/dir)

Make sure you have a large scrollback buffer to see the messages, or `tee'
the STDOUT/STDERR to a file.

Fetch? (y/n, press Enter) y
Getting GP/PARI from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/
Cannot create FTP object: Bad file descriptor at utils/Math/PariBuild.pm line 238, <STDIN> line 1.

Can't fetch file with Net::FTP, now trying with LWP::UserAgent...
Can't fetch directory listing from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/: 500 LWP::Protocol::MyFTP: connect: timeout
Client-Date: Fri, 29 Jun 2007 01:24:55 GMT

Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install

cpan>
aramallal
Perlero nuevo
Perlero nuevo
 
Mensajes: 63
Registrado: 2007-06-12 06:29 @312

Notapor aramallal » 2007-07-02 03:54 @204

este error puede ser porque no tengo instalado GP/pari?
aramallal
Perlero nuevo
Perlero nuevo
 
Mensajes: 63
Registrado: 2007-06-12 06:29 @312

Siguiente

Volver a Básico

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 17 invitados

cron