Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Using Perlbrew with debian Perl packages like libdbd-mysql

by nysus (Parson)
on Dec 13, 2017 at 20:06 UTC ( [id://1205475]=note: print w/replies, xml ) Need Help??


in reply to Re: Using Perlbrew with debian Perl packages like libdbd-mysql
in thread [SOLVED] Using Perlbrew with debian Perl packages like libdbd-mysql

cpanm (App::cpanminus) 1.7043 on perl 5.014004 built for x86_64-linux Work directory is /home/steve/.cpanm/work/1513190088.24934 You have make /usr/bin/make You have LWP 6.29 You have /bin/tar: tar (GNU tar) 1.29 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gp +l.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching DBD::mysql () on cpanmetadb ... --> Working on DBD::mysql Fetching http://www.cpan.org/authors/id/M/MI/MICHIELB/DBD-mysql-4.043. +tar.gz -> OK Unpacking DBD-mysql-4.043.tar.gz Entering DBD-mysql-4.043 Checking configure dependencies from META.json Checking if you have Data::Dumper 0 ... Yes (2.130_02) Checking if you have DBI 1.609 ... Yes (1.637) Configuring DBD-mysql-4.043 Running Makefile.PL Can't exec "mysql_config": No such file or directory at Makefile.PL li +ne 88. Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed values! PLEASE NOTE: For 'make test' to run properly, you must ensure that the database user 'steve' 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 'steve'@'localhost' identifie +d 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 li +ne 561. 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 Can't find mysql_config. Use --mysql_config option to specify where my +sql_config is located -> N/A -> FAIL Configure failed for DBD-mysql-4.043. See /home/steve/.cpanm/w +ork/1513190088.24934/build.log for details.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Replies are listed 'Best First'.
Re^3: Using Perlbrew with debian Perl packages like libdbd-mysql
by marto (Cardinal) on Dec 13, 2017 at 20:10 UTC

      Just tried following it. There is no mysql_config file on my server. Debian probably takes care of all that. I'm in over my head.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

      Unless I can apt-get install or cpan|cpanm without error, I get frightened off by perl module installations. I'm a bit better at it. I can handle minor issues. But when it gets to more involved, I'm in over my head. I've read some stuff over the years about installing Perl modules from scratch but it all gets forgotten as I just rely on the tools that do it all for me. And then, when I do get my hands dirty, it seems inevitably something goes wrong and I end up making things a confusing mess for myself.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

      I glanced at it. Does that count?

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

        No, it's not. You've chosen to use a tool, read and understand the documentation and that of the systems you've chosen to use. There's no magic to anything. Take the time to understand these things.

Re^3: Using Perlbrew with debian Perl packages like libdbd-mysql
by tinita (Parson) on Dec 16, 2017 at 22:50 UTC
    Can't exec "mysql_config": No such file or directory at Makefile.PL line 88.
    apt-file can be a great help for such things. I often get errors about missing .h files and don't know which package they are in, but usually I find them with apt-file.
    % apt-file search mysql_config
    It also takes regular expressions.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1205475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found