LINUX.ORG.RU
ФорумAdmin

Не удаётся установить postgresql в debian 7.11

 , ,


0

2

Делаю всё как здесь описано: https://www.postgresql.org/download/linux/debian/

apt-get install postgresql-9.5 выдаёт в конце вот это:

Adding user postgres to group ssl-cert

Creating config file /etc/postgresql-common/createcluster.conf with new version

Creating config file /etc/logrotate.d/postgresql-common with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
[warn] No PostgreSQL clusters exist; see "man pg_createcluster" ... (warning).
Setting up postgresql-9.5 (9.5.3-1.pgdg70+1) ...
Creating new cluster 9.5/main ...
  config /etc/postgresql/9.5/main
  data   /var/lib/postgresql/9.5/main
  locale en_US.UTF-8
/usr/lib/postgresql/9.5/bin/postgres: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/postgresql/9.5/bin/postgres)
/usr/lib/postgresql/9.5/bin/postgres: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/postgresql/9.5/bin/postgres)
/usr/lib/postgresql/9.5/bin/postgres: symbol lookup error: /usr/lib/postgresql/9.5/bin/postgres: undefined symbol: __xmlStructuredErrorContext
no data was returned by command ""/usr/lib/postgresql/9.5/bin/postgres" -V"
The program "postgres" is needed by initdb but was not found in the
same directory as "/usr/lib/postgresql/9.5/bin/initdb".
Check your installation.
Error: initdb failed
Error: could not create default cluster. Please create it manually with

  pg_createcluster 9.5 main --start

or a similar command (see 'man pg_createcluster').
update-alternatives: using /usr/share/postgresql/9.5/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
[warn] No PostgreSQL clusters exist; see "man pg_createcluster" ... (warning).
Setting up postgresql-contrib-9.5 (9.5.3-1.pgdg70+1) ...
Setting up sysstat (10.0.5-1) ...

Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode

Ну и `pg_createcluster 9.5 main --start` тоже самое примерно.


The program «postgres» is needed by initdb but was not found in the
same directory as «/usr/lib/postgresql/9.5/bin/initdb».
Check your installation.

uspen ★★★★★
()

/usr/local/lib/libxml2.so.2

Самосбор вижу я.

Radjah ★★★★★
()
Ответ на: комментарий от uspen

Я думаю что она была не найдена из-за вот этого

/usr/lib/postgresql/9.5/bin/postgres: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/postgresql/9.5/bin/postgres)
/usr/lib/postgresql/9.5/bin/postgres: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/postgresql/9.5/bin/postgres)
/usr/lib/postgresql/9.5/bin/postgres: symbol lookup error: /usr/lib/postgresql/9.5/bin/postgres: undefined symbol: __xmlStructuredErrorContext

т.е. она не смогла запуститься из-за каких то проблем с shared object libxml2.so.2. Вопрос как бы это можно было исправить, типа обновить до нужной версии этот злосчастный libxml2.

iluha16
() автор топика
Ответ на: комментарий от AnDoR

Я удалял этот /usr/local/lib/libxml2.so.2 уже несколько раз потому что при запуске интепретатора php всегда штук 15 сообщений связанных с ним. Он опять появляется, незнаю что там тупой заказчик за скриптов наставил у себя на сервере. Вообще я так понял debian да и другие бинарные дистрибутивы могут хорошо работать только с определённой версией предназначенной для их релиза. Мне лично эта концепция не нравится, что с каждым разом переустанавливать релиз что ли, а как же 100% uptime. И наверняка что то слетать будет. Я привык к свободе которую дают source based дистрибутивы как например gentoo. Так что поставил postgresql-9.1 и вроде всё работает, какой то супер новой функциональности не требуется так что ok. Можно было бы собрать из исходников 9.5 конечно но думаю для меня это сложновато будет т.к. я не знаю даже названий пакетов для зависимостей в debian и вообще с этой системой не знаком.

iluha16
() автор топика
Ответ на: комментарий от AnDoR

Во всех дистрибутивах шарить невозможно, столько наштамповали бинарщины, что только не придумают что бы gentoo не использовать.

iluha16
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.