Debian Perl Dbd Mysql Install Linux

Posted on
Debian Perl Dbd Mysql Install Linux 4,0/5 2174 votes
  1. Perl Dbd Mysql Rpm

Postgres DB is already installed. I'm not using system perl I have installed another perl in '/srv/data203806/Migration/CPAN/localperl/bin'. When I'm trying to install, It is asking for PATH TO pg_config:

Please help me to install DBD::Pg? How to get path to pg_config?

Naghaveer GowdaNaghaveer Gowda

7 Answers

Perl Dbd Mysql Rpm

UoooUooo

How to install the Perl module DBI on Linux. I am no Linux, Unix, DBI or MySQL guru. Compile and install Perl DBI and DBD for MySQL.

Just ran into this issue, and on Ubuntu 16.04 Xenial the package you're looking for is:

Fernando NunesFernando Nunes

On CentOS/RH you can fix it by installing perl-DBD-Pg package with yum

Debian Perl Dbd Mysql Install Linux
user2086514user2086514

From the README:

INSTALLATION:

Before installing, please use the 'cpansign -v' program to cryptographically verify that your copy of DBD::Pg is complete and valid. The program 'cpansign' is part of Module::Signature, available from CPAN.

By default Makefile.PL uses App::Info to find the location of the PostgreSQL library and include directories. However, if you want to control it yourself, define the environment variables POSTGRES_INCLUDE and POSTGRES_LIB, or define just POSTGRES_HOME. Note that if you have compiled PostgreSQL with SSL support, you must define the POSTGRES_LIB environment variable and add '-lssl' and '-lcrypto' to it, like this:

export POSTGRES_LIB='/usr/local/pgsql/lib -lssl -lcrypto'

The usual steps to install DBD::Pg:

  1. perl Makefile.PL
  2. make
  3. make test
  4. make install

Do steps 1 to 2 as a normal user, not as root!

If the script cannot find the pg_config information itself, it will ask you for the path to it. Enter the complete path to the pg_config file here, including the name of the file itself.

If you want to use a module, read the documentation.

Dr.AvalancheDr.Avalanche

Before installing perl module, you must install client for accessing Postgres DB. I just install server and header files:

Eugen KonkovEugen Konkov
SurrogardSurrogard

Fedora 29, plenv, perl v5.18.0

Once I got plenv working, I was able to install DBD::Pg with cpanm using these commands:

RobotNerdRobotNerd

Not the answer you're looking for? Browse other questions tagged perlpostgresqlperl-moduledbd-pg or ask your own question.