# DBD::Pg \[error\]

**URL:** https://forums.suse.com/t/dbd-pg-error/25804
**Category:** SLES Updates
**Created:** [June 30, 2014, 10:04pm UTC](https://forums.suse.com/t/dbd-pg-error/25804 "2014-06-30T22:04:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![joaolmf](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@joaolmf](https://forums.suse.com/u/joaolmf)
#### Post date: [June 30, 2014, 10:04pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/1 "2014-06-30T22:04:53Z")

</div>

Hi,  
I trying to run a script, but I’m getting the following error (message):

Perhaps the DBD::Pg perl module hasn’t been fully installed,  
or perhaps the capitalisation of ‘Pg’ isn’t right.

But when a try to install DBD::Pg (cpan), I get this:

Configuring DBD::Pg 3.3.0  
Path to pg\_config?

The problem is, I do not have pg\_config on this machine.  
Anyone here knows what should I do?

Thanks!

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [June 30, 2014, 10:38pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/2 "2014-06-30T22:38:11Z")

</div>

> [@](#):
>
> On Mon 30 Jun 2014 07:14:01 PM CDT, joaolmf wrote:
> 
> Hi,  
> I trying to run a script, but I’m getting the following error  
> (message):
> 
> PERHAPS THE DBD::PG PERL MODULE HASN’T BEEN FULLY INSTALLED,  
> OR PERHAPS THE CAPITALISATION OF ‘PG’ ISN’T RIGHT.
> 
> But when a try to install DBD::Pg (cpan), I get this:
> 
> CONFIGURING DBD::PG 3.3.0  
> PATH TO PG\_CONFIG?
> 
> The problem is, I do not have pg\_config on this machine.  
> Anyone here knows what should I do?
> 
> Thanks!

Hi  
You need to install the postgresql development package from the SLE SDK  
postgresql91-devel or postgresql-devel depending on which server you  
installed.

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

### Author: ![joaolmf](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@joaolmf](https://forums.suse.com/u/joaolmf)
#### Post date: [June 30, 2014, 11:01pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/3 "2014-06-30T23:01:09Z")

</div>

[QUOTE=malcolmlewis;22282]Hi  
You need to install the postgresql development package from the SLE SDK  
postgresql91-devel or postgresql-devel depending on which server you  
installed.

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks![/QUOTE]

zypper install postgresql91-devel  
Loading repository data…  
Reading installed packages…  
‘postgresql91-devel’ not found in package names. Trying capabilities.  
No provider of ‘postgresql91-devel’ found.  
Resolving package dependencies…

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [June 30, 2014, 11:09pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/4 "2014-06-30T23:09:11Z")

</div>

> [@](#):
>
> On Mon 30 Jun 2014 08:04:01 PM CDT, joaolmf wrote:
> 
> malcolmlewis;22282 Wrote:[color=blue]
> 
> > Hi  
> > You need to install the postgresql development package from the SLE  
> > SDK postgresql91-devel or postgresql-devel depending on which server  
> > you installed.
> > 
> > –  
> > Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
> > openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop  
> > If you find this post helpful and are logged into the web interface,  
> > please show your appreciation and click on the star below… Thanks![/color]
> 
> zypper install postgresql91-devel  
> Loading repository data…  
> Reading installed packages…  
> ‘postgresql91-devel’ not found in package names. Trying capabilities.  
> No provider of ‘postgresql91-devel’ found.  
> Resolving package dependencies…

Hi  
Have you added the SLE SDK as an add on product via YaST, so it adds  
the repositories to your system?

You only need the DVD1 iso image and you can also use just the iso image  
via YaST  
[https://download.suse.com/Download?buildid=hF8sRGTVC04~](https://download.suse.com/Download?buildid=hF8sRGTVC04~)

This is assuming your on SLE 11 SP3…

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

### Author: ![joaolmf](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@joaolmf](https://forums.suse.com/u/joaolmf)
#### Post date: [July 1, 2014, 8:29pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/5 "2014-07-01T20:29:36Z")

</div>

[QUOTE=malcolmlewis;22284]Hi  
Have you added the SLE SDK as an add on product via YaST, so it adds  
the repositories to your system?

You only need the DVD1 iso image and you can also use just the iso image  
via YaST  
[https://download.suse.com/Download?buildid=hF8sRGTVC04~](https://download.suse.com/Download?buildid=hF8sRGTVC04~)

This is assuming your on SLE 11 SP3…

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks![/QUOTE]

Yes, I do.

i | postgresql-devel | PostgreSQL development header files and libraries | package

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [July 1, 2014, 8:40pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/6 "2014-07-01T20:40:13Z")

</div>

> [@](#):
>
> On Tue 01 Jul 2014 05:34:02 PM CDT, joaolmf wrote:
> 
> malcolmlewis;22284 Wrote:[color=blue]
> 
> > Hi  
> > Have you added the SLE SDK as an add on product via YaST, so it adds  
> > the repositories to your system?
> > 
> > You only need the DVD1 iso image and you can also use just the iso  
> > image  
> > via YaST  
> > [https://download.suse.com/Download?buildid=hF8sRGTVC04~](https://download.suse.com/Download?buildid=hF8sRGTVC04~)
> > 
> > This is assuming your on SLE 11 SP3…  
> > [/color]  
> > Yes, I do.
> 
> i | postgresql-devel | PostgreSQL development header files  
> and libraries | package

Hi  
Hmmm, maybe it’s actually wanting pkg-config installed, is this  
installed?

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

### Author: ![joaolmf](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@joaolmf](https://forums.suse.com/u/joaolmf)
#### Post date: [July 1, 2014, 9:21pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/7 "2014-07-01T21:21:30Z")

</div>

Yes. It is! ☹

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [July 1, 2014, 10:00pm UTC](https://forums.suse.com/t/dbd-pg-error/25804/8 "2014-07-01T22:00:50Z")

</div>

> [@](#):
>
> On Tue 01 Jul 2014 06:24:01 PM CDT, joaolmf wrote:
> 
> Yes. It is! ☹

Hi  
OK, so looking at the build requires for the rpm, there are only a  
few…  
[https://build.opensuse.org/package/view\_file/devel:languages:perl/perl-DBD-Pg/perl-DBD-Pg.spec?expand=1](https://build.opensuse.org/package/view_file/devel:languages:perl/perl-DBD-Pg/perl-DBD-Pg.spec?expand=1)

But the do add a couple of exports…

```auto
export POSTGRES_INCLUDE=/usr/include/pgsql
export POSTGRES_LIB="%{_libdir} -lssl"
```

Where \_libdir is for your arch.

Else download and install the rpm from devel:languages:perl?

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
