Last active
July 4, 2018 16:03
-
-
Save camelloj/6a8d5411367c67b5922f1d03d8e31614 to your computer and use it in GitHub Desktop.
Install_psql_centos6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Exclude postgresql* on yum repos | |
| $ vim /etc/yum.repos.d/CentOS-Base.repo | |
| ** [base] | |
| name=CentOS-$releasever - Base | |
| mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os | |
| #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
| exclude=postgresql* | |
| ** [updates] | |
| name=CentOS-$releasever - Updates | |
| mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates | |
| #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
| exclude=postgresql* | |
| $ curl -O https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm | |
| $ yum list postgres* | |
| $ yum install postgresql96 postgresql96-contrib postgresql96-libs | |
| ***fix bundle install problem PG*** | |
| $ yum install postgresql-libs | |
| $ yum install libpqxx-devel | |
| $ yum install ruby-devel | |
| $ gem install pg -- --with-pg-config=/usr/pgsql-9.6/bin/pg_config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment