linux - PostgreSQL 10 上的 initdb 错误 - RHEL 6

标签 linux database rhel6 postgresql-initdb postgresql-10

通过运行以下命令在 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:加载共享库时出错:libicui18n.so.42:无法打开共享对象文件:没有这样的文件或目录 命令“”/usr/pgsql-10/bin/postgres”-V”没有返回数据 initdb 需要程序“postgres”,但在 与“/usr/pgsql-10/bin/initdb”相同的目录。 检查您的安装。

有人可以帮助解决这个问题吗?

谢谢。

更新:

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

出现以下错误:

错误:依赖项失败: postgresql10-10.0-1PGDG.rhel6.x86_64需要libicu

谁能告诉我如何解决依赖性问题?

最佳答案

rpm不会自动解决依赖问题,需要自己安装依赖包。例如, 试试

yum install libicu-devel

或其他等效步骤。

关于linux - PostgreSQL 10 上的 initdb 错误 - RHEL 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46716935/

相关文章:

运行命令时发现 Java 错误 javax/swing/text/GlyphView.getBreakSpot

php - 将 textarea 行分隔为不同的数据库行

c++ - postgreSQL 中 lo_import 的 SQL 准备语句是什么

compiler-errors - gcc 汇编程序消息无法打开/tmp/ccqjY5HV.s 以读取没有这样的文件或目录

linux - 在 Ubuntu 中安装 oracle imp/exp

linux - 控制在虚拟桌面上运行的应用程序(Linux)

linux - 如何从本地计算机 [windows 7] 运行和恢复远程计算机 [linux] 中的 Eclipse

php - 未定义的方法 File::save() (Laravel 模型)

linux - LVM , 导致服务器不再启动 :(

Python3.6 导入错误 : cannot import name 'main' Linux RHEL6