postgresql - pgAdmin III (pgadmin3_92.x86_64 0 :1. 16.1-1.rhel6) 无法启动

标签 postgresql centos pgadmin

  • 我安装了 pgAdmin 的操作系统:Centos 6.3
  • Postgresql 9.2 安装在另一台机器上(不确定这是否重要)

已通过 postgresql 存储库安装 pgadmin3_92

当我转到:Applications > Programming > pgAdminIII 并选择时,没有任何反应。

当我在终端中输入 pgadmin3_92 时,我得到了

pgadmin3_92: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

我已尝试通过 Google 搜索此错误,但没有找到任何结果。我只是 Linux/Centos 的新手,所以我已经达到了下一步要弄清楚如何让 pgAdminIII 工作的极限。

关于接下来要寻找/做什么的任何想法?

最佳答案

该错误是由于 Centos 无法找到运行应用程序的共享库导致的。

我的pgadmin3库文件安装在:/usr/pgsql-9.2/lib

我按照提示运行 ldd pgadmin3 here , 这确认无法找到共享库来运行 pgadmin

同样在同一链接上,它显示更改为 root 用户:su - root,然后创建一个 .conf 文件,将 Centos 指向库所在的位置pgadmin3。创建这个文件的命令是:

echo /usr/pgsql-9.2/lib > /etc/ld.so.conf.d/pgsql-9.2.conf

对于其他人来说,这将是:

echo <location of pgadmin3 libraries> > /etc/ld.so.conf.d/pgsql-9.2.conf

然后我运行:cat/etc/ld.so.conf.d/pgsql-9.2.conf 以确认文件已创建并且库的位置已写入文件.

然后我运行以下命令以确保 Centos 使用此新配置信息刷新:

/sbin/ldconfig

在此之后我能够运行 pgadmin3

关于postgresql - pgAdmin III (pgadmin3_92.x86_64 0 :1. 16.1-1.rhel6) 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14317930/

相关文章:

php - Requires : httpd-mmn = 20051115 mean? Where can I adjust this setting 是什么意思?

postgresql - 单击 SQL 查询按钮时,PgAdmin 有时会崩溃

linux - CentOS 从 CSV 文件脚本创建用户

php - 加载 mysqli 扩展时为 "version libmysqlclient_18 not defined in file libmysqlclient.so.18"

linux - 在 Linux 上运行程序化 Postgres 数据库迁移的最佳实践

python - 使用带有 sqlalchemy 的 gin 索引返回排名搜索结果

sql - 在 PgAdmin 中添加外键

postgresql - 如何为 pgAdmin 设置连接超时值?

php - PostgreSQL 与 PHP 的连接无法正常工作

ruby-on-rails - 使用最大距离属性反向查询 Rails-Geocoder 中的位置