centos7安装postgresql和pgadmin

postgresql

#cd /home/alcentos/package
#wget http://ftp.postgresql.org/pub/source/v9.5.2/postgresql-9.5.2.tar.gz
#tar -zxvf postgresql-9.5.2.tar.gz
#cd postgresql-9.5.2/
#./configure
**> configure: error: readline library not found**

#yum install readline-devel
#./configure 
**> configure: error: zlib library not found**

#yum install zlib-devel
#./configure
#make
#make install

pgadmin

#wget http://ftp.postgresql.org/pub/pgadmin3/release/v1.22.1/src/pgadmin3-1.22.1.tar.gz

#tar -zxvf pgadmin3-1.22.1.tar.gz 
#cd pgadmin3-1.22.1/
# ./configure --with-gtk --enable-gtk2 --enable-unicode

**> configure: error: could not find a suitable C++ compiler to build pgAdmin**

#yum install gcc-c++
# ./configure --with-gtk --enable-gtk2 --enable-unicode

**> configure: error: Could not find your wxWidgets installation. You might need to use the --with-wx=DIR configure option**

安装gtk2-devel

yum install gtk2*

下载安装wxWidgets-3.1.0.tar.bz2 (http://www.wxwidgets.org/downloads/)

#tar -jxvf wxWidgets-3.1.0.tar.bz2 
#cd wxWidgets-3.1.0/
#./configure --prefix=/usr --enable-xrc --enable-monolithic --enable-unicode
#make
#make install

回到pgadmin3-1.22.1/下

#./configure --with-gtk --enable-gtk2 --enable-unicode

**> configure: error: The version of wxWidgets required (2.8) is not supported by the installations in /usr.**

好吧,还是不行,降低wxWidgets的版本到2.8试试

**configure: error: Your wxWidgets installation cannot support pgAdmin in the selected configuration. This may be because it was configured without the --enable-unicode option, or the combination of dynamic/static linking and debug/non-debug libraries selected did not match any installed wxWidgets libraries.**

考虑可能缺少了unicode

先到这里吧 下次有时间再折腾。。。

你可能感兴趣的:(数据库,postgresql,centos,pgadmin)