tuhaihe commented on PR #627:
URL: https://github.com/apache/madlib/pull/627#issuecomment-3471298791

   Based on the new codebase, I can build and deploy the MADlib into the 
Cloudberry 2.0 + 3.0 (main) gpdemo database:
   
   1. Build the Cloudberry gpdemo env following the 
[docs](https://cloudberry.apache.org/docs/deployment/quick-build)
   
   2. Build and deploy the MADlib
   
   ```
   ## Download this PR change
   git clone https://github.com/apache/madlib.git
   cd madlib
   git fetch origin pull/627/head:zhangwenchao-123/support_cloudberry
   git switch zhangwenchao-123/support_cloudberry
   
   
   ## Set Python env
   sudo alternatives --install /usr/bin/python python /usr/bin/python3 1
   
   ## Install required depencies to the Cloudberry Dev container
   sudo dnf install boost-devel -y
   sudo dnf install -y graphviz # for docs
   sudo dnf install --enablerepo=crb doxygen -y # for docs
   
   ## 
   cd ~/madlib
   mkdir build ; cd build
   
   ## for Cloudberry 3.0
   cmake \
       -DCLOUDBERRY_3_PG_CONFIG=$GPHOME/bin/pg_config \
       -DCMAKE_C_COMPILER=gcc \
       -DCMAKE_CXX_COMPILER=g++ \
       -DCMAKE_BUILD_TYPE=Release \
       -DCMAKE_INSTALL_PREFIX=/usr/local/madlib \
       -DCLOUDBERRY_3_EXECUTABLE=$GPHOME/bin/postgres \
       ..
   
   ## for Cloudberry 2.0
   cmake \
       -DCLOUDBERRY_2_PG_CONFIG=$GPHOME/bin/pg_config \
       -DCMAKE_C_COMPILER=gcc \
       -DCMAKE_CXX_COMPILER=g++ \
       -DCMAKE_BUILD_TYPE=Release \
       -DCMAKE_INSTALL_PREFIX=/usr/local/madlib \
       -DCLOUDBERRY_2_EXECUTABLE=$GPHOME/bin/postgres \
       ..
   
   ## Make, deploy, and run test
   make -j$(nproc)
   ./src/bin/madpack -p cloudberry -c gpadmin@localhost:7000/postgres install
   ./src/bin/madpack -p cloudberry -c gpadmin@localhost:7000/postgres 
install-check
   ```
   
   If something wrong, please help correct me. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to