PostgreSQL 11 install with jit on CentOS 7.5 X64

1.system info
CentOS Linux release 7.5.1804 X86_64

2.disable selinux and firewalld

  1. install require os packages
    -# yum install -y epel-release
    -# yum install -y gcc gcc-c++ readline-devel zlib-devel libicu-devel

4.llvm install
1).cmake
-# wget https://cmake.org/files/v3.11/cmake-3.11.4.tar.gz
-# tar zxvf cmake-3.11.4.tar.gz
-# ./configure
-# make
-# make install

2).llvm
-# wget http://releases.llvm.org/7.0.0/llvm-7.0.0.src.tar.xz
-# tar -xJf llvm-7.0.0.src.tar.xz
-# mv llvm-7.0.0.src llvm

3).Clang
-# wget http://releases.llvm.org/7.0.0/cfe-7.0.0.src.tar.xz
-# tar -xJf cfe-7.0.0.src.tar.xz
-# mv cfe-7.0.0.src llvm/tools/clang
-# mkdir build
-# cd build/
-# cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" ../llvm
-# make -j 8
-# make install

编译提示:
-DLLVM_TARGETS_TO_BUILD="X86",仅编译X86平台,如果64位操作系统,
默认为 x86_64-unknown-linux-gnu;否则,编译所有平台库,
此选项产生编译文件较大可能几十GB。

------ check install

-# clang --version
clang version 7.0.0 (tags/RELEASE_700/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
-#

-# llvm-config --version
7.0.0
-#

  1. pg11 source download
    -# mkdir /home/soft
    -# cd /home/soft/
    -# wget https://ftp.postgresql.org/pub/source/v11.0/postgresql-11.0.tar.gz
    -# tar zxf postgresql-11.0.tar.gz
    -# cd postgresql-11.0
    -# ./configure --prefix=/opt/pgsql/11.0 --with-llvm --with-icu
    -# make -j 8
    -# make install

编译选项:
--with-llvm,jit support

  1. add postgres user and startup scripts

原文地址:http://blog.51cto.com/heyiyi/2306614

时间: 2024-07-30 14:29:08

PostgreSQL 11 install with jit on CentOS 7.5 X64的相关文章

postgresql 9.6 rpm包安装 CentOS 7.2 X64

1.pgdg-centos96-9.6-3.noarch.rpm PostgreSQL 9.6-->CentOS 7 - x86_64 下载链接: https://yum.postgresql.org/repopackages.php rpm -ivh pgdg-centos96-9.6-3.noarch.rpm 2.postgresql96-server # yum install -y postgresql96-server # yum install -y postgresql96-con

Install Nginx/PHP-FPM on CentOS/RHEL

Install Nginx, PHP 5.5.15 and PHP-FPM on Fedora 20/19/18/17, CentOS 7/6.5/5.10, Red Hat (RHEL) 7/6.5/5.10 1. Change to root user. su 2. Install needed repositories CentOS 7/6.5/5.10 and Red Hat (RHEL) 7/6.5/5.10 Remi repository  ## Remi Dependency on

Install .Net Core For CentOS 6.5(最后失败了)

Install .NET Core SDK Before you start, please remove any previous versions of .NET Core from your system. In order to install .NET Core 1.1 on CentOS or Oracle Linux, first you need to get the prerequisites and then you download the .NET Core SDK bi

rehat7.X下postgresql 11编译安装

文档目录结构: 一.准备 操作系统版本:rehat7.6 Postgresql:11.2 软件安装目录:/pgsql11/basedir 数据文件存放目录:/pgsql11data/ 11.2的下载地址: https://www.postgresql.org/ftp/source/v11.2/ 1.修改防火墙: vim /etc/selinux/config 修改内容: SELINUX=disabled systemctl disable firewalld systemctl stop  fi

[转载]How to Install Firefox 33 on CentOS, Redhat and Other Linux Distributions

FROM: http://tecadmin.net/install-firefox-on-linux/ Firefox 33 has been released for Systems and Android on October 13, 2014 with various bug fixes and updates. Below is the list of few changes which is made in Firefox 33. Read more details about thi

How to install redis server on CentOS 7 / RHEL 7

How to install redis server on CentOS 7 / RHEL 7 October 4, 2014 by sharad chhetri Leave a Comment In this tutorial we will learn, how to install redis server on CentOS 7 / RHEL 7 . The abbreviation of redis is REmote DIctionary Server. It is one the

Win10下载安装PostgreSQL 11.1

下载地址:https://get.enterprisedb.com/postgresql/postgresql-11.1-1-windows-x64.exe Installation Directory:D:\Program Files\PostgreSQL\11 Data Directory:D:\data\PostgreSQL\data Please provide a password for the database superuser (postgres). Password:pass

CentOs 6.5 X64 搭建SVN

CentOs 6.5 X64 搭建SVN 说明 系统环境是最小化安装 系统环境 [[email protected] ~]# file /sbin/init /sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped [[email protected] ~]# cat /etc/r

CentOS 6.5 x64 RHCS GFS配置

实验环境:   CentOS 6.5 x64 RHCS GFS 1. 通过Openfiler实现iscsi共享存储   2. 通过VMware ESXi5 虚拟fence实现fence功能.    3. 结合Centos 6.5 vmware-fence-soap实现RHCS fence设备功能.    4. 通过搭建RHCS实验环境测试GFS2功能. 一.准备基础环境 1. 网络环境准备 node01,node02节点 # cat /etc/hosts 192.168.0.181  node0