Skip to content

Install all dependencies

Bruno Perles edited this page Feb 19, 2024 · 10 revisions

Install Git

Type sudo apt-get -y install git in your terminal and confirm. We'll need this later to clone the PIA repository and other necessary elements.

Before proceeding with the installation of Ruby:

  • run sudo apt-get -y install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libpq-dev. These libraries are needed to install Ruby and all necessary gems to run PIA.

Install asdf

We use asdf to install Ruby, Node.js, and Yarn on our server. Globally, Asdf is a tool that allows us to install different versions of various languages.

Here is how to install it with Bash as the main terminal:

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0

Open the .bashrc file:

nano ~/.bashrc

And add the following lines at the end:

. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"

Save and exit the file and execute:

source ~/.bashrc

If your environment differs, refer to the asdf install guide. To manage Ruby and Node.js, you can also use another solution like rbenv and nvm.