Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Peter H. Coffin" Newsgroups: comp.databases.postgresql Subject: Re: install perl DBD::Pg problem Date: Mon, 19 May 2014 17:02:41 -0500 Lines: 44 Message-ID: References: <887f883e-e083-4054-aa80-7f13cea16fda@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net ltorbxhgEv1eXbwM3Oxc/AdqMdGJqHBLJwSyPce5cDQ7xIs4L3 X-Orig-Path: nibelheim.ninehells.com!not-for-mail Cancel-Lock: sha1:GLiyTH7kgpk/cVf5ffWYypTLBdo= User-Agent: slrn/0.9.9p1 (OpenBSD) Xref: csiph.com comp.databases.postgresql:571 On Mon, 19 May 2014 14:21:38 -0700 (PDT), juliani.moon@gmail.com wrote: > I encounter a problem installing perl DBD::Pg on Ubuntu > with regard to Pg information. > > Here is what I did: > > Ubuntu_bash> sudo apt-get install postgresql-server-dev-9.1 > and it's up running. > > Ubuntu_bash> sudo cpan > CPAN> 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 13 > You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. > You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. > You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. > Enter a valid PostgreSQL postgres bin dir /usr/lib/postgresql/9.1/bin/ > You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. > Enter a valid PostgreSQL postgres include dir /usr/lib/postgresql/9.1/lib > You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. > Enter a valid PostgreSQL postgres library dir /usr/lib/postgresql/9.1/lib > PostgreSQL version: 90113 (default port: 5432) > ................................................ > In file included from Pg.xs:13:0: > Pg.h:35:22: fatal error: libpq-fe.h: No such file or directory > compilation terminated. > make: *** [Pg.o] Error 1 > TURNSTEP/DBD-Pg-3.2.0.tar.gz > /usr/bin/make -- NOT OK > > Could someone suggest what was wrong and how can I get by this? CPAN isn't finding your postgres install. Where is your libpq-fe.h file? What is output of Ubuntu_bash> pg_config --includedir ? -- 59. I will never build a sentient computer smarter than I am. --Peter Anspach's list of things to do as an Evil Overlord