postgresql 配置PEM服务器时出错数据库服务器安装路径不正确或未安装所需的psql二进制文件

lsmepo6l  于 2023-08-04  发布在  PostgreSQL
关注(0)|答案(2)|浏览(174)

我试图在我的Linux发行版Ubuntu中为我的Windows机器安装Postgres企业管理器,方法是遵循他们官方网站上的this教程。
Postgres Enterprise Manger需要两个不同的Postgres来运行,首先是它将监视的服务器,它可以是普通的Postgres或EDB高级服务器,其次是后端数据库,它仍然可以是postgres或EDB advancer服务器示例,它将在其中存储监视的数据。我安装PostgreSQL就是为了这个目的。当我尝试使用这个命令sudo /usr/edb/pem/bin/configure-pem-server.sh配置PEM服务器时,尽管输入了postgres的路径,我还是不断得到这个错误

  1. sudo /usr/edb/pem/bin/configure-pem-server.sh
  2. [sudo] password for chidera:
  3. -----------------------------------------------------
  4. EDB Postgres Enterprise Manager
  5. -----------------------------------------------------
  6. Install type: 1:Web Services and Database, 2:Web Services 3: Database [ ] :1
  7. --> [Info] --> [Info] Check apache2 utility commands.
  8. --> [Info] --> [Info] Configure apache2 modules - ssl and gnutls.
  9. Enter local database server installation path (i.e. /usr/edb/as12 , or /usr/pgsql-12, etc.) [ ] :/var/lib/postgresql/15/main
  10. --> [Error]
  11. --> [Error] -----------------------------------------------------
  12. --> [Error] CRITICAL ERROR
  13. --> [Error] -----------------------------------------------------
  14. --> [Error] --> [Error] Script exiting because of the following error:
  15. --> [Error]
  16. Either database server installation path is incorrect or the required psql binary is not installed.
  17. If the psql binary is not installed, then install any one of the following packages:
  18. edb-as<X>-server-client
  19. postgresql<X>
  20. Where, X is version 12 or above.
  21. --> [Error] Current working directory and stack is:
  22. 0 /home/chidera
  23. 1596 HandleCommandLineArguments /usr/edb/pem/bin/configure-pem-server.sh
  24. 1723 InstallPEMServer /usr/edb/pem/bin/configure-pem-server.sh
  25. 1935 main /usr/edb/pem/bin/configure-pem-server.sh
  26. --> [Error] --> [Error] Current working directory and stack is:

字符串
我已经在这个错误上呆了好几天了,我会感激任何我能得到的帮助。

dced5bon

dced5bon1#

如果未安装psql二进制文件,请安装以下任何一个软件包:edb-as-server-client postgresql其中,X是版本12或以上。
首先,您应该考虑上面的建议,为PostgreSQL本身和EDB安装版本12或更高版本。如果没有大于或等于12的版本,它将无法工作。
因此,路径应该是这样的:

  1. /usr/edb/as12

字符串
或者是

  1. /usr/pgsql-12

35g0bw71

35g0bw712#

此问题似乎与您为此安装提供的目录有关。/var/lib/postgresql/15/main是数据目录,而不是Postgresql安装的目录。
安装目录是存储二进制文件(如psql)的位置。通常,它们存储在/usr/bin中。请尝试通过运行以下命令进行确认:

  1. which psql

字符串
这应该会输出psql二进制文件的路径,通常是/usr/bin/psql
请尝试再次运行配置,但这次在提示输入路径时,请输入:/usr,例如:

  1. Enter local database server installation path (i.e. /usr/edb/as12 , or /usr/pgsql-12, etc.) [ ] : /usr

相关问题