First, you need the nightly
rust compiler.
curl -L https://static.rust-lang.org/rustup.sh > rustup
chmod +x rustup
./rustup --channel=nightly
Next, you need capnproto
git clone https://github.com/sandstorm-io/capnproto.git
cd capnproto/c++
./setup-autotools.sh
autoreconf -i
./configure
make -j6 check
sudo make install
Finally, clone the repository and build it:
git clone -b dev https://github.com/paenko/paenkodb && \
cd paenkodb/src/document && \
cargo build && cd ../../
Now, you can start a database cluster with docker:
cd docker && docker-compose up
or use the bash:
./src/document/target/debug/document server <PATH-TO-CONFIG>
You can copy the config from docker_build/config/config.toml
You can find the test scripts in test
directory.
I'm getting the error "failed to run custom build command for
openssl-sys v0.9.8
". How do I fix this?
Follow the instructions on https://github.com/sfackler/rust-openssl - install pkg-config and libssl-dev 👍
I'm getting the error "error: could not exec the linker
cc
: No such file or directory (os error 2)" How do I fix this?
You need to install gcc
.