Ubuntu Linux
System update
Run a general system update:
sudo apt updateGit
Git is officially maintained in Ubuntu:
sudo apt install gitRuby version manager
Ruby versions packaged in official repositories are not suitable to work with Consul Democracy, so we'll have to install it manually.
First, we need to install Ruby's development dependencies:
sudo apt install libssl-dev autoconf bison build-essential libyaml-dev libreadline-dev zlib1g-dev libncurses-dev libffi-dev libgdbm-devThe next step is installing a Ruby version manager, like rbenv:
wget -qO- https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-installer | bash
source ~/.bashrcCMake and pkg-config
In order to compile some of the project dependencies, we need CMake and pkg-config:
sudo apt install cmake pkg-configNode.js version manager
To compile the assets, you'll need a JavaScript runtime. Node.js is the preferred option. To install Node.js, we will install a Node.js version manager, like NVM:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
source ~/.bashrcPostgreSQL
Install postgresql and its development dependencies with:
sudo apt install postgresql libpq-devYou also need to configure a user for your database. As an example, we'll choose the username "consul":
sudo -u postgres createuser consul --createdb --superuser --pwpromptImagemagick
Install Imagemagick:
sudo apt install imagemagickChrome or Chromium
In order to run the system tests, we need to install Chrome or Chromium.
sudo apt install chromium-browserNow you're ready to go get Consul Democracy installed!
Last updated