public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Denis Gantsev <[email protected]>
Cc: [email protected]
Subject: Re: psql: can't get readline support
Date: Wed, 25 Mar 2020 18:12:19 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAPsvASsztP=BCXr5o30j=4TiOe1q8b-YOU45ko8m99Uvh+uBTw@mail.gmail.com>
References: <CAPsvASsztP=BCXr5o30j=4TiOe1q8b-YOU45ko8m99Uvh+uBTw@mail.gmail.com>
Denis Gantsev <[email protected]> writes:
> Hello psql-novice
> I am trying to compile postgres with readline support, but no luck, even if
> I am pretty sure I have readline available...
You need to look further down than this:
> checking readline/readline.h usability... yes
specifically for a line like
checking for library containing readline... -lreadline
which I imagine is reporting "no" for you.
The most usual cause of this sort of problem is forgetting to install the
devel support package for readline (on most Linuxen you need something
like readline-devel or readline-dev, not just the base readline package).
However, the devel package is usually what provides the .h files too,
so I'm a bit mystified as to what's wrong. Possibly, it'd be informative
to look into config.log to see what the underlying error report is for the
"library containing readline" test.
Also ...
denis ~/CProjects/postgres (REL_12_STABLE) $ pkg-config --libs
readline-L/usr/local/lib -lreadline
... you may need to say explicitly "--with-libraries=/usr/local/lib"
to get configure to look there for the library. The default linker
configuration on Linuxen is not that friendly to putting libraries
outside the system library directory.
regards, tom lane
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: psql: can't get readline support
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox