plv8 centos install steps

install

  • deps
yum -y update
yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo yum -y install epel-release yum-utils
sudo yum-config-manager --enable pgdg11
sudo yum install postgresql11-server postgresql11 postgresql11-devel
/usr/pgsql-11/bin/postgresql-11-setup initdb}
 
 
  • get source code
yum install -y wget
cd ~
wget https://github.com/plv8/plv8/archive/v2.3.13.tar.gz
tar xvzf v2.3.13.tar.gz
cd plv8-2.3.13
 
 
  • build
yum install -y centos-release-scl
yum install -y libcxx libcxx-devel
yum install -y llvm5.0 llvm7.0 llvm7.0-devel llvm7.0-libs llvm-toolset-7
yum install -y devtoolset-8 git bzip2
scl enable devtoolset-8 bash
make PG_CONFIG=/usr/pgsql-11/bin/pg_config
make install PG_CONFIG=/usr/pgsql-11/bin/pg_config
 
 

猜你喜欢

转载自www.cnblogs.com/rongfengliang/p/11818927.html