Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

libpq-dev package

22 views
Skip to first unread message

Igor Korot

unread,
Jul 10, 2022, 8:20:05 PM7/10/22
to
Hi,
I figured out that the libpq package is called postgresql-client.

However it looks like there is no postgresql-client-dev package?

Trying to compile my program it fails by not finding the
pg-config script and libpq-fe.h file.

Thank you.

Andy Smith

unread,
Jul 10, 2022, 8:30:05 PM7/10/22
to
Hello,

On Sun, Jul 10, 2022 at 07:19:08PM -0500, Igor Korot wrote:
> Trying to compile my program it fails by not finding the
> pg-config script and libpq-fe.h file.

You were already shown apt-file.

Regards,
Andy

--
https://bitfolk.com/ -- No-nonsense VPS hosting

Igor Korot

unread,
Jul 10, 2022, 8:40:05 PM7/10/22
to
Apparently the package name is exactly libpq-dev. ;-)

Naming convention sucks sometimes... ;-)

However even after installing it I still can't compile.
Same exact error is given.

Thank you.

Igor Korot

unread,
Jul 10, 2022, 8:40:05 PM7/10/22
to
Hi,

On Sun, Jul 10, 2022 at 7:28 PM Andy Smith <an...@strugglers.net> wrote:
>
> Hello,
>
> On Sun, Jul 10, 2022 at 07:19:08PM -0500, Igor Korot wrote:
> > Trying to compile my program it fails by not finding the
> > pg-config script and libpq-fe.h file.
>
> You were already shown apt-file.

True.
However trying it I got "apt-file No such file or directory"

Thank you.

to...@tuxteam.de

unread,
Jul 11, 2022, 1:00:05 AM7/11/22
to
On Sun, Jul 10, 2022 at 07:19:08PM -0500, Igor Korot wrote:
tomas@trotzki:~$ apt-file search libpq-fe.h
libpq-dev: /usr/include/postgresql/libpq-fe.h

So libpq-dev it is :-)

For that kind of questions I recommend installing the package
`apt-file', which keeps a cache of files and what packages they
live in.

You can query using the plain file name or the full path (the
latter may be necessary when you get too many hits).

An alternative would be <https://packages.debian.org/>.

Cheers
--
t
signature.asc

to...@tuxteam.de

unread,
Jul 11, 2022, 1:00:05 AM7/11/22
to
On Sun, Jul 10, 2022 at 07:30:32PM -0500, Igor Korot wrote:
> Apparently the package name is exactly libpq-dev. ;-)
>
> Naming convention sucks sometimes... ;-)
>
> However even after installing it I still can't compile.
> Same exact error is given.

Now the exact error (and perhaps some snippet of your C code, where
you include libpq-fe.h) would be interesting.

Cheers
--
t
signature.asc

Eduardo M KALINOWSKI

unread,
Jul 11, 2022, 8:20:05 AM7/11/22
to
On 10/07/2022 21:30, Igor Korot wrote:
> Apparently the package name is exactly libpq-dev. ;-)
>
> Naming convention sucks sometimes... ;-)
It can, but I don't think this is one such case. The library is libpq5,
and its development headers is libpq-dev. postgresql-client is the user
tool to connect to a PostgreSQL instance and issue SQL commands. It
depends on libpq5.


--
In the Halls of Justice the only justice is in the halls.
-- Lenny Bruce

Eduardo M KALINOWSKI
edu...@kalinowski.com.br
0 new messages