---
title: 安装gp-xerces
description: "为了确保Greenplum能够成功编译GPORCA，需要安装gp-xerces。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/Greenplum/kunpenggreenplum_02_0010.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/Greenplum/kunpenggreenplum_02_0010.html
indexId: f71a8832977560535c57b2de75f4c38ee4d1b8ac878fc87eb8a4c553a611175f77
---
# 安装gp-xerces

为了确保Greenplum能够成功编译GPORCA，需要安装gp-xerces。

1. 进入目录。
  1 cd /opt/tool

2. 下载gp-xerces源码(https://gitee.com/WilliamLeoV/gp-xerces/tree/v3.1.2-p1/)并上传至“/opt/tool”。
3. 解压并安装gp-xerces。
  1 2 3 4 5 tar -xvf v3.1.2-p1 cd gp-xerces-3.1.2-p1 ./configure make -j `nproc` make install

4. 设置环境变量，加载动态库。
  1 2 3 vim /etc/profile export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib source /etc/profile
