Re: Error in DBD-Pg-3.10.0

Ankush Chawla <[email protected]> Tue, 26 May 2020 23:54:18 +0530
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <CAOY8JhCkTD8RrkwSSRLFSQser5mprFv-uENK3m88Ay-TQ3ZHtw@mail.gmail.com>
--0000000000006e97e505a691367a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

hooray !!!! make worked
is there any standard document as it is getting very confusing , every
document gives different pre-requiste

On Tue, May 26, 2020 at 11:48 PM David Christensen <[email protected]>
wrote:

> Since you=E2=80=99re on CentOS or RHEL, try `yum install postgresql-devel=
`.
> --
> David Christensen
> Senior Software and Database Engineer
> End Point Corporation
> [email protected]
> 785-727-1171
>
>
> > On May 26, 2020, at 1:09 PM, Ankush Chawla <[email protected]>
> wrote:
> >
> > i did yum install cpan and mostly all pre-requiste was installed
> >
> > when I tried to use yum install libpq-dev
> > No package libpq-dev available.
> > Error: Nothing to do
> >
> > regards
> >
> >
> >
> > On Tue, May 26, 2020 at 3:14 AM David Christensen <[email protected]>
> wrote:
> > Have you installed =E2=80=9Clibpq-dev=E2=80=9D or equivalent package?
> >
> > Sent from my iPhone
> >
> >> On May 25, 2020, at 5:41 AM, Ankush Chawla <[email protected]>
> wrote:
> >>
> >> =EF=BB=BF
> >> OS : Red Hat Linux 8
> >> [root@ip-172-31-37-207 DBD-Pg-3.10.0]# export
> POSTGRES_HOME=3D/usr/pgsql-11
> >> [root@ip-172-31-37-207 DBD-Pg-3.10.0]# export
> POSTGRES_LIB=3D/usr/pgsql-11/lib
> >> [root@ip-172-31-37-207 DBD-Pg-3.10.0]# export
> POSTGRES_INCLUDE=3D/usr/include
> >> [root@ip-172-31-37-207 DBD-Pg-3.10.0]# perl Makefile.PL
> >> Configuring DBD::Pg 3.10.0
> >> PostgreSQL version: 110008 (default port: 5432)
> >> POSTGRES_HOME: /usr/pgsql-11
> >> POSTGRES_INCLUDE: /usr/include
> >> POSTGRES_LIB: /usr/pgsql-11/lib
> >> OS: linux
> >> Warning: prerequisite Test::More 0.88 not found.
> >> Using DBI 1.641 (for perl 5.026003 on x86_64-linux-thread-multi)
> installed in /usr/local/lib64/perl5/auto/DBI/
> >> Generating a Unix-style Makefile
> >> Writing Makefile for DBD::Pg
> >> Writing MYMETA.yml and MYMETA.json
> >> [root@ip-172-31-37-207 DBD-Pg-3.10.0]# make
> >> Skip blib/lib/DBD/Pg.pm (unchanged)
> >> Skip blib/lib/Bundle/DBD/Pg.pm (unchanged)
> >> Running Mkbootstrap for Pg ()
> >> chmod 644 "Pg.bs"
> >> "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pg.bs
> blib/arch/auto/DBD/Pg/Pg.bs 644
> >> gcc -c  -I/usr/include -I/usr/local/lib64/perl5/auto/DBI -D_REENTRANT
> -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=3Dformat-security
> -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
> -fstack-protector-strong -grecord-gcc-switches
> -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1
> -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=3D64 -DPGLIBVERSION=3D110008 -DPGDEFPORT=3D5432 -g
> -DPERL_EXTMALLOC_DEF -Dmalloc=3DPerl_malloc -Dfree=3DPerl_mfree
> -Drealloc=3DPerl_realloc -Dcalloc=3DPerl_calloc -DVERSION=3D\"3.10.0\"
> -DXS_VERSION=3D\"3.10.0\" -fPIC "-I/usr/lib64/perl5/CORE"   Pg.c
> >> In file included from Pg.xs:14:
> >> Pg.h:33:10: fatal error: libpq-fe.h: No such file or directory
> >>  #include "libpq-fe.h"
> >>           ^~~~~~~~~~~~
> >> compilation terminated.
> >>
> >> Please suggest
> >> --
> >> Best Regards,
> >> Ankush Chawla
> >>
> >
> >
> > --
> > Best Regards,
> > Ankush Chawla
> >
>
>

--=20
Best Regards,
Ankush Chawla

