Linux build instructions

pull/404/head
Joe Nelson 2016-03-24 14:29:02 -07:00
parent 52eacd29bb
commit 80178b42bd
1 changed files with 61 additions and 16 deletions

View File

@ -6,42 +6,87 @@ We're happy you want to contribute! You can help us in different ways:
suggestions for improvements suggestions for improvements
* Fork this repository and submit a pull request * Fork this repository and submit a pull request
As with the majority of major open source projects, we ask that Before accepting any code contributions we ask that Citus contributors
Citus contributors sign a Contributor License Agreement (CLA). We sign a Contributor License Agreement (CLA). For an explanation of
know that this creates a bit of red tape, but also believe that it why we ask this as well as instructions for how to proceed, see the
is the best way to create total transparency around your rights as [Citus CLA](https://cla.citusdata.com).
a contributor and the most effective way of protecting you as well
as Citus Data as the company behind the open source project.
If you plan on contributing to Citus, please follow these [instructions
for signing our CLA](https://www.citusdata.com/community/CLA)
### Getting and building ### Getting and building
#### Mac #### Mac
1. Install XCode 1. Install Xcode
2. Install packages with homebrew 2. Install packages with Homebrew
```bash ```bash
brew update brew update
brew install git openssl postgresql brew install git postgresql
brew link openssl --force
``` ```
3. Get the code 3. Get, build, and test the code
```bash ```bash
git clone https://github.com/citusdata/citus.git git clone https://github.com/citusdata/citus.git
cd citus
./configure
make
make install
cd src/test/regress
make check
``` ```
4. Build and test #### Debian-based Linux (Ubuntu, Debian)
1. Install build dependencies
```bash ```bash
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | \
sudo tee /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
sudo apt-key add -
sudo apt-get update
sudo apt-get install -y postgresql-server-dev-9.5 postgresql-9.5 \
libedit-dev libselinux1-dev libxslt-dev \
libpam0g-dev git flex make
```
2. Get, build, and test the code
```bash
git clone https://github.com/citusdata/citus.git
cd citus cd citus
./configure ./configure
make make
sudo make install sudo make install
cd src/test/regress cd src/test/regress
make check-multi make check
```
#### Red Hat-based Linux (RHEL, CentOS, Fedora)
1. Find the PostgreSQL 9.5 RPM URL for your repo at [yum.postgresql.org](http://yum.postgresql.org/repopackages.php#pg95)
2. Register its contents with Yum:
```bash
sudo yum install -y <url>
```
3. Install build dependencies
```bash
sudo yum update -y
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y postgresql95-devel postgresql95-server \
libxml2-devel libxslt-devel openssl-devel \
pam-devel readline-devel git
git clone https://github.com/citusdata/citus.git
cd citus
PG_CONFIG=/usr/pgsql-9.5/bin/pg_config ./configure
make
sudo make install
cd src/test/regress
make check
``` ```