2018年11月15日

PostgreSQL11 JIT CentOS7 Install

PostgreSQL11 JIT CentOS7 Install
locale (仮-2) rootでログインしています

ソースコードからインストール
(RPM)

1.
cd /opt/
01.png

2.
yum install -y centos-release-scl epel-release
02.png


3.
yum install -y gcc make perl perl-ExtUtils-Embed bison flex zlib-devel krb5-devel openssl-devel pam-devel libxml2-devel libxslt-devel openldap-devel libuuid-devel libicu-devel gettext-devel tcl-devel python-devel clang llvm5.0 llvm5.0-libs llvm5.0-devel llvm-toolset-7-clang-devel systemd-devel

03.png

4.
export PATH=/opt/rh/devtoolset-7/root/usr/bin:$PATH
04.png

5.
tar xvf postgresql-11.0.tar.gz

05.png

6.
cd postgresql-11.0/
./configure <configureパラメーター>

./configure '--enable-rpath' '--prefix=/usr/pgsql-11' '--includedir=/usr/pgsql-11/include' '--mandir=/usr/pgsql-11/share/man' '--datadir=/usr/pgsql-11/share' '--with-icu' 'CLANG=/opt/rh/llvm-toolset-7/root/usr/bin/clang' 'LLVM_CONFIG=/usr/lib64/llvm5.0/bin/llvm-config' '--with-llvm' '--with-perl' '--with-python' '--with-tcl' '--with-tclconfig=/usr/lib64' '--with-openssl' '--with-pam' '--with-gssapi' '--with-includes=/usr/include' '--with-libraries=/usr/lib64' '--enable-nls' '--enable-dtrace' '--with-uuid=e2fs' '--with-libxml' '--with-libxslt' '--with-ldap' '--with-selinux' '--with-systemd' '--with-system-tzdata=/usr/share/zoneinfo' '--sysconfdir=/etc/sysconfig/pgsql' '--docdir=/usr/pgsql-11/doc' '--htmldir=/usr/pgsql-11/doc/html' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,--as-needed' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'
06.png


7.
make world
08.png

8.
make world install
09.png

10. サーバー起動時に、PostgreSQLが自動起動するように設定し、起動を行います。
systemctl enable postgresql-11
systemctl start postgresql-11
su postgres -c "psql -c 'select version();'"
動作シナイ

10.png


posted by a23 at 08:28| Comment(0) | PostgreSQL
この記事へのコメント
コメントを書く
お名前: [必須入力]

メールアドレス: [必須入力]

ホームページアドレス: [必須入力]

コメント: [必須入力]

認証コード: [必須入力]


※画像の中の文字を半角で入力してください。