运行postgres管理工具pgadmin3报错

最近在centos6.4下按照说明install源码编译安装pgadmin后,报如下错误:

1../pgadmin3: error while loading shared libraries: libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No such file or directory

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

可以通过以下方法解决:(/opt/pgsql是postgres的安装目录,运行下面语句或加入到环境变量即可)

export LD_LIBRARY_PATH=/usr/local/lib:/opt/pgsql/lib

再次运行 ./pgadmin3 成功看到界面了

猜你喜欢

转载自czhwin.iteye.com/blog/2163896