bcarlin.net/content/blog/002-build-pgpool-on-debian/index.en.md

36 lines
1.1 KiB
Markdown
Raw Normal View History

2025-06-07 02:33:02 +02:00
---
title: Build the latest PgPool-II on Debian Etch
date: "2010-12-14T00:00:00+01:00"
2025-06-20 02:33:45 +02:00
slug: 2-build-pgpool-on-debian-etch
categories: [DevOps]
tags:
- Debian
- PgPool-II
2025-06-07 02:33:02 +02:00
summary: >
2025-06-20 02:33:45 +02:00
Building PgPool-II on Debian Etch and avoid the "libpq is not installed or
2025-06-07 02:33:02 +02:00
libpq is old" error
---
After having build PgPool-II on Red Hat Enterprise Linux 5.5 without any
problem, I tried to build it on a fresh Debian Etch. The catch is that I did
not want to install PostgreSQL 9.0, but just extract it from the binary
packages provided by Entreprisedb (with option `--extract-only 1`).
Whatever options I passed to `./configure`, it resulted in the same error:
{{< highlight text >}}
checking for PQexecPrepared in -lpq... no
configure: error: libpq is not installed or libpq is old
{{< /highlight >}}
Here is the answer: the binary package contains the libpq with the name
`libcrypto.so.0.9.8` (the RHEL name) when pgpool is looking `libcrypto.so.6`
on Debian. The same applies to `libssl`. So a simple
{{< highlight bash >}}
ln -s libcrypto.so.0.9.8 libcrypto.so.0.9.8
ln -s libssl.so.0.9.8 libssl.so.6
{{< /highlight >}}
before your `./configure` will solve it!