These are intructions for building stellar-core from source. For a potentially quicker set up we also have stellar-core in a docker container: https://github.com/stellar/docker-stellar-core-horizon
Branches are organized in the following way:
| branch name | description | quality bar |
|---|---|---|
| master | development branch | all unit tests passing |
| testnet | version deployed to testnet | acceptance tests passing |
| prod | version currently deployed on the live network | no recall class issue found in testnet and staging |
For convenience, we also keep a record in the form of release tags of the versions that make it to production:
- pre-releases are versions that get deployed to testnet
- releases are versions that made it all the way in prod
When running a node, the best bet is to go with the latest release.
clang>= 3.5 org++>= 4.9pkg-configbisonandflexlibpq-develunless you./configure --disable-postgresin the build step below.
# sudo add-apt-repository ppa:ubuntu-toolchain-r/test
# apt-get update
# sudo apt-get install git build-essential pkg-config autoconf automake libtool bison flex libpq-dev clang++-3.5 gcc-4.9 g++-4.9 cpp-4.9
See installing gcc 4.9 on ubuntu 14.04
When building on OSX, here's some dependencies you'll need:
- Install xcode
- Install homebrew
- brew install libsodium
- brew install libtool
- brew install automake
- brew install pkg-config
- brew install libpqxx (If ./configure later complains about libpq missing, try PKG_CONFIG_PATH='/usr/local/lib/pkgconfig')
git clone https://github.com/stellar/stellar-core.gitcd stellar-coregit submodule initgit submodule update- Type
./autogen.sh. - Type
./configure(If configure complains about compiler versions, tryCXX=clang-3.5 ./configureorCXX=g++-4.9 ./configureor similar, depending on your compiler.) - Type
makeormake -j(for aggressive parallel build) - Type
make checkto run tests. - Type
make installto install.