Thread: installation DBD::Pg

installation DBD::Pg

From
"Ben Sabadus"
Date:
<div class="Section1"><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Hello support,</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">I do not understand why I would need to completely install Postgre on my server to connect to a
remotePostgre server.</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt; 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Can you help me w/ this? I am trying to run ‘install DBD::Pg’ using CPAN and it is asking me for the
“Pathto pg_config”.</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt; 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Is there some other way I can install DBD:Pg without having to install a full version of Postgre on
mymachine?  I would think I wouldn’t have to have Postgre on my local machine to connect to another Postgre DB on an
externalmachine.</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt; 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Please help!</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><b><font color="#0000a0" face="Arial" size="2"><span
style="font-size:10.0pt;font-family:Arial;color:#0000A0;font-weight:bold">================</span></font></b><p
class="MsoNormal"><b><fontcolor="#0000a0" face="Arial" size="2"><span
style="font-size:10.0pt;font-family:Arial;color:#0000A0;font-weight:bold">BeniaminSabadus</span></font></b><p
class="MsoNormal"><b><fontcolor="#0000a0" face="Arial" size="2"><span
style="font-size:10.0pt;font-family:Arial;color:#0000A0;font-weight:bold">ComputerEngineer</span></font></b><p
class="MsoNormal"><strong><b><fontcolor="#0000a0" face="Arial" size="2"><span
style="font-size:10.0pt;font-family:Arial;color:#0000A0">UpSNAP</span></font></b></strong><fontcolor="#0000a0"
face="Arial"size="2"><span style="font-size:10.0pt;font-family: 
Arial;color:#0000A0">®</span></font><p class="MsoNormal"><b><font color="navy" face="Arial" size="2"><span
style="font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold"><ahref="http://www.upsnap.com/"><font
color="#0000a0"><spanstyle="color:#0000A0">www.upsnap.com</span></font></a></span></font></b><p
class="MsoNormal"><b><fontcolor="#0000a0" face="Arial" size="2"><span
style="font-size:10.0pt;font-family:Arial;color:#0000A0;font-weight:bold">Office:704.895.4121</span></font></b><p
class="MsoNormal"><fontface="Times New Roman" size="3"><span style="font-size: 
12.0pt"> </span></font></div>

Re: installation DBD::Pg

From
Gregory Stark
Date:
"Ben Sabadus" <Ben.Sabadus@upsnap.com> writes:

> Can you help me w/ this? I am trying to run 'install DBD::Pg' using CPAN and
> it is asking me for the "Path to pg_config".
>
> Is there some other way I can install DBD:Pg without having to install a
> full version of Postgre on my machine?  I would think I wouldn't have to
> have Postgre on my local machine to connect to another Postgre DB on an
> external machine.

Well CPAN is trying to compile DBD::Pg from source. You don't even need a
complete Postgres install for that, just the development libraries. You don't
explain what operating system you're using but for example most Linux
distributions have a separate package for the development libraries.

Alternatively if your operating system has it you could install a precompiled
DBD::Pg packages instead of compiling from source. On Debian it's called
libdbd-pg-perl for example.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!