Установка Postgres PRO 10 из репозитория на CentOS 7 и модуль RUM
-- 19.08.2018
#!/bin/bash yum -y update yum -y install git gcc yum -y install http://repo.postgrespro.ru/pgpro-10/keys/postgrespro-std-10.centos.pro.yum-1.0-1.noarch.rpm yum -y install postgrespro-std-10 postgrespro-std-10-server postgrespro-std-10-libs yum -y install postgrespro-std-10-devel postgrespro-std-10-contrib localectl set-locale LANG=ru_RU.UTF-8 /opt/pgpro/std-10/bin/pg-wrapper links update pg-setup initdb -k # -- модуль RUM -- https://github.com/postgrespro/rum git clone https://github.com/postgrespro/rum cd rum env PG_CONFIG=/opt/pgpro/std-10/bin/pg_config make USE_PGXS=1 make USE_PGXS=1 install # -- проверка если нужна # make USE_PGXS=1 installcheck PGUSER=postgres # -- создание расширения RUM в базе sudo -u postgres psql -U postgres postgres -c "CREATE EXTENSION rum;"