вторник, 19 февраля 2013 г.

postgresql 9.2.1 для 1С на CentOS 6.3 x86_64 minimal

yum update -y
reboot

yum install crontabs tmpwatch sudo file nano wget rpm-build gcc make glibc-devel bison flex python-devel tcl-devel readline-devel zlib-devel openssl-devel krb5-devel e2fsprogs-devel gettext pam-devel openldap-devel libxml2-devel libxslt-devel perl-ExtUtils-MakeMaker perl-ExtUtils-Embed icu libicu libicu-devel -y

chkconfig iptables off
service iptables stop
chkconfig ip6tables off
service ip6tables stop
nano /etc/selinux/config SELINUX=disabled

cd ~ && mkdir psql && cd psql && wget http://v8.1c.ru/overview/postgresql_patches/9-2-1/postgresql92-9.2.1-1.1C.src.rpm


useradd user
rpm -ivh postgresql92-9.2.1-1.1C.src.rpm


ln -s /usr/lib64/libicuuc.so /usr/local/lib/libicuuc.so.46 && ln -s /usr/lib64/libicui18n.so /usr/local/lib/libicui18n.so.46 && ln -s /usr/lib64/libicudata.so /usr/local/lib/libicudata.so.46


nano /usr/lib/rpm/macros
Ctrl + w %_default_patch_fuzz
меняем с 0 на 2


cd ~ && time rpmbuild -ba --define 'runselftest 0' /root/rpmbuild/SPECS/postgresql-9.2.spec
rpm -ivh ~/rpmbuild/RPMS/x86_64/*.rpm


su postgres
/usr/pgsql-9.2/bin/initdb -D /var/lib/pgsql/9.2/data/ --locale=ru_RU.UTF-8
exit


service postgresql-9.2 restart && chkconfig postgresql-9.2 on


/usr/pgsql-9.2/bin/psql -U postgres
postgres=# alter user postgres with password '111111111';
ALTER ROLE
postgres=# \q

1 комментарий:

  1. по вашей и всем подобным инструкциям у меня почемуто идет бесконечная сборка ....почеум не могу понять...

    ОтветитьУдалить