--0000000000006e97e505a691367a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>hooray !!!! make worked</div><div>is there any standa=
rd document as it is getting very confusing , every document gives differen=
t pre-requiste</div></div><br><div class=3D"gmail_quote"><div class=3D"gmai=
l_attr" dir=3D"ltr">On Tue, May 26, 2020 at 11:48 PM David Christensen &lt;=
<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<br>=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;p=
adding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;bo=
rder-left-style:solid">Since you=E2=80=99re on CentOS or RHEL, try `yum ins=
tall postgresql-devel`.<br>
--<br>
David Christensen<br>
Senior Software and Database Engineer<br>
End Point Corporation<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<=
/a><br>
785-727-1171<br>
<br>
<br>
&gt; On May 26, 2020, at 1:09 PM, Ankush Chawla &lt;<a href=3D"mailto:ankus=
[email protected]" target=3D"_blank">[email protected]</a>&gt; wro=
te:<br>
&gt; <br>
&gt; i did yum install cpan and mostly all pre-requiste was installed<br>
&gt; <br>
&gt; when I tried to use yum install libpq-dev<br>
&gt; No package libpq-dev available.<br>
&gt; Error: Nothing to do<br>
&gt; <br>
&gt; regards<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On Tue, May 26, 2020 at 3:14 AM David Christensen &lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<b=
r>
&gt; Have you installed =E2=80=9Clibpq-dev=E2=80=9D or equivalent package?<=
br>
&gt; <br>
&gt; Sent from my iPhone<br>
&gt; <br>
&gt;&gt; On May 25, 2020, at 5:41 AM, Ankush Chawla &lt;<a href=3D"mailto:a=
[email protected]" target=3D"_blank">[email protected]</a>&gt;=
 wrote:<br>
&gt;&gt; <br>
&gt;&gt; =EF=BB=BF<br>
&gt;&gt; OS : Red Hat Linux 8<br>
&gt;&gt; [root@ip-172-31-37-207 DBD-Pg-3.10.0]# export POSTGRES_HOME=3D/usr=
/pgsql-11<br>
&gt;&gt; [root@ip-172-31-37-207 DBD-Pg-3.10.0]# export POSTGRES_LIB=3D/usr/=
pgsql-11/lib<br>
&gt;&gt; [root@ip-172-31-37-207 DBD-Pg-3.10.0]# export POSTGRES_INCLUDE=3D/=
usr/include<br>
&gt;&gt; [root@ip-172-31-37-207 DBD-Pg-3.10.0]# perl Makefile.PL<br>
&gt;&gt; Configuring DBD::Pg 3.10.0<br>
&gt;&gt; PostgreSQL version: 110008 (default port: 5432)<br>
&gt;&gt; POSTGRES_HOME: /usr/pgsql-11<br>
&gt;&gt; POSTGRES_INCLUDE: /usr/include<br>
&gt;&gt; POSTGRES_LIB: /usr/pgsql-11/lib<br>
&gt;&gt; OS: linux<br>
&gt;&gt; Warning: prerequisite Test::More 0.88 not found.<br>
&gt;&gt; Using DBI 1.641 (for perl 5.026003 on x86_64-linux-thread-multi) i=
nstalled in /usr/local/lib64/perl5/auto/DBI/<br>
&gt;&gt; Generating a Unix-style Makefile<br>
&gt;&gt; Writing Makefile for DBD::Pg<br>
&gt;&gt; Writing MYMETA.yml and MYMETA.json<br>
&gt;&gt; [root@ip-172-31-37-207 DBD-Pg-3.10.0]# make<br>
&gt;&gt; Skip blib/lib/DBD/Pg.pm (unchanged)<br>
&gt;&gt; Skip blib/lib/Bundle/DBD/Pg.pm (unchanged)<br>
&gt;&gt; Running Mkbootstrap for Pg ()<br>
&gt;&gt; chmod 644 &quot;Pg.bs&quot;<br>
&gt;&gt; &quot;/usr/bin/perl&quot; -MExtUtils::Command::MM -e &#39;cp_nonem=
pty&#39; -- Pg.bs blib/arch/auto/DBD/Pg/Pg.bs 644<br>
&gt;&gt; gcc -c=C2=A0 -I/usr/include -I/usr/local/lib64/perl5/auto/DBI -D_R=
EENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=3Dformat-security -Wp,-D_=
FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector=
-strong -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-=
cc1 -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -=
fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrap=
v -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFF=
SET_BITS=3D64 -DPGLIBVERSION=3D110008 -DPGDEFPORT=3D5432 -g=C2=A0 -DPERL_EX=
TMALLOC_DEF -Dmalloc=3DPerl_malloc -Dfree=3DPerl_mfree -Drealloc=3DPerl_rea=
lloc -Dcalloc=3DPerl_calloc -DVERSION=3D\&quot;3.10.0\&quot; -DXS_VERSION=
=3D\&quot;3.10.0\&quot; -fPIC &quot;-I/usr/lib64/perl5/CORE&quot;=C2=A0 =C2=
=A0Pg.c<br>
&gt;&gt; In file included from Pg.xs:14:<br>
&gt;&gt; Pg.h:33:10: fatal error: libpq-fe.h: No such file or directory<br>
&gt;&gt;=C2=A0 #include &quot;libpq-fe.h&quot;<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~<br>
&gt;&gt; compilation terminated.<br>
&gt;&gt; <br>
&gt;&gt; Please suggest<br>
&gt;&gt; --<br>
&gt;&gt; Best Regards,<br>
&gt;&gt; Ankush Chawla<br>
&gt;&gt; <br>
&gt; <br>
&gt; <br>
&gt; --<br>
&gt; Best Regards,<br>
&gt; Ankush Chawla<br>
&gt; <br>
<br>
</blockquote></div><br clear=3D"all"><br>-- <br><div class=3D"gmail_signatu=
re" dir=3D"ltr"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr=
">Best Regards,<br>Ankush Chawla<br><br></div></div></div></div></div></div=
>

--0000000000006e97e505a691367a--