新聞中心
系統(tǒng)版本:
創(chuàng)新互聯(lián)建站專業(yè)成都網(wǎng)站制作、網(wǎng)站設(shè)計,集網(wǎng)站策劃、網(wǎng)站設(shè)計、網(wǎng)站制作于一體,網(wǎng)站seo、網(wǎng)站優(yōu)化、網(wǎng)站營銷、軟文發(fā)稿等專業(yè)人才根據(jù)搜索規(guī)律編程設(shè)計,讓網(wǎng)站在運行后,在搜索中有好的表現(xiàn),專業(yè)設(shè)計制作為您帶來效益的網(wǎng)站!讓網(wǎng)站建設(shè)為您創(chuàng)造效益。
centos7.2
# yum install readline-devel zlib-devel -y
如果不安裝以上兩個包,編譯postgresql就會報缺少相應(yīng)包的錯誤,導致無法通過。
# yum install postgresql-contrib
http://mirror.centos.org/centos/7/os/x86_64/Packages/uuid-devel-1.6.2-26.el7.x86_64.rpm
版本和系統(tǒng)的uuid版本一樣,uuid-1.6.2-26.el7.x86_64
# rpm -ivh uuid-devel-1.6.2-26.el7.x86_64.rpm
如果不安裝以上的一個包,編譯postgresql就會報以下的錯誤:
# configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID"
如果源里邊有這個包,可以使用yum進行安裝。
上傳包postgresql-9.6.3.tar.gz
# tar -zxf postgresql-9.6.3.tar.gz
# cd postgresql-9.6.3
# ./configure --prefix=/usr/local/postgresql --with-ossp-uuid
# make && make install
# cd contrib/uuid-ossp
# make && make install
上邊如果不編譯uuid-ossp,就會出現(xiàn)下面的錯誤:
postgres=# create extension "uuid-ossp";
ERROR: could not open extension control file "/usr/local/postgresql/share/extension/uuid-ossp.control": No such file or directory
# vi /etc/profile
export PGHOME=/usr/local/postgresql
export PGDATA=/data/pg_data
export PATH=$PATH:$PGHOME/bin
# source /etc/profile
其他基本上和之前的yum安裝的9.2版本的配置一樣,注意配置文件可能不同,按實際的來配置,如下面的配置文件:
# find / -name "recovery.conf.sample"
/usr/local/postgresql/share/recovery.conf.sample
/data/postgresql-9.6.3/src/backend/access/transam/recovery.conf.sample
# cp /usr/local/postgresql/share/recovery.conf.sample /data/pg_data/recovery.conf
新聞名稱:centos7編譯PGSQL9.6并配置UUID
路徑分享:http://fisionsoft.com.cn/article/iiegpd.html