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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值