DBD::mysql will nicht installieren

Chatman

New Member
Hi @ all

Habe schon seid langem das Problem, dass ich kein DBD::mysql als Perl extension bei mir auf dem Root Server installieren kann.

Sobald ich unter Webmin das Perl Modul installieren will erhalte ich folgenden Fehler beim Kompilieren:

Code:
Starte /usr/bin/perl Makefile.PL  && make ..
                                                                                                    
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

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 such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Use of uninitialized value $ENV{"USER"} in concatenation (.) or string at Makefile.PL line 488.
Use of uninitialized value in concatenation (.) or string at Makefile.PL line 488.
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 '' 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 ''@'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 such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Failed to determine directory of mysql.h. Use

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

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

  perl Makefile.PL --help
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located

Das System:
Operating system SuSE Linux 11.0
Webmin version 1.430

Grafische Oberfläche:
Kernel Linux 2.6.25.11-0.1-default
GNOME 2.22.1

Ich hoffe auf Hilfe
MFG Chatman
 
Du musst das Paket "mysql-devel" nachinstallieren. Bei der Gelegenheit kannst Du auch gleich "perl-DBD-mysql" installieren und Dir die Kompiliererei sparen.
 
Last edited by a moderator:
Ich finde das Paket unter der Perl Modul Liste nicht und das mit der Installation von "perl-DBD-mysql" will auch nicht so ganz gehen ...

Ist es vielleicht möglich das du es mir machen könntest ? ich weiß es klingt vielleicht leicht dreist abern ormalerweise bin ich eher nur dafür zuständig zu programmieren und mit Linux kenn ich mich nur mäßig aus. Der Root selber gehört auch nicht mir sondern einem Freund der jedoch schon sehr lange nicht mehr online zu sehen ist und selber auch keinen Rat weiß ...
 
@Chatman,

die RPM für mysql-devel heist z.B. in der OpenSuSE 11.0
libmysqlclient-devel-5.0.51a-27.2. Außerdem muss natürlich
mysql installiert,gestartet und eingerichtet sein - möchte ich jetzt
hier nicht beschreiben da es schon x-fach im Web zu finden ist.

Wenn die Installation z.B. in der CPAN Shell
# perl -e shell -MCPAN
> install DBD::mysql

nicht klappt - dann von Hand (wieder in der CPAN Shell) mit

> look DBD::mysql
server:~/.cpan/build/DBD-mysql-4.011-aRlvTw #
# perl Makefile.PL --testuser=<user> --testpassword=<pwd>
<user> und <pwd> ist passend zu ersetzen !
# make
# install


.. Alle Befehle sind FETT markiert

grimreaper
 
Hallo Reaper,
ist wahrscheinlich nett gemeint gewesen. Aber nach 4 Monaten ist es glaub ich nicht mehr so dringlich, oder?

huschi.
 
Back
Top