解决Error: pg_config executable not found问题

最近安装sentry时,需要安装postgresql,但是安装过程中报如下问题

Error: pg_config executable not found.

最终查看pg_config是存在的

sudo find / -name "pg_config" -print

但是path里面没有,直接导入pa_home中bin目录的所有命令解决

export PG_HOME=/usr/pgsql-9.6
export PATH=$PATH:$PG_HOME/bin

文章来源:

Author:司马他
link:https://www.congcong.us/post/error_pg_config_executable_not_found_problem.html