通过运行以下命令在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尝试运行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.
有没有人能帮我解决这个问题?
谢谢。
更新:
Ran: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
有人能告诉我如何解决依赖问题吗?
发布于 2017-10-13 11:38:36
yourself.For不能自动解决依赖问题,需要安装依赖包rpm示例,尝试
yum install libicu-devel或其他等效步骤。
https://stackoverflow.com/questions/46716935
复制相似问题