Bootstrap

Ubuntu安装PostgreSQL(源码)

Ubuntu安装PostgreSQL(源码)

 

  1. 在官网下载tar.gz压缩包(本次选用9.1.19版本),并用scp工具上传到虚机。

    https://www.postgresql.org/ftp/source/

  2. 解压

    tar -zxvf xxx.tar.gz 

  3. 运行配置命令

    ./configure -prefix=/usr/local/pgsql --without-readline

    期间可能会遇到以下错误

    1. configure: configure: error: no acceptable C compiler found in $PATH

      解决办法:http://blog.csdn.net/duguduchong/article/details/8699774

    2. configure: error: readline library not found

      解决办法:sudo apt-get

;