Re: psql: can't get readline support

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql: can't get readline support
Дата
Msg-id 16386.1585174339@sss.pgh.pa.us
обсуждение исходный текст
Ответ на psql: can't get readline support  (Denis Gantsev <gantsevdenis@gmail.com>)
Ответы Re: psql: can't get readline support  (Denis Gantsev <gantsevdenis@gmail.com>)
Список pgsql-novice
Denis Gantsev <gantsevdenis@gmail.com> 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



В списке pgsql-novice по дате отправления:

Предыдущее
От: Denis Gantsev
Дата:
Сообщение: psql: can't get readline support
Следующее
От: Denis Gantsev
Дата:
Сообщение: Re: psql: can't get readline support