• Publicidad

Error instalando DBD::mysql

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

Error instalando DBD::mysql

Notapor BigBear » 2013-12-12 16:22 @723

Hola, estoy en Ubuntu tratando de instalar el módulo DBD::mysql de la siguiente forma:
Sintáxis: [ Descargar ] [ Ocultar ]
Using perl Syntax Highlighting
  1. sudo cpan DBD::mysql
Coloreado en 0.002 segundos, usando GeSHi 1.0.8.4

Y me devuelve
Sintáxis: [ Descargar ] [ Ocultar ]
Using text Syntax Highlighting
CPAN: Storable loaded ok (v2.20)
Going to read '/home/doddy/.cpan/Metadata'
  Database was generated on Thu, 12 Dec 2013 20:53:02 GMT
Running install for module 'DBD::mysql'
CPAN: YAML loaded ok (v0.84)
Running make for C/CA/CAPTTOFU/DBD-mysql-4.025.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.063)
Checksum for /home/doddy/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.025.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.52)
DBD-mysql-4.025/
DBD-mysql-4.025/META.yml
DBD-mysql-4.025/Makefile.PL
DBD-mysql-4.025/myld
DBD-mysql-4.025/Makefile.PL.embedded
DBD-mysql-4.025/t/
DBD-mysql-4.025/t/65types.t
DBD-mysql-4.025/t/70takeimp.t
DBD-mysql-4.025/t/51bind_type_guessing.t
DBD-mysql-4.025/t/71impdata.t
DBD-mysql-4.025/t/mysql.dbtest
DBD-mysql-4.025/t/00base.t
DBD-mysql-4.025/t/85init_command.t
DBD-mysql-4.025/t/40listfields.t
DBD-mysql-4.025/t/rt83494-quotes-comments.t
DBD-mysql-4.025/t/76multi_statement.t
DBD-mysql-4.025/t/87async.t
DBD-mysql-4.025/t/40catalog.t
DBD-mysql-4.025/t/52comment.t
DBD-mysql-4.025/t/rt86153-reconnect-fail-memory.t
DBD-mysql-4.025/t/31insertid.t
DBD-mysql-4.025/t/60leaks.t
DBD-mysql-4.025/t/40types.t
DBD-mysql-4.025/t/75supported_sql.t
DBD-mysql-4.025/t/65segfault.t
DBD-mysql-4.025/t/43count_params.t
DBD-mysql-4.025/t/pod.t
DBD-mysql-4.025/t/rt85919-fetch-lost-connection.t
DBD-mysql-4.025/t/53comment.t
DBD-mysql-4.025/t/41blobs_prepare.t
DBD-mysql-4.025/t/29warnings.t
DBD-mysql-4.025/t/81procs.t
DBD-mysql-4.025/t/35prepare.t
DBD-mysql-4.025/t/99_bug_server_prepare_blob_null.t
DBD-mysql-4.025/t/20createdrop.t
DBD-mysql-4.025/t/40server_prepare.t
DBD-mysql-4.025/t/40keyinfo.t
DBD-mysql-4.025/t/50commit.t
DBD-mysql-4.025/t/25lockunlock.t
DBD-mysql-4.025/t/40nulls.t
DBD-mysql-4.025/t/mysql.mtest
DBD-mysql-4.025/t/40bindparam2.t
DBD-mysql-4.025/t/40nulls_prepare.t
DBD-mysql-4.025/t/15reconnect.t
DBD-mysql-4.025/t/lib.pl
DBD-mysql-4.025/t/50chopblanks.t
DBD-mysql-4.025/t/89async-method-check.t
DBD-mysql-4.025/t/32insert_error.t
DBD-mysql-4.025/t/10connect.t
DBD-mysql-4.025/t/40blobs.t
DBD-mysql-4.025/t/42bindparam.t
DBD-mysql-4.025/t/80procs.t
DBD-mysql-4.025/t/41bindparam.t
DBD-mysql-4.025/t/88async-multi-stmts.t
DBD-mysql-4.025/t/40bindparam.t
DBD-mysql-4.025/t/90no-async.t
DBD-mysql-4.025/t/30insertfetch.t
DBD-mysql-4.025/t/40numrows.t
DBD-mysql-4.025/t/40server_prepare_error.t
DBD-mysql-4.025/t/35limit.t
DBD-mysql-4.025/t/55utf8.t
DBD-mysql-4.025/t/91errcheck.t
DBD-mysql-4.025/t/86_bug_36972.t
DBD-mysql-4.025/eg/
DBD-mysql-4.025/eg/proc_example2.pl
DBD-mysql-4.025/eg/bug30033pg.pl
DBD-mysql-4.025/eg/bigint_quotes.pl
DBD-mysql-4.025/eg/bug30033.pl
DBD-mysql-4.025/eg/decimal_test.pl
DBD-mysql-4.025/eg/proc_example3.pl
DBD-mysql-4.025/eg/bug14979.pl
DBD-mysql-4.025/eg/proc_example2b.pl
DBD-mysql-4.025/eg/proc_example1.pl
DBD-mysql-4.025/eg/proc_example2a.pl
DBD-mysql-4.025/eg/bug21028.pl
DBD-mysql-4.025/eg/issue21946.pl
DBD-mysql-4.025/eg/proc_example4.pl
DBD-mysql-4.025/eg/prepare_memory_usage.pl
DBD-mysql-4.025/MANIFEST
DBD-mysql-4.025/dbdimp.c
DBD-mysql-4.025/README.pod
DBD-mysql-4.025/mysql.xs
DBD-mysql-4.025/TODO
DBD-mysql-4.025/constants.h
DBD-mysql-4.025/ChangeLog
DBD-mysql-4.025/MANIFEST.SKIP
DBD-mysql-4.025/lib/
DBD-mysql-4.025/lib/DBD/
DBD-mysql-4.025/lib/DBD/mysql/
DBD-mysql-4.025/lib/DBD/mysql/INSTALL.pod
DBD-mysql-4.025/lib/DBD/mysql/GetInfo.pm
DBD-mysql-4.025/lib/DBD/mysql.pm
DBD-mysql-4.025/lib/Bundle/
DBD-mysql-4.025/lib/Bundle/DBD/
DBD-mysql-4.025/lib/Bundle/DBD/mysql.pm
DBD-mysql-4.025/dbdimp.h
CPAN: File::Temp loaded ok (v0.22)

  CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.025.tar.gz

Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 70.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'root' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No existe el fichero o el directorio at Makefile.PL line 473.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Failed to determine directory of mysql.h. Use

  perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see DBD::mysql::INSTALL,
section "C Compiler flags" or type

  perl Makefile.PL --help
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  CAPTTOFU/DBD-mysql-4.025.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Coloreado en 0.001 segundos, usando GeSHi 1.0.8.4


¿ Qué tengo que hacer para poder instalarlo ?
BigBear
Perlero frecuente
Perlero frecuente
 
Mensajes: 981
Registrado: 2009-03-01 18:39 @818

Publicidad

Re: Error instalando DBD::mysql

Notapor explorer » 2013-12-12 16:39 @735

No has seguido mi recomendación de instalación de módulos.

El DBD::mysql necesita de varios pasos para poder ser compilado e instalado. Es mucho más cómodo instalar el paquete de Ubuntu ya compilado:

sudo apt-get install libdbd-mysql
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

Re: Error instalando DBD::mysql

Notapor BigBear » 2013-12-12 16:45 @739

Ahora anda bien. Gracias por la ayuda, explorer.
BigBear
Perlero frecuente
Perlero frecuente
 
Mensajes: 981
Registrado: 2009-03-01 18:39 @818


Volver a Básico

¿Quién está conectado?

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

cron