---
title: "运行postgres管理工具pgadmin3报错"
author: "czhwin"
date: "2014-12-06T21:57:42Z"
tags: []
categories: ["数据库"]
slug: "postgres-pgadmin3"
draft: false
lastmod: "2014-12-06T22:02:26Z"
id: 2163896
url: "https://czhwin.iteye.com/blog/2163896"
---

最近在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 成功看到界面了