Skip to content

Commit 3842028

Browse files
committed
Add the PAX support in the configure
PAX is a new access method introduced by Cloudberry since 2.0.0. In this PR, add the `--enable-pax` option to the configure command to enable PAX support when building Cloudberry. Other changes: * add `cmake3` as the dependency for building PAX in Rocky8. * Install and set gcc/gcc-c++ 11 as the compiler for building PAX.
1 parent 5081920 commit 3842028

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build_automation/cloudberry/scripts/configure-cloudberry.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
# - MapReduce Processing
3434
# - Oracle Compatibility (orafce)
3535
# - ORCA Query Optimizer
36+
# - PAX Access Method
3637
# - PXF External Table Access
3738
# - Test Automation Support (tap-tests)
3839
#
@@ -133,6 +134,7 @@ execute_cmd ./configure --prefix=/usr/local/cloudberry-db \
133134
--enable-mapreduce \
134135
--enable-orafce \
135136
--enable-orca \
137+
--enable-pax \
136138
--enable-pxf \
137139
--enable-tap-tests \
138140
${CONFIGURE_DEBUG_OPTS} \

images/docker/cbdb/build/rocky8/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ RUN dnf makecache && \
8383
autoconf \
8484
bison \
8585
bzip2-devel \
86+
cmake3 \
8687
diffutils \
8788
file \
8889
flex \
89-
gcc \
90-
gcc-c++ \
90+
gcc-toolset-11-gcc \
91+
gcc-toolset-11-gcc-c++ \
9192
gdb \
9293
glibc-langpack-en \
9394
glibc-locale-source \
@@ -134,7 +135,9 @@ RUN dnf makecache && \
134135
libyaml-devel \
135136
perl-IPC-Run \
136137
protobuf-devel && \
137-
dnf clean all && \
138+
dnf clean all && rm -rf /var/cache/dnf/* && \
139+
echo "source /opt/rh/gcc-toolset-11/enable" >> /etc/profile.d/gcc.sh && \
140+
source /etc/profile.d/gcc.sh && \
138141
cd && XERCES_LATEST_RELEASE=3.3.0 && \
139142
wget -nv "https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-${XERCES_LATEST_RELEASE}.tar.gz" && \
140143
echo "$(curl -sL https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-${XERCES_LATEST_RELEASE}.tar.gz.sha256)" | sha256sum -c - && \

0 commit comments

Comments
 (0)