2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-24 10:29:53 +00:00

add spec and info for build postgresql9.1

Former-commit-id: f0cbc387ab4863bc763fb1a47858ff2857bfacac
This commit is contained in:
lissav 2012-10-05 15:21:23 +00:00
parent 12a4000e81
commit 858ea1f1f2
2 changed files with 1577 additions and 0 deletions

25
postgres91/Build-notes Normal file
View File

@ -0,0 +1,25 @@
This information is to build postgresql 9.1.X on a Redhat6 machine. postgresql9.1 will not officially be in a distro until Redhat7 and SLES 12, so for PCM to use it we need to build for the current Redhat6.3 which we will release xCAT/PCM produce.
1) Also need to install rpmbuild from the disto and gcc on your build machine
2)Must have uuid_devel, does not see to be in the Redhat6.3 distro soo.....
So downloaded from
http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/uuid-devel-1.6.1-10.el6.x86_64.rpm/download/
3)used this website to download src rpms
http://yum.postgresql.org/srpms/9.1/redhat/rhel-6-x86_64/
From here I got postgresql91-9.1.5-1PGDG.rhel6.src.rpm
4)Run rpm -ivh postgresql91-9.1.5-1PGDG.rhel6.src.rpm
uuid-devel-1.6.1-10.el6.x86_64.rpm and installed.
5)When you installed the source rpm, it put the data in /root/rpmbuild
cd /root/rpmbuild/SPECS
cp postgresql-9.1.spec postgresql-9.1.spec.org
We have modified the spec that Fedora16 used to build postgresql91, so
that all the commands and code will go in the normal locations and provide
that spec here
cp postgresql-9.1.spec in this directory to /root/rpmbuild/SPECS
6) build the rpms
rpmbuild -ba postgresql-9.1.spec

File diff suppressed because it is too large Load Diff