Ubuntu安装PostgreSQL(源码)
-
在官网下载tar.gz压缩包(本次选用9.1.19版本),并用scp工具上传到虚机。
-
解压
tar -zxvf xxx.tar.gz
-
运行配置命令
./configure -prefix=/usr/local/pgsql --without-readline
期间可能会遇到以下错误
-
configure: configure: error: no acceptable C compiler found in $PATH
解决办法:http://blog.csdn.net/duguduchong/article/details/8699774
-
configure: error: readline library not found
解决办法:sudo apt-get
-