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

# 安装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
