简体   繁体   English

PostgreSQL 10上的initdb错误-RHEL 6

[英]initdb error on PostgreSQL 10 - RHEL 6

Installed PostgreSQL 10 on RHEL 6 system by running the following commands: 通过运行以下命令在RHEL 6系统上安装PostgreSQL 10:

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

The tried to run initdb: 尝试运行initdb:

cd /usr/pgsql-10/bin

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

Getting the following error: /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. 收到以下错误: /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. /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.

Can someone pls help resolve this issue? 有人可以帮助解决此问题吗?

Thanks. 谢谢。

UPDATE: 更新:

Ran: rpm -Uvh --force postgresql10-10.0-1PGDG.rhel6.x86_64.rpm 然: rpm -Uvh --force postgresql10-10.0-1PGDG.rhel6.x86_64.rpm

got the following error: 出现以下错误:

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

Can someone please tell me how to resolve the dependency issue? 有人可以告诉我如何解决依赖性问题吗?

rpm do not resolve dependence problem automaticly, you need to install dependent package yourself.For example, try rpm不能自动解决依赖性问题,您需要自己安装依赖性软件包。例如,尝试

yum install libicu-devel

or other equivalent steps. 或其他等效步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM