# Building ColumnStore

This is a description of how to build and start a local ColumnStore installation, for debugging purposes.

## Installing Dependencies

For CentOS:

```bash
yum -y groupinstall "Development Tools" \
   && yum -y install bison ncurses-devel readline-devel perl-devel openssl-devel cmake libxml2-devel gperf libaio-devel libevent-devel python-devel ruby-devel tree wget pam-devel snappy-devel libicu \
   && yum -y install vim wget strace ltrace gdb  rsyslog net-tools openssh-server expect \
   && boost perl-DBI
```

## Getting the Source Code

```bash
git clone https://github.com/mariadb-corporation/mariadb-columnstore-server.git
cd mariadb-columnstore-server/
git clone https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
```

## Compiling

```bash
cmake . -DCMAKE_BUILD_TYPE=Debug \
  -DWITHOUT_MROONGA:bool=1 -DWITHOUT_TOKUDB:bool=1 \
  -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb/columnstore/mysql
make -j10
sudo make install
```

```bash
cd mariadb-columnstore-engine/
cmake . -DCMAKE_BUILD_TYPE=Debug
make -j10
sudo make install
cd /usr/local/mariadb/columnstore/bin/
```

## Configuring

Make sure you do NOT have `/etc/my.cnf` or `/.my.cnf`.

```bash
sudo ./postConfigure
```

Answer "Enter" to all questions, except:

```bash
Select the type of System Server install [1=single, 2=multi] (2) >
```

Here, answer `1`.

Access the server

```sql
source /usr/local/mariadb/columnstore/bin/columnstoreAlias
mcsmysql
```

<sub>*This page is: Copyright © 2025 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/analytics/mariadb-columnstore/management/deployment/building-columnstore-in-mariadb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
