Re: psql: error while loading shared libraries: psql: undefined symbol: get_progname
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: psql: error while loading shared libraries: psql: undefined symbol: get_progname |
| Дата | |
| Msg-id | 11395.1121827156@sss.pgh.pa.us обсуждение |
| Ответ на | psql: error while loading shared libraries: psql: undefined symbol: get_progname ("Kelvin T. Leung" <kelvin@cs.ucla.edu>) |
| Список | pgsql-general |
"Kelvin T. Leung" <kelvin@cs.ucla.edu> writes:
> Now, I am unable to run psql using my own OS login a/c. And I get an
> error message:
> psql: error while loading shared libraries: psql: undefined symbol:
> get_progname
This is a version-skew issue: you are trying to use a psql executable
with a libpq.so library that's older or newer (I forget which) than the
psql executable is.
> I check LD_LIBRARY_PATH and it has /usr/local/pgsql/lib in the path.
On Fedora (and other Linuxen) you should basically never rely on
LD_LIBRARY_PATH, for exactly the reason you're seeing here: programs
work or fail depending on environment. The correct way is to set up
the ldconfig search path to include directories where shared libraries
exist.
Also, it'd probably be a good idea to make sure you have only one set
of Postgres executables+shared libraries on the machine. You've
evidently got at least two :-(
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера