ubuntu install DBD::Pg, perl-postgress module database

perl to connect postgresql need module/library called DBD::Pg


# get postgres version

$ psql --version

# output: psql (PostgreSQL) 9.1.14

# install dependency

$ sudo apt-get install postgresql-server-dev-9.1

$ sudo apt-get install libpq-dev

##### install DBD::Pg using cpan

# open cpan shell

$ perl -MCPAN -e shell

cpan[1]> install DBD::Pg

Enter a valid PostgreSQL postgres major version number 9
Enter a valid PostgreSQL postgres minor version number 1
Enter a valid PostgreSQL postgres patch version number 14

Enter a valid PostgreSQL postgres bin dir /usr/lib/postgresql/9.1/bin

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s