Build and Install Apache Cloudberry and contrib extensions
Compile the code
# Uses the following command to compile the core components of Apache Cloudberry:
make -j$(nproc) --directory=~/cloudberry
# Compiles additional contrib modules, which provide optional features and extensions:
make -j$(nproc) --directory=~/cloudberry/contrib
Install the compiled binaries
# Installs the core components to the specified installation directory:
make install --directory=~/cloudberry
# Installs the contrib modules to the specified installation directory:
make install --directory=~/cloudberry/contrib
Verify installation
After installation, verify the setup with these steps:
1. Check Cloudberry version
/usr/local/cloudberry-db/bin/postgres --gp-version
/usr/local/cloudberry-db/bin/postgres --version
2. Verify library dependencies
ldd /usr/local/cloudberry-db/bin/postgres
3. Check library extensions
ls -al /usr/local/cloudberry-db/share/postgresql/extension
4. Check core utilities
ls -l /usr/local/cloudberry-db/bin/
Expected output should show critical binaries like postgres, initdb, etc.