Ошибка initdb в PostgreSQL 10 - RHEL 6

Установил PostgreSQL 10 в системе RHEL 6, выполнив следующие команды:

rpm -Uvh --force --nodeps postgresql10-libs-10.0-1PGDG.rhel6.x86_64.rpm
rpm -Uvh --force --nodeps postgresql10-10.0-1PGDG.rhel6.x86_64.rpm
rpm -Uvh --force --nodeps postgresql10-server-10.0-1PGDG.rhel6.x86_64.rpm
rpm -Uvh --force --nodeps postgresql10-contrib-10.0-1PGDG.rhel6.x86_64.rpm

Попытка запустить initdb:

cd /usr/pgsql-10/bin

./initdb --locale=C --encoding=UTF-8 -D /opt/postgresql -U postgres

Получение следующей ошибки:/usr/pgsql-10/bin/postgres: error while loading shared libraries: libicui18n.so.42: cannot open shared object file: No such file or directory no data was returned by command ""/usr/pgsql-10/bin/postgres" -V" The program "postgres" is needed by initdb but was not found in the same directory as "/usr/pgsql-10/bin/initdb". Check your installation.

Может кто-нибудь, пожалуйста, помогите решить эту проблему?

Благодарю.

ОБНОВИТЬ:

Ран:rpm -Uvh --force postgresql10-10.0-1PGDG.rhel6.x86_64.rpm

получил следующую ошибку:

error: Failed dependencies: libicu is needed by postgresql10-10.0-1PGDG.rhel6.x86_64

Может кто-нибудь сказать, пожалуйста, как решить проблему зависимости?

1 ответ

rpm не решает проблему зависимости автоматически, вам нужно установить зависимый пакет самостоятельно. Например, попробуйте

yum install libicu-devel

или другие эквивалентные шаги.

Другие вопросы по тегам